ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-13 02:36:09', '2015-02-13 02:36:09', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-13 02:36:09', '2015-02-13 02:36:09', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-13 02:36:09', '2015-02-13 02:36:09', 980190962)  (16.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-13 05:14:54', '2015-02-13 05:14:54', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-13 05:14:54', '2015-02-13 05:14:54', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-13 05:14:54', '2015-02-13 05:14:54', 980190962)  (17.8ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-13 05:19:19', '2015-02-13 05:19:19', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-13 05:19:19', '2015-02-13 05:19:19', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-13 05:19:19', '2015-02-13 05:19:19', 980190962)  (18.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-13 23:50:12', '2015-02-13 23:50:12', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-13 23:50:12', '2015-02-13 23:50:12', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-13 23:50:12', '2015-02-13 23:50:12', 980190962)  (27.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-13 23:56:11', '2015-02-13 23:56:11', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-13 23:56:11', '2015-02-13 23:56:11', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-13 23:56:11', '2015-02-13 23:56:11', 980190962)  (14.6ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-13 23:56:52', '2015-02-13 23:56:52', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-13 23:56:52', '2015-02-13 23:56:52', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-13 23:56:52', '2015-02-13 23:56:52', 980190962)  (18.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-13 23:57:12', '2015-02-13 23:57:12', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-13 23:57:12', '2015-02-13 23:57:12', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-13 23:57:12', '2015-02-13 23:57:12', 980190962)  (11.6ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 00:08:12', '2015-02-14 00:08:12', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 00:08:12', '2015-02-14 00:08:12', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 00:08:12', '2015-02-14 00:08:12', 980190962)  (14.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 00:12:55', '2015-02-14 00:12:55', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 00:12:55', '2015-02-14 00:12:55', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 00:12:55', '2015-02-14 00:12:55', 980190962)  (11.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 00:15:33', '2015-02-14 00:15:33', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 00:15:33', '2015-02-14 00:15:33', 980190962) Fixture Delete (0.2ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 00:15:33', '2015-02-14 00:15:33', 980190962)  (12.6ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 00:23:43', '2015-02-14 00:23:43', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 00:23:43', '2015-02-14 00:23:43', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 00:23:43', '2015-02-14 00:23:43', 980190962) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 00:30:40', '2015-02-14 00:30:40', 980190962) Fixture Delete (0.0ms) DELETE FROM "users" Fixture Insert (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 00:30:40', '2015-02-14 00:30:40', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 00:30:40', '2015-02-14 00:30:40', 980190962) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 01:15:05', '2015-02-14 01:15:05', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 01:15:05', '2015-02-14 01:15:05', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 01:15:05', '2015-02-14 01:15:05', 980190962) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 01:16:03', '2015-02-14 01:16:03', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 01:16:03', '2015-02-14 01:16:03', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 01:16:03', '2015-02-14 01:16:03', 980190962) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Connecting to database specified by database.yml  (0.4ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 01:17:37', '2015-02-14 01:17:37', 980190962) Fixture Delete (0.0ms) DELETE FROM "users" Fixture Insert (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 01:17:37', '2015-02-14 01:17:37', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 01:17:37', '2015-02-14 01:17:37', 980190962)  (14.7ms) commit transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.4ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 01:25:34', '2015-02-14 01:25:34', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 01:25:34', '2015-02-14 01:25:34', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 01:25:34', '2015-02-14 01:25:34', 980190962)  (25.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 01:25:51', '2015-02-14 01:25:51', 980190962) Fixture Delete (0.0ms) DELETE FROM "users" Fixture Insert (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 01:25:51', '2015-02-14 01:25:51', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 01:25:51', '2015-02-14 01:25:51', 980190962) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateUsers (20150211224139) Migrating to CreateTags (20150211224157) Migrating to CreatePhones (20150211224225)  (0.2ms) select sqlite_version(*)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.1ms) PRAGMA index_list("phones")  (0.1ms) PRAGMA index_info('index_phones_on_phoneable_type_and_phoneable_id')  (0.0ms) PRAGMA index_list("tags")  (0.0ms) PRAGMA index_info('index_tags_on_user_id')  (0.0ms) PRAGMA index_list("users")  (18.7ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "phoneable_id" integer, "phoneable_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (12.7ms) CREATE INDEX "index_phones_on_phoneable_type_and_phoneable_id" ON "phones" ("phoneable_type", "phoneable_id")  (12.5ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (12.4ms) CREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id")  (23.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (30.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (13.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (12.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224225')  (12.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224157')  (24.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224139') ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 01:42:04', '2015-02-14 01:42:04', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 01:42:04', '2015-02-14 01:42:04', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 01:42:04', '2015-02-14 01:42:04', 980190962)  (16.5ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 01:42:19', '2015-02-14 01:42:19', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 01:42:19', '2015-02-14 01:42:19', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 01:42:19', '2015-02-14 01:42:19', 980190962) User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 01:59:31', '2015-02-14 01:59:31', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 01:59:31', '2015-02-14 01:59:31', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 01:59:31', '2015-02-14 01:59:31', 980190962) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 02:03:47', '2015-02-14 02:03:47', 980190962) Fixture Delete (0.0ms) DELETE FROM "users" Fixture Insert (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 02:03:47', '2015-02-14 02:03:47', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 02:03:47', '2015-02-14 02:03:47', 980190962) User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]] Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 02:04:02', '2015-02-14 02:04:02', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 02:04:02', '2015-02-14 02:04:02', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 02:04:02', '2015-02-14 02:04:02', 980190962)  (19.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 02:04:16', '2015-02-14 02:04:16', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 02:04:16', '2015-02-14 02:04:16', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 02:04:16', '2015-02-14 02:04:16', 980190962)  (25.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 02:04:30', '2015-02-14 02:04:30', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 02:04:30', '2015-02-14 02:04:30', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 02:04:30', '2015-02-14 02:04:30', 980190962)  (24.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Connecting to database specified by database.yml  (0.4ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 02:04:44', '2015-02-14 02:04:44', 980190962) Fixture Delete (0.0ms) DELETE FROM "users" Fixture Insert (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 02:04:44', '2015-02-14 02:04:44', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 02:04:44', '2015-02-14 02:04:44', 980190962)  (12.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Tag Load (0.0ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.5ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (18.0ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "phoneable_id" integer, "phoneable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) select sqlite_version(*)  (12.1ms) CREATE INDEX "index_phones_on_phoneable_id_and_phoneable_type" ON "phones" ("phoneable_id", "phoneable_type")  (11.9ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (23.8ms) CREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id")  (21.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (12.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (11.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (11.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224225')  (11.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224157')  (11.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224139') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 02:41:21', '2015-02-14 02:41:21', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 02:41:21', '2015-02-14 02:41:21', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 02:41:21', '2015-02-14 02:41:21', 980190962)  (12.8ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 02:41:35', '2015-02-14 02:41:35', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 02:41:35', '2015-02-14 02:41:35', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 02:41:35', '2015-02-14 02:41:35', 980190962)  (30.1ms) commit transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.4ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.4ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.4ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 02:41:49', '2015-02-14 02:41:49', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 02:41:49', '2015-02-14 02:41:49', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 02:41:49', '2015-02-14 02:41:49', 980190962)  (13.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction Connecting to database specified by database.yml Unable to load item, underlying cause No such file to load -- item /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load agile_queue, underlying cause No such file to load -- agile_queue /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
'  (0.4ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil -----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil -------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance -----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone ---------------------------------------------------------------------------  (9.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance ---------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil ---------------------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil -----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance ---------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil -------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance -----------------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance ---------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil -----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance -----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil -------------------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance -----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil -------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance ---------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil -----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance -----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil -------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic ---------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance ---------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil -----------------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "items" SQLite3::SQLException: no such table: items: DELETE FROM "items"  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil -----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance ---------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance -----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil -------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic ---------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 03:09:14', '2015-02-14 03:09:14', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 03:09:14', '2015-02-14 03:09:14', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 03:09:14', '2015-02-14 03:09:14', 980190962)  (13.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 03:09:26', '2015-02-14 03:09:26', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 03:09:26', '2015-02-14 03:09:26', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 03:09:26', '2015-02-14 03:09:26', 980190962)  (16.7ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.4ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (1, 'User', '2015-02-14 03:09:43', '2015-02-14 03:09:43', 980190962) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-14 03:09:43', '2015-02-14 03:09:43', 980190962) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (1, '2015-02-14 03:09:43', '2015-02-14 03:09:43', 980190962)  (18.6ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190962]]  (0.0ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (6.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.0ms) rollback transaction  (29.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (16.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150211224139)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224139"]]  (12.2ms) commit transaction Migrating to CreateTags (20150211224157)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.4ms) CREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224157"]]  (11.9ms) commit transaction Migrating to CreatePhones (20150211224225)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "phoneable_id" integer, "phoneable_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_phones_on_phoneable_id_and_phoneable_type" ON "phones" ("phoneable_id", "phoneable_type") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224225"]]  (13.2ms) commit transaction Migrating to CreateAddresses (20150216092218)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_id" integer, "addressable_type" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.3ms) CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092218"]]  (12.5ms) commit transaction Migrating to CreateProfiles (20150216092338)  (0.2ms) begin transaction  (0.7ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "profileable_id" integer, "profileable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.3ms) CREATE INDEX "index_profiles_on_profileable_id_and_profileable_type" ON "profiles" ("profileable_id", "profileable_type") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092338"]]  (17.0ms) commit transaction Migrating to CreatePhotos (20150216092411)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photoable_id" integer, "photoable_type" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) CREATE INDEX "index_photos_on_photoable_id_and_photoable_type" ON "photos" ("photoable_id", "photoable_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092411"]]  (20.9ms) commit transaction Migrating to CreateContacts (20150216092449)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime, "updated_at" datetime)  (0.4ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092449"]]  (26.0ms) commit transaction Migrating to CreateSsns (20150216092519)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "ssns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "created_at" datetime, "updated_at" datetime)   (0.4ms) CREATE INDEX "index_ssns_on_user_id" ON "ssns" ("user_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092519"]]  (12.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:13', '2015-02-16 22:21:13', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.2ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:21:14', '2015-02-16 22:21:14', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:07', '2015-02-16 22:23:07', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:23:08', '2015-02-16 22:23:08', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935) SQLite3::SQLException: table addresses has no column named addressable_tpye: INSERT INTO "addresses" ("addressable_id", "addressable_tpye", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:25:23', '2015-02-16 22:25:23', 761411935)  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:28:42', '2015-02-16 22:28:42', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:28:42', '2015-02-16 22:28:42', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:28:42', '2015-02-16 22:28:42', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:28:42', '2015-02-16 22:28:42', 980190962) Fixture Insert (0.1ms) INSERT INTO "photos" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:28:42', '2015-02-16 22:28:42', 298486374) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:28:42', '2015-02-16 22:28:42', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:28:42', '2015-02-16 22:28:42', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:28:42', '2015-02-16 22:28:42', 775134066) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:28:42', '2015-02-16 22:28:42', 971855462) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:28:42', '2015-02-16 22:28:42', 1032612456) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:28:42', '2015-02-16 22:28:42', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:28:42', '2015-02-16 22:28:42', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:28:42', '2015-02-16 22:28:42', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:28:42', '2015-02-16 22:28:42', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:28:42', '2015-02-16 22:28:42', 21061382) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:28:42', '2015-02-16 22:28:42', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:28:42', '2015-02-16 22:28:42', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:28:42', '2015-02-16 22:28:42', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:28:42', '2015-02-16 22:28:42', 410780858)  (15.9ms) commit transaction  (0.2ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ----------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone ---------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil -----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil -------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance ---------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance -----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:30:05', '2015-02-16 22:30:05', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:30:05', '2015-02-16 22:30:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:30:05', '2015-02-16 22:30:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:30:05', '2015-02-16 22:30:05', 980190962) Fixture Insert (0.1ms) INSERT INTO "photos" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:30:05', '2015-02-16 22:30:05', 298486374) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:30:05', '2015-02-16 22:30:05', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:30:05', '2015-02-16 22:30:05', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:30:05', '2015-02-16 22:30:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:30:05', '2015-02-16 22:30:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:30:05', '2015-02-16 22:30:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:30:05', '2015-02-16 22:30:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:30:05', '2015-02-16 22:30:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:30:05', '2015-02-16 22:30:05', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:30:05', '2015-02-16 22:30:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:30:05', '2015-02-16 22:30:05', 21061382) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:30:05', '2015-02-16 22:30:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:30:05', '2015-02-16 22:30:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:30:05', '2015-02-16 22:30:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:30:05', '2015-02-16 22:30:05', 410780858)  (22.9ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic ---------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ----------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ----------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' -----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:35:06', '2015-02-16 22:35:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:35:06', '2015-02-16 22:35:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:35:06', '2015-02-16 22:35:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:35:06', '2015-02-16 22:35:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:35:06', '2015-02-16 22:35:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:35:06', '2015-02-16 22:35:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:35:06', '2015-02-16 22:35:06', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:35:06', '2015-02-16 22:35:06', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:35:06', '2015-02-16 22:35:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:35:06', '2015-02-16 22:35:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:35:06', '2015-02-16 22:35:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:35:06', '2015-02-16 22:35:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:35:06', '2015-02-16 22:35:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:35:06', '2015-02-16 22:35:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:35:06', '2015-02-16 22:35:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:35:06', '2015-02-16 22:35:06', 21061382) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:35:06', '2015-02-16 22:35:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:35:06', '2015-02-16 22:35:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:35:06', '2015-02-16 22:35:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:35:06', '2015-02-16 22:35:06', 410780858)  (19.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:38:11', '2015-02-16 22:38:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:38:11', '2015-02-16 22:38:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:38:11', '2015-02-16 22:38:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:38:11', '2015-02-16 22:38:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:38:11', '2015-02-16 22:38:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:38:11', '2015-02-16 22:38:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:38:11', '2015-02-16 22:38:11', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:38:11', '2015-02-16 22:38:11', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:38:11', '2015-02-16 22:38:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:38:11', '2015-02-16 22:38:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:38:11', '2015-02-16 22:38:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:38:11', '2015-02-16 22:38:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:38:11', '2015-02-16 22:38:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:38:11', '2015-02-16 22:38:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:38:11', '2015-02-16 22:38:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:38:11', '2015-02-16 22:38:11', 21061382) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:38:11', '2015-02-16 22:38:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:38:11', '2015-02-16 22:38:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:38:11', '2015-02-16 22:38:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:38:11', '2015-02-16 22:38:11', 410780858)  (18.9ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:38:37', '2015-02-16 22:38:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:38:37', '2015-02-16 22:38:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:38:37', '2015-02-16 22:38:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:38:37', '2015-02-16 22:38:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:38:37', '2015-02-16 22:38:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:38:37', '2015-02-16 22:38:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:38:37', '2015-02-16 22:38:37', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:38:37', '2015-02-16 22:38:37', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:38:37', '2015-02-16 22:38:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:38:37', '2015-02-16 22:38:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:38:37', '2015-02-16 22:38:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:38:37', '2015-02-16 22:38:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:38:37', '2015-02-16 22:38:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:38:37', '2015-02-16 22:38:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:38:37', '2015-02-16 22:38:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:38:37', '2015-02-16 22:38:37', 21061382) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:38:37', '2015-02-16 22:38:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:38:37', '2015-02-16 22:38:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:38:37', '2015-02-16 22:38:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:38:37', '2015-02-16 22:38:37', 410780858)  (19.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:39:02', '2015-02-16 22:39:02', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:39:02', '2015-02-16 22:39:02', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:39:02', '2015-02-16 22:39:02', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:39:02', '2015-02-16 22:39:02', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:39:02', '2015-02-16 22:39:02', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:39:02', '2015-02-16 22:39:02', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:39:02', '2015-02-16 22:39:02', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:39:02', '2015-02-16 22:39:02', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:39:02', '2015-02-16 22:39:02', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:39:02', '2015-02-16 22:39:02', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:39:02', '2015-02-16 22:39:02', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:39:02', '2015-02-16 22:39:02', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:39:02', '2015-02-16 22:39:02', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:39:02', '2015-02-16 22:39:02', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:39:02', '2015-02-16 22:39:02', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:39:02', '2015-02-16 22:39:02', 21061382) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:39:02', '2015-02-16 22:39:02', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:39:02', '2015-02-16 22:39:02', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:39:02', '2015-02-16 22:39:02', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:39:02', '2015-02-16 22:39:02', 410780858)  (16.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent request returns User instance ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 902541635], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:40:43', '2015-02-16 22:40:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:40:43', '2015-02-16 22:40:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:40:43', '2015-02-16 22:40:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:40:43', '2015-02-16 22:40:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:40:43', '2015-02-16 22:40:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:40:43', '2015-02-16 22:40:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:40:43', '2015-02-16 22:40:43', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:40:43', '2015-02-16 22:40:43', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:40:43', '2015-02-16 22:40:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:40:43', '2015-02-16 22:40:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:40:43', '2015-02-16 22:40:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:40:43', '2015-02-16 22:40:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:40:43', '2015-02-16 22:40:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:40:43', '2015-02-16 22:40:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:40:43', '2015-02-16 22:40:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:40:43', '2015-02-16 22:40:43', 21061382) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:40:43', '2015-02-16 22:40:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:40:43', '2015-02-16 22:40:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:40:43', '2015-02-16 22:40:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:40:43', '2015-02-16 22:40:43', 410780858)  (12.6ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:41:54', '2015-02-16 22:41:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:41:54', '2015-02-16 22:41:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:41:54', '2015-02-16 22:41:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:41:54', '2015-02-16 22:41:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:41:54', '2015-02-16 22:41:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:41:54', '2015-02-16 22:41:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:41:54', '2015-02-16 22:41:54', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:41:54', '2015-02-16 22:41:54', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:41:54', '2015-02-16 22:41:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:41:54', '2015-02-16 22:41:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:41:54', '2015-02-16 22:41:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:41:54', '2015-02-16 22:41:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:41:54', '2015-02-16 22:41:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:41:54', '2015-02-16 22:41:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:41:54', '2015-02-16 22:41:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:41:54', '2015-02-16 22:41:54', 21061382) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:41:54', '2015-02-16 22:41:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:41:54', '2015-02-16 22:41:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:41:54', '2015-02-16 22:41:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:41:54', '2015-02-16 22:41:54', 410780858)  (21.6ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:42:28', '2015-02-16 22:42:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:42:28', '2015-02-16 22:42:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:42:28', '2015-02-16 22:42:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:42:28', '2015-02-16 22:42:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:42:28', '2015-02-16 22:42:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:42:28', '2015-02-16 22:42:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:42:28', '2015-02-16 22:42:28', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:42:28', '2015-02-16 22:42:28', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:42:28', '2015-02-16 22:42:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:42:28', '2015-02-16 22:42:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:42:28', '2015-02-16 22:42:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:42:28', '2015-02-16 22:42:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:42:28', '2015-02-16 22:42:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:42:28', '2015-02-16 22:42:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:42:28', '2015-02-16 22:42:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:42:28', '2015-02-16 22:42:28', 21061382) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:42:28', '2015-02-16 22:42:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:42:28', '2015-02-16 22:42:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:42:28', '2015-02-16 22:42:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:42:28', '2015-02-16 22:42:28', 410780858)  (12.5ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'User' ----------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 22:42:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 16 Feb 2015 22:42:28 UTC +00:00]] SQL (0.9ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 22:42:28 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Mon, 16 Feb 2015 22:42:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:43:18', '2015-02-16 22:43:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:43:18', '2015-02-16 22:43:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:43:18', '2015-02-16 22:43:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:43:18', '2015-02-16 22:43:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:43:18', '2015-02-16 22:43:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:43:18', '2015-02-16 22:43:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:43:18', '2015-02-16 22:43:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:43:18', '2015-02-16 22:43:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:43:18', '2015-02-16 22:43:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:43:18', '2015-02-16 22:43:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:43:18', '2015-02-16 22:43:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:43:18', '2015-02-16 22:43:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:43:18', '2015-02-16 22:43:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:43:18', '2015-02-16 22:43:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:43:18', '2015-02-16 22:43:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:43:18', '2015-02-16 22:43:18', 21061382) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:43:18', '2015-02-16 22:43:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:43:18', '2015-02-16 22:43:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:43:18', '2015-02-16 22:43:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:43:18', '2015-02-16 22:43:18', 410780858)  (36.5ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic -----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 --------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 22:43:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 16 Feb 2015 22:43:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 22:43:18 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Mon, 16 Feb 2015 22:43:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:44:09', '2015-02-16 22:44:09', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:44:09', '2015-02-16 22:44:09', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:44:09', '2015-02-16 22:44:09', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:44:09', '2015-02-16 22:44:09', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:44:09', '2015-02-16 22:44:09', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:44:09', '2015-02-16 22:44:09', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:44:09', '2015-02-16 22:44:09', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:44:09', '2015-02-16 22:44:09', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:44:09', '2015-02-16 22:44:09', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:44:09', '2015-02-16 22:44:09', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:44:09', '2015-02-16 22:44:09', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:44:09', '2015-02-16 22:44:09', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:44:09', '2015-02-16 22:44:09', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:44:09', '2015-02-16 22:44:09', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:44:09', '2015-02-16 22:44:09', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:44:09', '2015-02-16 22:44:09', 21061382) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:44:09', '2015-02-16 22:44:09', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:44:09', '2015-02-16 22:44:09', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:44:09', '2015-02-16 22:44:09', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:44:09', '2015-02-16 22:44:09', 410780858)  (32.7ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as 1 -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as 1 ---------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 22:44:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 16 Feb 2015 22:44:09 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 22:44:09 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Mon, 16 Feb 2015 22:44:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ----------------------- AddressTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- ContactTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction --------------------- PhotoTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:49:45', '2015-02-16 22:49:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:49:45', '2015-02-16 22:49:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:49:45', '2015-02-16 22:49:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:49:45', '2015-02-16 22:49:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:49:45', '2015-02-16 22:49:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:49:45', '2015-02-16 22:49:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:49:45', '2015-02-16 22:49:45', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:49:45', '2015-02-16 22:49:45', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:49:45', '2015-02-16 22:49:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:49:45', '2015-02-16 22:49:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:49:45', '2015-02-16 22:49:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:49:45', '2015-02-16 22:49:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:49:45', '2015-02-16 22:49:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:49:45', '2015-02-16 22:49:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:49:45', '2015-02-16 22:49:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:49:45', '2015-02-16 22:49:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:49:45', '2015-02-16 22:49:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:49:45', '2015-02-16 22:49:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:49:45', '2015-02-16 22:49:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:49:45', '2015-02-16 22:49:45', 410780858)  (14.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 22:49:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 16 Feb 2015 22:49:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 22:49:45 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Mon, 16 Feb 2015 22:49:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------- ProfileTest: test_valid -----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------- SsnTest: test_valid -------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:51:38', '2015-02-16 22:51:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:51:38', '2015-02-16 22:51:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:51:38', '2015-02-16 22:51:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:51:38', '2015-02-16 22:51:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:51:38', '2015-02-16 22:51:38', 971855462) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:51:38', '2015-02-16 22:51:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:51:38', '2015-02-16 22:51:38', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:51:38', '2015-02-16 22:51:38', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 22:51:38', '2015-02-16 22:51:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 22:51:38', '2015-02-16 22:51:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 22:51:38', '2015-02-16 22:51:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:51:38', '2015-02-16 22:51:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:51:38', '2015-02-16 22:51:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 22:51:38', '2015-02-16 22:51:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:51:38', '2015-02-16 22:51:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:51:38', '2015-02-16 22:51:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:51:38', '2015-02-16 22:51:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 22:51:38', '2015-02-16 22:51:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 22:51:38', '2015-02-16 22:51:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 22:51:38', '2015-02-16 22:51:38', 410780858)  (12.5ms) commit transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 22:51:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 16 Feb 2015 22:51:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 22:51:38 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Mon, 16 Feb 2015 22:51:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 23:52:13', '2015-02-16 23:52:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 23:52:13', '2015-02-16 23:52:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 23:52:13', '2015-02-16 23:52:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 23:52:13', '2015-02-16 23:52:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 23:52:13', '2015-02-16 23:52:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 23:52:13', '2015-02-16 23:52:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:52:13', '2015-02-16 23:52:13', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:52:13', '2015-02-16 23:52:13', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 23:52:13', '2015-02-16 23:52:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 23:52:13', '2015-02-16 23:52:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 23:52:13', '2015-02-16 23:52:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:52:13', '2015-02-16 23:52:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:52:13', '2015-02-16 23:52:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:52:13', '2015-02-16 23:52:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 23:52:13', '2015-02-16 23:52:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 23:52:13', '2015-02-16 23:52:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 23:52:13', '2015-02-16 23:52:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 23:52:13', '2015-02-16 23:52:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 23:52:13', '2015-02-16 23:52:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 23:52:13', '2015-02-16 23:52:13', 410780858)  (19.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup ------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 23:52:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 16 Feb 2015 23:52:13 UTC +00:00]] SQL (0.4ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 23:52:13 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Mon, 16 Feb 2015 23:52:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 23:53:52', '2015-02-16 23:53:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 23:53:52', '2015-02-16 23:53:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 23:53:52', '2015-02-16 23:53:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 23:53:52', '2015-02-16 23:53:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 23:53:52', '2015-02-16 23:53:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 23:53:52', '2015-02-16 23:53:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:53:52', '2015-02-16 23:53:52', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:53:52', '2015-02-16 23:53:52', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 23:53:52', '2015-02-16 23:53:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 23:53:52', '2015-02-16 23:53:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 23:53:52', '2015-02-16 23:53:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:53:52', '2015-02-16 23:53:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:53:52', '2015-02-16 23:53:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:53:52', '2015-02-16 23:53:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 23:53:53', '2015-02-16 23:53:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 23:53:53', '2015-02-16 23:53:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 23:53:53', '2015-02-16 23:53:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 23:53:53', '2015-02-16 23:53:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 23:53:53', '2015-02-16 23:53:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 23:53:53', '2015-02-16 23:53:53', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup ------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.3ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 23:53:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 16 Feb 2015 23:53:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 23:53:53 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Mon, 16 Feb 2015 23:53:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 23:55:55', '2015-02-16 23:55:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 23:55:55', '2015-02-16 23:55:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 23:55:55', '2015-02-16 23:55:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 23:55:55', '2015-02-16 23:55:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 23:55:55', '2015-02-16 23:55:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 23:55:55', '2015-02-16 23:55:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:55:55', '2015-02-16 23:55:55', 980190962) Fixture Insert (0.2ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:55:55', '2015-02-16 23:55:55', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-16 23:55:55', '2015-02-16 23:55:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-16 23:55:55', '2015-02-16 23:55:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-16 23:55:55', '2015-02-16 23:55:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:55:55', '2015-02-16 23:55:55', 902541635) Fixture Insert (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:55:55', '2015-02-16 23:55:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-16 23:55:55', '2015-02-16 23:55:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 23:55:55', '2015-02-16 23:55:55', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 23:55:55', '2015-02-16 23:55:55', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 23:55:55', '2015-02-16 23:55:55', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-16 23:55:55', '2015-02-16 23:55:55', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-16 23:55:55', '2015-02-16 23:55:55', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-16 23:55:55', '2015-02-16 23:55:55', 410780858)  (19.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.5ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 23:55:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 16 Feb 2015 23:55:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 16 Feb 2015 23:55:55 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Mon, 16 Feb 2015 23:55:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:06:31', '2015-02-17 00:06:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:06:31', '2015-02-17 00:06:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:06:31', '2015-02-17 00:06:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:06:31', '2015-02-17 00:06:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:06:31', '2015-02-17 00:06:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:06:31', '2015-02-17 00:06:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:06:31', '2015-02-17 00:06:31', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:06:31', '2015-02-17 00:06:31', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:06:31', '2015-02-17 00:06:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:06:31', '2015-02-17 00:06:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:06:31', '2015-02-17 00:06:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:06:31', '2015-02-17 00:06:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:06:31', '2015-02-17 00:06:31', 380377255) Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:06:31', '2015-02-17 00:06:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 00:06:31', '2015-02-17 00:06:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 00:06:31', '2015-02-17 00:06:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 00:06:31', '2015-02-17 00:06:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 00:06:31', '2015-02-17 00:06:31', 819246218) Fixture Insert (0.3ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 00:06:31', '2015-02-17 00:06:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 00:06:31', '2015-02-17 00:06:31', 410780858)  (21.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 00:06:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 00:06:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 00:06:31 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 00:06:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:12:29', '2015-02-17 00:12:29', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:12:29', '2015-02-17 00:12:29', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:12:29', '2015-02-17 00:12:29', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:12:29', '2015-02-17 00:12:29', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:12:29', '2015-02-17 00:12:29', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:12:29', '2015-02-17 00:12:29', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:12:29', '2015-02-17 00:12:29', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:12:29', '2015-02-17 00:12:29', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:12:29', '2015-02-17 00:12:29', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:12:29', '2015-02-17 00:12:29', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:12:29', '2015-02-17 00:12:29', 762608046) Fixture Delete (0.2ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:12:29', '2015-02-17 00:12:29', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:12:29', '2015-02-17 00:12:29', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:12:29', '2015-02-17 00:12:29', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 00:12:29', '2015-02-17 00:12:29', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 00:12:29', '2015-02-17 00:12:29', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 00:12:29', '2015-02-17 00:12:29', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 00:12:29', '2015-02-17 00:12:29', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 00:12:29', '2015-02-17 00:12:29', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 00:12:29', '2015-02-17 00:12:29', 410780858)  (22.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 00:12:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 00:12:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 00:12:29 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 00:12:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:14:11', '2015-02-17 00:14:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:14:11', '2015-02-17 00:14:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:14:11', '2015-02-17 00:14:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:14:11', '2015-02-17 00:14:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:14:11', '2015-02-17 00:14:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:14:11', '2015-02-17 00:14:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:14:11', '2015-02-17 00:14:11', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:14:11', '2015-02-17 00:14:11', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:14:11', '2015-02-17 00:14:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:14:11', '2015-02-17 00:14:11', 689259936) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:14:11', '2015-02-17 00:14:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:14:11', '2015-02-17 00:14:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:14:11', '2015-02-17 00:14:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:14:11', '2015-02-17 00:14:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 00:14:11', '2015-02-17 00:14:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 00:14:11', '2015-02-17 00:14:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 00:14:11', '2015-02-17 00:14:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 00:14:11', '2015-02-17 00:14:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 00:14:11', '2015-02-17 00:14:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 00:14:11', '2015-02-17 00:14:11', 410780858)  (12.5ms) commit transaction  (0.0ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 00:14:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 00:14:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 00:14:11 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 00:14:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:15:29', '2015-02-17 00:15:29', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:15:29', '2015-02-17 00:15:29', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:15:29', '2015-02-17 00:15:29', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:15:29', '2015-02-17 00:15:29', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:15:29', '2015-02-17 00:15:29', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:15:29', '2015-02-17 00:15:29', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:15:29', '2015-02-17 00:15:29', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:15:29', '2015-02-17 00:15:29', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:15:29', '2015-02-17 00:15:29', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:15:29', '2015-02-17 00:15:29', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:15:29', '2015-02-17 00:15:29', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:15:29', '2015-02-17 00:15:29', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:15:29', '2015-02-17 00:15:29', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:15:29', '2015-02-17 00:15:29', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 00:15:29', '2015-02-17 00:15:29', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 00:15:29', '2015-02-17 00:15:29', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 00:15:29', '2015-02-17 00:15:29', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 00:15:29', '2015-02-17 00:15:29', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 00:15:29', '2015-02-17 00:15:29', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 00:15:29', '2015-02-17 00:15:29', 410780858)  (20.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup ------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 00:15:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 00:15:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 00:15:29 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 00:15:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:17:52', '2015-02-17 00:17:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:17:52', '2015-02-17 00:17:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:17:52', '2015-02-17 00:17:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:17:52', '2015-02-17 00:17:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:17:52', '2015-02-17 00:17:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:17:52', '2015-02-17 00:17:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:17:52', '2015-02-17 00:17:52', 980190962) Fixture Insert (0.2ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:17:52', '2015-02-17 00:17:52', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:17:52', '2015-02-17 00:17:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:17:52', '2015-02-17 00:17:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:17:52', '2015-02-17 00:17:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:17:52', '2015-02-17 00:17:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:17:52', '2015-02-17 00:17:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:17:52', '2015-02-17 00:17:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 00:17:52', '2015-02-17 00:17:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 00:17:52', '2015-02-17 00:17:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 00:17:52', '2015-02-17 00:17:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 00:17:52', '2015-02-17 00:17:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 00:17:52', '2015-02-17 00:17:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 00:17:52', '2015-02-17 00:17:52', 410780858)  (21.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup ------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 00:17:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 00:17:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 00:17:52 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 00:17:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:19:52', '2015-02-17 00:19:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:19:52', '2015-02-17 00:19:52', 1057142427) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:19:52', '2015-02-17 00:19:52', 633598004) Fixture Delete (0.2ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:19:52', '2015-02-17 00:19:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:19:52', '2015-02-17 00:19:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:19:52', '2015-02-17 00:19:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:19:52', '2015-02-17 00:19:52', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:19:52', '2015-02-17 00:19:52', 298486374) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 00:19:52', '2015-02-17 00:19:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 00:19:52', '2015-02-17 00:19:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 00:19:52', '2015-02-17 00:19:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:19:52', '2015-02-17 00:19:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:19:52', '2015-02-17 00:19:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 00:19:52', '2015-02-17 00:19:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 00:19:52', '2015-02-17 00:19:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 00:19:52', '2015-02-17 00:19:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 00:19:52', '2015-02-17 00:19:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 00:19:52', '2015-02-17 00:19:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 00:19:52', '2015-02-17 00:19:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 00:19:52', '2015-02-17 00:19:52', 410780858)  (14.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup ------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 00:19:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 00:19:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 00:19:52 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 00:19:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 02:05:51', '2015-02-17 02:05:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 02:05:51', '2015-02-17 02:05:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 02:05:51', '2015-02-17 02:05:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 02:05:51', '2015-02-17 02:05:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 02:05:51', '2015-02-17 02:05:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 02:05:51', '2015-02-17 02:05:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 02:05:51', '2015-02-17 02:05:51', 980190962) Fixture Insert (0.1ms) INSERT INTO "profiles" ("created_at", "updated_at", "id") VALUES ('2015-02-17 02:05:51', '2015-02-17 02:05:51', 298486374) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2015-02-17 02:05:51', '2015-02-17 02:05:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2015-02-17 02:05:51', '2015-02-17 02:05:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2015-02-17 02:05:51', '2015-02-17 02:05:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 02:05:51', '2015-02-17 02:05:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 02:05:51', '2015-02-17 02:05:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 02:05:51', '2015-02-17 02:05:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 02:05:51', '2015-02-17 02:05:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 02:05:51', '2015-02-17 02:05:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 02:05:51', '2015-02-17 02:05:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (902541635, '2015-02-17 02:05:51', '2015-02-17 02:05:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (380377255, '2015-02-17 02:05:51', '2015-02-17 02:05:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "created_at", "updated_at", "id") VALUES (619379998, '2015-02-17 02:05:51', '2015-02-17 02:05:51', 410780858)  (21.1ms) commit transaction  (0.2ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 02:05:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 02:05:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 02:05:51 UTC +00:00], ["phoneable_id", 980190963], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 02:05:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (13.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (19.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150211224139)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224139"]]  (24.7ms) commit transaction Migrating to CreateTags (20150211224157)  (0.2ms) begin transaction  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.3ms) CREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224157"]]  (25.2ms) commit transaction Migrating to CreatePhones (20150211224225)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "phoneable_id" integer, "phoneable_type" varchar(255), "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.4ms) CREATE INDEX "index_phones_on_phoneable_id_and_phoneable_type" ON "phones" ("phoneable_id", "phoneable_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224225"]]  (23.7ms) commit transaction Migrating to CreateAddresses (20150216092218)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_id" integer, "addressable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.3ms) CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092218"]]  (23.4ms) commit transaction Migrating to CreateProfiles (20150216092338)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "profileable_id" integer, "profileable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.4ms) CREATE INDEX "index_profiles_on_profileable_id_and_profileable_type" ON "profiles" ("profileable_id", "profileable_type") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092338"]]  (25.8ms) commit transaction Migrating to CreatePhotos (20150216092411)  (0.2ms) begin transaction  (0.7ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photoable_id" integer, "photoable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.4ms) CREATE INDEX "index_photos_on_photoable_id_and_photoable_type" ON "photos" ("photoable_id", "photoable_type") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092411"]]  (12.3ms) commit transaction Migrating to CreateContacts (20150216092449)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.3ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092449"]]  (17.7ms) commit transaction Migrating to CreateSsns (20150216092519)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "ssns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) CREATE INDEX "index_ssns_on_user_id" ON "ssns" ("user_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092519"]]  (29.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '619e248b2352545bb9b7622f3fe35cb9', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b1af89582867704e30bc9a0cb7d25067', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd64e38b363044ffe0d9cb14bfa66f150', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e357b47ec5f90449175114c4629e444d', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c1f674593fe26333f0f2b69d40dbca7d', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '451a73515ccc58bbbce812d7567331b4', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c6a87e2873b76d7e3c4a7ab686faaf39', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '63d1ce186b7e78224915e5cd8d72aeef', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1c178dfa6c2aa748e3932b244ba64324', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a20ac67a579ef39c6076763749422ffe', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7a7cf8ddd24efdccf1c50e67c5ffa854', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e3cfbb7267f25b963eb8db6e4cb6c75b', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 02:26:19', '2015-02-17 02:26:19', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 02:26:19', '2015-02-17 02:26:19', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 02:26:19', '2015-02-17 02:26:19', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'feda8ac07019033546c55743a630f24e', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7c3d8a41b2aaeda83222d89db2bbde2d', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1cb64a092bfc4b72ca0f4eee591ef382', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.3ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7fe56cfffa018db2caa1c901ba7683ee', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '51cb76af475536d0ddf96776067c5148', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9f862d3216d97d4fc6e6586396b03e7e', '2015-02-17 02:26:19', '2015-02-17 02:26:19', 410780858)  (25.5ms) commit transaction  (0.2ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (6.4ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 02:26:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 02:26:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 02:26:19 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 02:26:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c6a256d867a96a038838a54ec3952b42', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '24814fb1d749f27e53818b88c6cf8df4', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f53834d661512960db53a84273ac6b91', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd8786f56c88bf8b8464c5fe46eef51e8', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6269fb781d628ad12d48352a7c5d7a67', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e7c547f5fa6a86fa1d2993e0f59c851f', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c275a19e5efdb515baef9853d02a0137', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '61776e455104a0300e2af2236ec6718a', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7b3c012a0721500f6b2b8708e1223b2b', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6cb42e2273442b9437aeff217b4b85c4', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bc1577486e8b266e87723ddf3528ea83', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '19f43cd27b3b79a8c9be73920adca8fd', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 762608046) Fixture Delete (0.3ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 02:54:40', '2015-02-17 02:54:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 02:54:40', '2015-02-17 02:54:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 02:54:40', '2015-02-17 02:54:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e49ab7df4b503e41edaf8ec3a132ba7a', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8ec91fa6319a23cc1e73fd115755a14f', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '41db07fb4552be76137b9577f6a35bba', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f55eb8ee1fafc12928d0f1a165684963', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '51c36e5335043a406bb9458de221b36a', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0842c6826a15ae6b2a29fade9320330e', '2015-02-17 02:54:40', '2015-02-17 02:54:40', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0002_reports User as not polymorphic ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0003_reports Tag as not polymorphic ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0004_reports Phone as polymorphic --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsToTest: test_0005_reports User belongs to relation table as nil -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0006_reports Tag belongs to relation table as :user --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0007_reports Phone belongs to relation table as :phoneable ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsToTest: test_0008_reports User params name as :user -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0009_reports Tag params name as :tag ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0010_reports Phone params name as :phones_attributes ---------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0011_reports Phone params name with false as :phone --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0012_reports User belongs to field id symbol as nil --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0013_reports Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsToTest: test_0014_reports Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsToTest: test_0015_reports User belongs to field type symbol as nil ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsToTest: test_0016_reports Tag belongs to field type symbol as nil ---------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0017_reports Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsToTest: test_0018_reports User belongs to relation id as nil ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsToTest: test_0019_reports Tag belongs to relation id as Bob's ID --------------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsToTest: test_0020_reports Phone belongs to relation id as Bob's Profile ID ------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsToTest: test_0021_reports User belongs to relation type as nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsToTest: test_0022_reports Tag belongs to relation type as nil ------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsToTest: test_0023_reports Phone belongs to relation type as 'Profile' -------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsToTest: test_0024_User parent request returns nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent request returns User instance --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent request returns Profile instance and Profile parent request returns User ------------------------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 02:54:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 02:54:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 02:54:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 02:54:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ad5d4810f7c82d5d5ca1c2b127970f67', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '41db26a13d6d265af76e0c2ee4f9945a', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0691a47b1a27090cb6269b1c95621bf9', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b374c68af753eaaa69f679001a944ab6', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc33623ed1d16826e202905730eb45e2', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '03acd2065cd36d519a63874368a1b29b', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'aab2487406278878ab8b7127a43c6b96', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '24c8efa60429e043623c5331fd73df5a', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '821dd56b7156d918bd344b2e50c627f2', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '648af77ebf24f7ede350f193041845aa', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '15f41657ed778be0d3efea874f6327f9', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 689259936) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dfc649358143c7b61c4b1446b4b8b12f', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:01:27', '2015-02-17 03:01:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:01:27', '2015-02-17 03:01:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:01:27', '2015-02-17 03:01:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '51bfd943ee7b475894ee9ef168d32b27', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4fc201f2984902537a54493298cb175d', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 1035759634) Fixture Insert (0.3ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5d1780fc6a396a7e53fae0368fbbbc9b', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1582ea28b63f491faceca6d4ffe96340', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6c1f69d871615c959edb0d0c1a46ab3b', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2d3801e185bf6e59d14770f3edfd3532', '2015-02-17 03:01:27', '2015-02-17 03:01:27', 410780858)  (13.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.7ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as Bob's ID ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as Bob's Profile ID -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns User instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsToTest: test_0026_Phone parent returns Profile instance & Profile parent returns User ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:01:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:01:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:01:27 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:01:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'af31609d8ba7018b37990dbbe1813014', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0421279fcce9a6b90088b07da119872a', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b0bb140dd60bff31779c218b4aa0098a', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b2ff9d62ce8dfee765bb62bf57fe3cdc', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3306791d28555fb42906f5f57b69795b', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 971855462) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '69fbf504e3f41778ec957087516e2d2e', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ee3423cf47b0ec475920cb49feea907c', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 261299535) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5abc0475c1dd1d971fa4e17a20c93004', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '120088d08cfa1855e71cde5a674dc553', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '396afd883fff54f8c7cce1aa34ad7ba9', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bea1bbe343053c2f1394f7d4d2a1ca86', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f09370352ea2dec7591e38636e2db466', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:03:20', '2015-02-17 03:03:20', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:03:20', '2015-02-17 03:03:20', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:03:20', '2015-02-17 03:03:20', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bafe396db6bfbb5404c44d1c622f5f3e', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fabb3ef005fe72a856a60e1a70697351', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8e6475e60ba91248e52137f0493a453a', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9f2ef34b38408d84c8de64daa9f68a58', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0858719d1b800e07f7645cf258a3ad7a', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '72b4912d2541a889c4163b81333389b3', '2015-02-17 03:03:20', '2015-02-17 03:03:20', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as Bob's ID ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as Bob's Profile ID -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns User instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns Profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:03:20 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:03:20 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:03:20 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:03:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns User -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:03:20 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:03:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c9a21f76fb1bd41e55d889989b7c36b2', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a02f092c789448829613006d87e7482a', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd7e9368373fcfa4c4ae2a388e5562cf2', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '67b3632c2c988d62b180d02396cf5e13', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6a29719de51a97ec56cd6d4839659dad', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '05c32d74680fa7c3573d87156062f0e6', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e973a31f96278b4300fd36c2788967bb', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bde5f3caf9270b86cdf3678aad0b2901', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a3b06e4099acaebd07c7d1fdeed35794', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '820e6f506d6559cd4296ff000489c2cf', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c4556b5af642a7206418bdbb4c86bcd0', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9819ca7832c867eb8160da65f59de4f0', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:04:23', '2015-02-17 03:04:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:04:23', '2015-02-17 03:04:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:04:23', '2015-02-17 03:04:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0513d2d3975c9a9bd6dc7e5e3c8b49d2', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 884173432) Fixture Insert (0.4ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd558d091d7474bbdfe0e3654d0fba707', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4b43718f2386051d22b8dff611bc709c', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '30504f747d76c2e6debc58e6951c6af4', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1c58b3b9ce1603b0edc8941cad3f5cb3', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '84f212194c5ffc70c6641aa9c7feaa15', '2015-02-17 03:04:23', '2015-02-17 03:04:23', 410780858)  (29.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as User's ID ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as User's Profile ID --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns User instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns Profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:04:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:04:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:04:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:04:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns User -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:04:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:04:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0d93aec57cef41d85b6d71293f02bcf7', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a4ba710a81246c4987ad2d53565e111f', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c78384946dd897c0b22812d009ec6d41', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2a3a8a50d36affc248b2f039d6ea6e7f', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7096eaa5de1cb8bbd78391588ec749be', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e622d36e92284b9b8597e87c991e3c5b', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '408295c54f445d8f41a1dbfb0023fb1e', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1dd346d9ad7ba6ab81ca08fb5793bc76', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '05b8461c9d378e30478cf019a4ecbdf1', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9488885aa4b2c459c3dd5c70072e53d3', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'beed5e2df28045bd37f9412bbe58742d', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '92eab573cc33c40e40d1567ffdf99279', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:04:59', '2015-02-17 03:04:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:04:59', '2015-02-17 03:04:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:04:59', '2015-02-17 03:04:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4192851c608b5fd6122161d407220aa1', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4fb0e39863b21ebc1c48f2d8f8033851', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c7538ec05d48292b97685b74216d11a5', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2ac5102e0ad8a0e96c6dd61047604e1b', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 819246218) Fixture Insert (0.2ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7bddc3b70ebda2b048efd89760c25439', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '735a6feb506044bea2fe01c2119d6141', '2015-02-17 03:04:59', '2015-02-17 03:04:59', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as User's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as User's Profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns User instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns Profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:05:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:05:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:05:00 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:05:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns User -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:05:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:05:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9db65f520af521085b472fa6a2a11f9e', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '925ccd78fc7ae1838b2690a4d7c5cfc9', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '887928e1a8fc7485526dbe3f182c3358', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e9e30ab05554bb47dfbaba606209d8a0', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bcd7a3b066313fa96c6c74b9370efdbe', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3f5c49997138edc474279d1186d0367b', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '04bc2f793171c6b9aac88cdda79a39cb', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3e396a7127a61939f598beb780f0d2b5', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '270fb825e2a79dd565b75aca5a2bc423', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '519377034506e685a60f775831adee8f', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fae622e85748fa5b0b7c968e54ad533d', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fb5637d92f5525e1ec83695d77507696', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:05:36', '2015-02-17 03:05:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:05:36', '2015-02-17 03:05:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:05:36', '2015-02-17 03:05:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7e6059cde8bff3acd27d60daf5a28f07', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '522271b7de36c15cdc94f61a448e461d', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ffcd8a204ee2b6227c718d344fb74e69', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8ccacb3f6c212de1bc90ca527488ce96', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a7db08ca3dcca8f9c37998c8d36d0f0e', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3b095c5e61ab97214acef9866e02d489', '2015-02-17 03:05:36', '2015-02-17 03:05:36', 410780858)  (13.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as User's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as User's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns User instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:05:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:05:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:05:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:05:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns User -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:05:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:05:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '52c9a84607ae0e87af05335d802c3272', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '27b1ca17553ebb7c40426abbd49d4173', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '75fbaafcf830523a6e063ce11a590de4', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bc6ac424de7fa34c1b373e35403b041f', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 775134066) Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c7aacd8c3c2930c31f420d9a5cd23184', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '49cca94e0f6618781cc0debb44749714', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c4cca2ddae4c1a51e39f26b8bd468093', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '38fd73b64aa22db03d7ea60f3ee21426', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9349df073fac942802192066a63c9603', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'adaa6dcd8100b57c98cc937ab9c7987c', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 1053526200) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3dcabb02a4c29935d7ea8a4fc578ca38', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9911a405d30e2e5df155f6084a8e36e0', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:07:19', '2015-02-17 03:07:19', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:07:19', '2015-02-17 03:07:19', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:07:19', '2015-02-17 03:07:19', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e5ea80b6abe6629d251832bee2fc8d38', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f4f7a62398b4af0b5b8c8d08bf1ee6c9', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '94a662f8757cd42c596d87fd58eb1967', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '49602e51ade32433c829a52bac6af70e', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '84a36f1ce52f840e6fa8a32098bf19cb', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2c5ca664a65ee40fc613af5c9cf840dd', '2015-02-17 03:07:19', '2015-02-17 03:07:19', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.5ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:07:20 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:07:20 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:07:20 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:07:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns User -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:07:20 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:07:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1c3202ef36cecb21053fd0810ac37a22', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '47cc2e0a0186256f4d5629d40e990918', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '79377ccba48c4674bb166664bb2e7f3f', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 633598004) Fixture Delete (0.2ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3e4dd0387fdba84e5cd34857143a8abc', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fb131643a51b1973f2683ae5e2fc23a3', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '05e14015ef0a538d40c244c7aa5a7e1a', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '97d1542990bce76fea3726c2a2e9767a', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5260f069136f9c3a0cebc3969c0b3c34', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2924750d9535a85fedde1afa785ee37c', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e55c5c5ea4bf4b2767768984bd03cbe5', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9dbd8a76e68a32e40fdd2da6dcb27c2e', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '79ddb69d61215b877379013c4befc1e1', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:07:36', '2015-02-17 03:07:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:07:36', '2015-02-17 03:07:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:07:36', '2015-02-17 03:07:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '26369a440f95ffd552b9caa2e1bf7c90', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9314113f0b6400973dbe3608bc053020', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7eafddc917e4072039383b52cf362a7a', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 471587404) Fixture Delete (0.3ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '40e0261a3899c12c3121e06d814e44f1', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f1a89a61d9ba11476d15ebe2974112db', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e8cc61267f5e34dea9c47eb22fbd6f74', '2015-02-17 03:07:36', '2015-02-17 03:07:36', 410780858)  (22.8ms) commit transaction  (0.2ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.5ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:07:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:07:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:07:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:07:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:07:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:07:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "addresses" Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f5fa694baf2524c0b807f91d4751ee2a', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '22fd49bf51769108c0f87457acac5366', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7461f7f6bd28af485c0fd6ef264bd54a', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8b3cb0fe2189cf1e8c1872817b6798bf', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '80d80ad0c174f338984323befbbea15a', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '944a9031d0affdc38ea36b6c42e3aedf', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4de4289d2a215bd430621b3c112d402a', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3521e61ba244ef30ce1ec9522c6e56cf', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1d0a92faffbaca1636cde3a6ef927662', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '430375a1a62473e9fa1bb5e5e13c1281', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1575a42c2c58d39877d8d366788565da', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '51be9808cb0b00265c647c941ca338cc', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:13:44', '2015-02-17 03:13:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:13:44', '2015-02-17 03:13:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:13:44', '2015-02-17 03:13:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f915f507fcd6069d5f174120a181733c', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7eb5d13f1a3da2f6a3a22f4a9441fa6b', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '88cab673bcc608ad32b9406f1155ddf8', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b5aa5b3bebf07abe640b9907c6c7d116', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '104849ce92b2603eca19a49453bc7a25', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0378b0128b6fda0f70d6fa67d22ebbb8', '2015-02-17 03:13:44', '2015-02-17 03:13:44', 410780858)  (16.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 619379998]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 619379998], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:13:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:13:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:13:44 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:13:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:13:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:13:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '93e3117f02cd6735280cc72f2fe6570d', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '771a44b02e4b030acc7ff09e1281eac9', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '478e97949cb47e9691f7606cf3d233c7', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fd4203b547f32dc4cd477c37811f07a3', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a0ef3b42aeb9ec70c01dea2090a6f595', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 971855462) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c92fe4c989a5f0dff510ed9b1d0b7b89', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'afff706f3bb1c3e0a8045c1a2d4e696b', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b60af2cbd542a180858514045b94a6ae', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '979bd243146a5a0b086527cb5a3f311a', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0b5e4eaacfe373dabe3f6efb2e16b3eb', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b206a3fdaa783196d09fa0990092c11a', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c385460414fdf8c34c70db256033c2f6', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:14:18', '2015-02-17 03:14:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:14:18', '2015-02-17 03:14:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:14:18', '2015-02-17 03:14:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '652be496ad702c5b5aef99fdb6da2bf8', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a7711b19a3627d949f06915276f4d3da', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '676dbfbaab1b0f29276ba840f0446268', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1527c99c3edebcf043ff66db2592ca49', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '16c45d299e2e4a1dfb5044663456e128', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd5e0f9b02f0ca275e123538f0fcf2826', '2015-02-17 03:14:18', '2015-02-17 03:14:18', 410780858)  (27.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 619379998]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 619379998], ["profileable_type", "User"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:14:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:14:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:14:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:14:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:14:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:14:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5064bc4ed2c9ca2ceb6535c556e02869', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '275653f84b4d56960b82c0e6ef43118f', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '02a737b4e6d6c623048f9a86f793b142', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '317dbe294c48eb2645eb1d378a39ec6d', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3e34458ebe4339223a90940f4b571361', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '439a94f28156571f9378d4db66f169a4', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1d71f881a8845c923ab07d7b2c2dea35', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cbe92c9a5fe621f60582306708818245', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9c4c80b3df4d4cfa3b9a39447546bf06', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9676ebe4a29ae90b727df9c9a2ff8039', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4537cd75a112fb6dae193bac31ce49a1', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0a2d2da794de064d9b03d764fd0fb6cf', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:15:51', '2015-02-17 03:15:51', 902541635) Fixture Insert (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:15:51', '2015-02-17 03:15:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:15:51', '2015-02-17 03:15:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd9926aa118fe4f048c422603d6207d75', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '06f9486bed047a15afd9acc065a57c4b', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 1035759634) Fixture Insert (0.3ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6136004eb27ada6818c9e0317b5ff334', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '022f02e611465af4456c4336a2e4f10f', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6cb52b1ba7ecf5adae149b1f9efffb42', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7e9c5d68b0e5f25163efee5ed207fdaa', '2015-02-17 03:15:51', '2015-02-17 03:15:51', 410780858)  (15.0ms) commit transaction  (0.4ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 619379998]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 619379998], ["profileable_type", "User"]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:15:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:15:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:15:51 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:15:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:15:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:15:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f760eb92fcb83e0d310bb68ae564b8e0', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9c28f56e624d7a8a5eeb360d90329aac', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '994a26816a1bd7dcf499bce99b1957fa', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '62f47322d1d32ea286537aef0f6ac7a1', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4cf0ca739f5ef83451e4bcaa4234b08e', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 971855462) Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e80d088d9442b5143ee38a93e11ae92b', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9ffef8aa8e38556d511730b7e91e9fda', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '46ca8f9fa99015d640b1620190cd24d4', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1cddb8ee6ac05b46198c442b650e84ee', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'efb6260ff1d48db3fbe782659993666a', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '59c6817c6bdafb14463a44fca05ab897', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e3f5b5870561498eb09605f5e5153c15', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:16:54', '2015-02-17 03:16:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:16:54', '2015-02-17 03:16:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:16:54', '2015-02-17 03:16:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'db83aefc25ea5a1196eaceb01aa7a818', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '58c533cf801af922037d72b21c864b05', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dd37cfd10fb1e12beb14bb784dcacb87', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd2d2b1f2307f2ef438a14b01260eee4f', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1f339aa890704152668d257df08ed401', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '19af7dd082d5e2af7887c1b59c3b0734', '2015-02-17 03:16:54', '2015-02-17 03:16:54', 410780858)  (20.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.0ms) rollback transaction  (0.3ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 619379998]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 619379998], ["profileable_type", "User"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:16:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:16:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:16:54 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:16:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:16:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:16:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6e9ba01bfc2967c207879257247bd1b6', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '44d5bc6d70dc66ec66121d7aabf10b45', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b4c63a4bd2009dc1645d738ae2d13d2c', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7b2fc999199f924ceecfc1c094336ba7', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aac65f5872d82c56af41bed425d55b53', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bdaaafd1202ea0210843d0e01b502de6', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9590e39581a0c0be41c4ca5a080f698b', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e8f506577d65c9d466a2545e2219aa03', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5bc571069a27d31b5f1bee9cb3e8d9d8', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '92d9c49f1468401623b5776540bd7408', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1f664a98b9211c495e3c7f5c77890095', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '27ba1b80ead4fae0349c47336bb0f5d3', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:54:10', '2015-02-17 03:54:10', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:54:10', '2015-02-17 03:54:10', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:54:10', '2015-02-17 03:54:10', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e4c6e9caa25ea8cd4cb5342d63f0e8ca', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e8b3dffdaae43a909a366508c08d0db1', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b468c91e576b752d952d4e65a39981f6', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7c75e39ace5d02da808c817edeecb5c6', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3dbd05b5d9fb35b8991cb00e3ec44de9', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '00191c6ef5c6f86cbfa1caa084f5381e', '2015-02-17 03:54:10', '2015-02-17 03:54:10', 410780858)  (13.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 619379998]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 619379998], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:54:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:54:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:54:10 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:54:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:54:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:54:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'af0d26ee352e37ab3e017ef751fabb7e', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c000af54446fafd09d60a5d2305b6df6', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '97b1f0f59dabb9046c01db229337e66d', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9696a627159b94418839ea2b98d72c06', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2482f0341758de683b5a62318255745b', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '94f2884becddfb69ef83ba542685084e', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '53c0f25880bc49f5953796b27058c5b7', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 261299535) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd29a4b3f6ac5300f8a0b49c50dbcbea7', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '269274ab44ad261bb06c45bde43fc42f', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2a6727e1f01ef7a0a27289cfe114703c', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '34df1c6cb340e138f9ef6045f55457bb', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 689259936) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f2d1384b2228ad08c27a9fbe26ce66a7', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 762608046) Fixture Delete (0.2ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:54:59', '2015-02-17 03:54:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:54:59', '2015-02-17 03:54:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:54:59', '2015-02-17 03:54:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dda0ea7d4229edafafe81b9a03193f6a', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 884173432) Fixture Insert (0.4ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '932b7a87d6e4e6e25ad9c8a7df0db824', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0ed9ec8f7dd6dc77ab041c8f19c84dc8', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7ffbe644bb834cf19764f583cce86877', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7b04daca5b283696dc24ffad797b9691', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6a046dcf20521f3c4f1a56348f3ff56c', '2015-02-17 03:54:59', '2015-02-17 03:54:59', 410780858)  (28.6ms) commit transaction  (0.2ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 619379998]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 619379998], ["profileable_type", "User"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:55:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:55:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:55:00 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:55:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:55:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:55:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '53dd1477c83ab8b69db45b21a9615ebe', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd39b2e6328cc66fb3d23392539d470bc', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '593e006da4f37d4a99320a58f8a9794c', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd64c2e19f2f253237f4c6b267a0a2e2f', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cecf141993fc0841400515f0134526d3', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 971855462) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '78ddf72806681b323e2b13d8d372d588', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b75cc4446d1b06afe4e5d9a5cd51d87f', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1683877f0f16dd2ea5c6d1bc0ad091aa', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '77a135c35397d1d76d980824dced0e63', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3910baf1c923e0422240dfa5964c52a8', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '76f468127a5147408b044e5817c193a0', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3405e2f074bb3d80d7ed6291d6c1e489', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:56:37', '2015-02-17 03:56:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:56:37', '2015-02-17 03:56:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:56:37', '2015-02-17 03:56:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b92fb5a3162341f75bcc69673b64247c', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '58672f453694714760c0e5b016af6d76', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f6d53be808c0c438301c53f2184bd16f', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a1bfd6fc2982ec189c5dbe4aa09caf2d', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '393d77930d90ada5a8017d81a1bc2fc6', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4ad54af164fc2c956501145167c1f09f', '2015-02-17 03:56:37', '2015-02-17 03:56:37', 410780858)  (20.9ms) commit transaction  (0.2ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 619379998]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 619379998], ["profileable_type", "User"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:56:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:56:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:56:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:56:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:56:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:56:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e15c68050bf222d18752b0ceab434b2b', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0f758ac435b74b523e9f4c2caf661290', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4547d6f31898e1842793377923946b1a', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 633598004) Fixture Delete (0.3ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5581f8b4c376fabcfbfe335a9fab454c', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8441b488e692422aacbaae02c7aac81a', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8afcff1446418011692fa14734045363', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c27f955fa45e73f6ed0b50bb584d9259', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a6af234fc5ae76a1bff0b616e34ab9e0', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 478996145) Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'db74c0b8653f2e6e6110089d130ac2e1', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 966629572) Fixture Delete (0.3ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '268f1993b16fe14d12280f8f09ead1eb', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9cad858ac790e83546285e5493b35e4b', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4c6a7406211c1842e136d1b123525399', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:58:39', '2015-02-17 03:58:39', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:58:39', '2015-02-17 03:58:39', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:58:39', '2015-02-17 03:58:39', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8d22fb4743043cbb76d2ee2801934ad3', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4dc00792ff0f0d4500fb2bded5b8fd27', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3491d9a9429ee4a10317226ebc81e0a2', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0d131e07628aec3f0044266d48800ea3', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cb07b9bc2e2361e28917e285198bd0e0', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1831f54a3e511b791d1177228d801597', '2015-02-17 03:58:39', '2015-02-17 03:58:39', 410780858)  (28.9ms) commit transaction  (0.2ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:58:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:58:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:58:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:58:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:58:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:58:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.4ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ff18223c541999d8eb4915b67c394112', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '468377efd14e6857805cb810c1b17022', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4f5846c2e184b4ce4d0973d013fd552e', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '852210d8971dc4517a149b5761e5ce21', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '97dc8d0f588fcb190b15ce659b8857db', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '37680697b700fe3a45e4c26a674deeb2', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3d98c55312b2b77a8aa3d203bee38ed6', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8483bc4cc8606deb344a62f4f6123803', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '667523fdfc2095dd602e348bee7140ff', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9cad90264ebc8f276e23c4dc356c4ea6', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b2d915db750817b8ea99acfddb1dbb9e', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '32789ba4440f6736b115f72f14786bab', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:59:28', '2015-02-17 03:59:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:59:28', '2015-02-17 03:59:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:59:28', '2015-02-17 03:59:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '43414d2430b1f970cbe448368ac0861a', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cfc9aa57e5cfe9454e0e10dc88ef7b49', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f31af21c0534df9b569d741d4032b81b', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '69c3b0a55b4c4b99fb0126496c314192', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e925584d3e14925ef87ffc5c04612da0', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5eef29f5c273b72c846d769d6c4937bc', '2015-02-17 03:59:28', '2015-02-17 03:59:28', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:59:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:59:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:59:28 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:59:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:59:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:59:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '61f3d279c6dfb9c595be28eb618fadaa', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '551ea77b5680981a2cc5394a3d69009e', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd286767e8bc6610e2633e570572d09f4', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '29c0729f0d459b49f90e7b3c10c8d461', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62ab16870230b4698f5b37dcace097bf', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8f864828e1b31c1e7aa6fd9e40d852dc', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '204bcf1c953f6da27bba3ba5c55c8584', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '97e89f35386f25596c9723cede4f6da1', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ad52c6c6ed11689c5a56ea4dfcce87f6', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 966629572) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb791c7b2678ec51ef1c65747ee95883', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '68a640592c458e449376c362d1e09d02', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e6f82176361187be1d905659d4cccfd6', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:59:52', '2015-02-17 03:59:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:59:52', '2015-02-17 03:59:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 03:59:52', '2015-02-17 03:59:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dfd54958abc4e38fad1fcfa67f567cbb', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b9c7b0ac6b20ccf2cbb20a49287efbcc', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2ccdb1d40f0310f563e26884c20ce9b8', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '77388b0564d562dfb365b18b7ad26feb', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '70d39d609ae774c5c23ec6f287289969', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bac423545466ccc248ef298639e1ea5e', '2015-02-17 03:59:52', '2015-02-17 03:59:52', 410780858)  (12.7ms) commit transaction  (0.4ms) begin transaction ------------------------------------- DupTest: test_0001_has method pbt_dup -------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ DupTest: test_0002_has method pbt_deep_dup ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:59:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:59:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:59:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 03:59:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 03:59:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 03:59:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2c9428e1cd30780a084405715030605f', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8ee3d50c71b7e780fcf2918002c6477f', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '504f84ac83800b8d1dc7e7c8f9d29abd', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cd2f3e4e07a57a6d8b1cce9c1642e9de', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2dd999f6d1a2b663e052afa1bac83396', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 971855462) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '36c2be6730faf4b6765807c044d5f3cb', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd1dbd9f0d7123a2142f7307647626620', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '87e93007323c2b3363e1e8dba1777443', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '66d4bc48557c4aa96c2cb1aaf6f4d958', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c41e06d97edf4baf1fb668ca36f68261', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b223cbb7864ba538f88a808956fea1eb', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4db934ad8ce73c6c95514cc255aee831', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:22:30', '2015-02-17 04:22:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:22:30', '2015-02-17 04:22:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:22:30', '2015-02-17 04:22:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5f36cd3f01012017d197bba0f8d47373', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f1bb1b449069fd09f4bd679c584a73e6', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b4e249d75a270ef6fd6cacf3ef4167ab', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c9530117435c2620caecb11bea7e1594', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '44fa499e134afc14ab8d6d101100d5a2', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7d783f22a31bbc01138b5815cb8ec457', '2015-02-17 04:22:30', '2015-02-17 04:22:30', 410780858)  (18.0ms) commit transaction  (0.8ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:22:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:22:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:22:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:22:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:22:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:22:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4f2193f3670f56a9ce6a3d455eb82393', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '06474d46ecc23772b42adcd7cb24e88a', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4f29919ec2082b8ec19642fc78880751', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a02be09cd5457dfa217f59aee6034db', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6388a9551bf377f250ccddf8bc24b943', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '86d3cebb01b678cc5b8fb81f2a01b74e', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 1032612456) Fixture Delete (0.2ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '45d42a669f69668f174e9a95e685af64', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3062b24c4c8c39d17f441960f233c5fa', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6bfa31040f4e5002b9edfd907e02c5e3', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 966629572) Fixture Delete (0.3ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '74ccde990163145c6f88a4c66b1764ec', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'de080abae33a28cdaede97a4af6d5f94', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '91674ea78fe46a3ccf7549b079923b11', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:23:03', '2015-02-17 04:23:03', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:23:03', '2015-02-17 04:23:03', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:23:03', '2015-02-17 04:23:03', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6e49e9ee74b5744c874f2360d8c63a09', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 884173432) Fixture Insert (0.3ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3906315a450c702ea95c68d5ffdb0fd3', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a70212ec6945da05cecfef088950ae0f', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e89426862fcc5847104d2e3bd3e6dd61', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bde46178edc095e479a78d65d80bed86', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e1ce2a5fadd2a0ff686d92a790c8fe1a', '2015-02-17 04:23:03', '2015-02-17 04:23:03', 410780858)  (21.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.4ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:23:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:23:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:23:03 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:23:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:23:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '981d36f2642880fc6fc43438f4acf271', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a17969976eba0440e1496cdbd2ab71dd', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '051e459626f0310cb04280d1ca0e5d5e', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '67bc8868f6189083208a85eb317ab402', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '30cdbfc23c3dc2c6d64847017433752f', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2e392a84e4d7aa16092c6340256367f0', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e0b04e61703d5ad2692e1307692c90a4', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1402fe41c2252444c0110da8254fd7cc', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'dec7f718c1e5b153465a057841d49e96', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '39a964e67e6dcf6dd799c19f8238867a', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5718f3afbc7e92833cee9822acc679f8', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4466984d9ca091047158bb6045fa3da3', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:26:10', '2015-02-17 04:26:10', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:26:10', '2015-02-17 04:26:10', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:26:10', '2015-02-17 04:26:10', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5987e0913aa45786b6150a15811e8337', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a111cc8d6098045c5bea44a94b15b01d', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ba1ea362b857d74a64a312bfebcac272', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'af93f5d6f6174fcf3edfef93db127080', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd0861cd2ebbdb692f6f6ef27a5b031db', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e725a3b55ae1dfffd3ed5c25c1c4cb9a', '2015-02-17 04:26:10', '2015-02-17 04:26:10', 410780858)  (25.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:26:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:26:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:26:10 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:26:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:26:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:26:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f635af1235c7597e6473bc04c583996c', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9a64b8e35b89dc0d13d4d6fdc1957d9f', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '79d35c4e967f4e8a78ead4b36f8dbe49', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'caf2c197cf9a467e723c5623f98160a3', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f579cce3c72ea6febe2d74b6d19a5da1', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6999c1a1f1c9a753a706e09ae24f8ae8', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e5eaae18210802689d43b6682a13c816', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1c77ec66e19768048ebcdb51c3cf624c', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd8c009d08421e8dcc33632a020bab6cf', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6b1af933d3505a41aebba93350ee62da', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '494b9f2dfe6476e7ae4e1709a71cb6ad', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '09bf6b899d4b465442bef37d3c426561', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:27:18', '2015-02-17 04:27:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:27:18', '2015-02-17 04:27:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:27:18', '2015-02-17 04:27:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '05f37a1b0b0f3fb81ba50d7ebe926573', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b185fc799bb9990c3fe38766901f2546', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '92937a1cb004dcd597df4730e8f70019', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4e766f610b701ce612b62112de025dcb', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9a5314520d6cae8ae22937a01c0c7bf7', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd65ee61aaa40f46bf817902e59497092', '2015-02-17 04:27:18', '2015-02-17 04:27:18', 410780858)  (28.8ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:27:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:27:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:27:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:27:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:27:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:27:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a40fb395aeab0e35468f58f9a83ecf4a', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd3779653821086d8804038eacf50bb7f', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '41ed802a440fbd0601eada68f4696698', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '245c044384f01217b6068825d4b77060', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b4e234d3d2db841aeeb0a61c36071879', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c82f8f19c77ee6424b6b9c0681730421', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ad72f12ffce2076ebfba48404ba5a591', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 261299535) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '95b86d5187041863dfdb7772456d6c02', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fcd576ea82ca2e55932416626b08da45', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '45cf3f893bf77efef2af355ad5496fa0', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f785291310460af43eca226e416aae8f', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '397c0fd8025538645eeb313c63c7c718', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:27:56', '2015-02-17 04:27:56', 902541635) Fixture Insert (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:27:56', '2015-02-17 04:27:56', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:27:56', '2015-02-17 04:27:56', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0b6fff5cdaf64771cc154957fac95ebf', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '56a7d8e9e9f958a96c4552c29cd2ece6', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3b5cf24afcba2e274deb306455a8b12d', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7f4768dd9bd87e4f5672701be03a4060', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4de6d43c1c176741ed78558f386bf48a', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5be7d3a19db14616310bb47547298f04', '2015-02-17 04:27:56', '2015-02-17 04:27:56', 410780858)  (32.3ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:27:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:27:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:27:56 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:27:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:27:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:27:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '79de40cb75ebc4d65c5196a98648d919', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b46ff1834ac3b6ce2a043d8850a65e2e', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c3ad0c165d5aec76129b7ce18e6fc7f1', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9c90e50d12111f3942042917b2c33621', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '714ed3784021af65f231cbf3f125c8e0', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bcc41b55016939f0d29869b3ea9fc618', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3e746ddf3fe8e869b6d4facd0d816566', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '50d6e4b4ed78f0d03cbcd40e12e76fb9', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '27d31f8ffcbf8f9da57b3c799b67d051', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b5ae330912deae5540b9f5e5856cb11', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1baf4ed48e8d573062819c1d8b70a737', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd1bcbba7c39fe3ed55dd5b397b59cc0d', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:28:17', '2015-02-17 04:28:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:28:17', '2015-02-17 04:28:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:28:17', '2015-02-17 04:28:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4dafe921e628310b6f0d7599f3013e8b', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '701999cb6472d780aaeffecb5d13c3de', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7da90414c0eb944e7274ec11e4e56211', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2a9e43b311506b8834e68ec5ce6079f6', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5304fde1aa43e13d7eb8f6c45dfc5795', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '36924148b1e0203c035e64b868ba2308', '2015-02-17 04:28:17', '2015-02-17 04:28:17', 410780858)  (13.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.5ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:28:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:28:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:28:17 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:28:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:28:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:28:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9e36a72ba7cd08fa0b3fc766e25c2e3f', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'da9a256b8c90f70ca7912f9689e7351f', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1fdc39b175649eb278e29b0589058b1b', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a0bf41bb7c1678471e65d2a17b6442d6', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2087ffeed1de9bf3c03f42907eca2255', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6aaccc85cdd0e57e6f7369c9b3e87ccf', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0557b089e3ac19d8fd6f7ddc6d85b222', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ffcc87d1a413d720e3c4369be1a4501e', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '727fc34af764c269242a42c836017122', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5496cd5dda1145f8b3aa9e82e173e6db', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aad4be4d6e62a6daf1459ee7170cfdec', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8eeb23184a3b1cf970011b441035e41d', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:28:51', '2015-02-17 04:28:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:28:51', '2015-02-17 04:28:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:28:51', '2015-02-17 04:28:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '943c377f022ed5fab2a8c373f225b933', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '299776f3a115937568084556575cbe6d', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '69e723476f83c4bae77a882f0fb4d11c', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '217e4558afa349949bef4f251bdbb485', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd0823d7256d8bed64e5902ffa7a06437', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6dfd4c5a44b3ac06471da2577da9d079', '2015-02-17 04:28:51', '2015-02-17 04:28:51', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:28:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:28:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:28:51 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:28:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:28:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:28:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f7312894b8e75aa5a86123b7e5fd5765', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dfce80a1533e2d1043ba7ee9a022b27a', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '204ad39a5b10989588c052143797e5b0', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f7a9b7e4635a2214843b1ee8ac9c5ab2', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f00471b36e8e81b1592a866cf8a99924', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3a130617e6ba2ca65ca880dadb684007', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '52cb771cd09cdc8cb5f87e2cfc79d60a', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4d306a6457be332cd6e01aeb974deff7', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '90f5b9787c232812fee7c9c37cffcb62', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b7359f8558b6c2912b6ab3d8671e9f9f', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '55c190bdc8c7d930a327958298d66121', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e6b7be80a53145bd5d51a2e4ad775edb', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:30:31', '2015-02-17 04:30:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:30:31', '2015-02-17 04:30:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:30:31', '2015-02-17 04:30:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.3ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f1e433052f8ada812ae7c7b8b864d741', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ed5b05a36b3ee0fc7a7d6e2c49598106', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd5445a0a51922ea371398d35f2d55b22', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '90fb4c9da596d3ecca238616d6a28d27', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3bb21351fe1a1af5dba8f8dec2dd60cf', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1004bfa660c961b8f7046a02944c19cc', '2015-02-17 04:30:31', '2015-02-17 04:30:31', 410780858)  (39.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:30:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:30:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:30:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:30:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:30:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:30:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4998a5a9cea2a6f2885c62307df5d264', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b4e2e7a88ccf9c9aefe689c1362bb03', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2d898429715e2592a96ed5daa1f02b9f', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4bed816fe3b837ee79023c6a231783fe', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be76166d7da51a036b0c0ffb97914748', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '76bddfa1a1c84887afe64ada47da8d44', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7977e6d19fef74615fb0dae59f281c84', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '895a89b7431dc59b3b183b1fdf29f4bf', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f8e5406cc5fe9f9a0f8cfc067771451a', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f0b2c654141f0b40451b3a98387a4625', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c46dd132cbfc1f8ef2ae166ae358cbc6', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8e8b65dabe589fb0f8a26e2e14c0c625', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:33:11', '2015-02-17 04:33:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:33:11', '2015-02-17 04:33:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:33:11', '2015-02-17 04:33:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3004c1e6a5ee0de76729cccef5950874', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fca6af373e09f84112e9af9518d1d257', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ffe6906c6824e5535d3c68d0c1cb7f54', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8e9f7f7478384a171fda595770d7a588', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '40085d2161ebf5abd3cf7c0ba72007fd', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '139008e16827d9fec316bc2b263dd5d9', '2015-02-17 04:33:11', '2015-02-17 04:33:11', 410780858)  (15.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:33:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:33:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:33:11 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:33:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:33:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:33:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a0877d0237f33d0d6f5dad4f847031fe', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5a3789e5ebd5a5d034ad304a6906865a', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 1057142427) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '184714e50aa1fe382e72aa2037a85abd', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '524f31ab93c1c5583b71b8e625a76720', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dface1f8b71db760b76902a8d8501370', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '159baa5a38fa193a23bb6feec23e2071', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '08b7dd6e990c824a5a597d20d216060e', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c7d719fc2590aa435a2c90ef14c13458', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd62b7d1657b2de95a9fed4ab475e2675', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4868baf7d637767fb58e3109c79b19e0', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4e9ffb6b7f5529fdaadcf2a746e2fcf9', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '02713d49421af196f95f4c78f0db766c', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:35:04', '2015-02-17 04:35:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:35:04', '2015-02-17 04:35:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:35:04', '2015-02-17 04:35:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '095937c68c1cb94366c4fdeae5c3a351', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e9b3b80e732e15d408a39813ffe413e7', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b6d5629283efbbc62937df278d5c2036', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '99f94a797cb476907711e667dc015edd', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8f60018ed32efd9efb744f88d6bd7bd8', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd17a2fb8213d7d0e68c05737ffd4f152', '2015-02-17 04:35:04', '2015-02-17 04:35:04', 410780858)  (22.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:35:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:35:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:35:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:35:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:35:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:35:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '505627585a186e86f67016acecd3bd0d', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9bf418b11e252c315616d2ee464dd37f', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '97b5dd913ae77d62c5bb049d39ae0f27', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bcc6a00b7a11e710835e8550eeda6d0f', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f205511bfe1c4827c29663397b1c5d66', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7473dec3ce55d5bc68a7f5ef5247a1cc', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '38f3e4346debf53552a6344e5667f7a9', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '99506944b5ce829dd9b3010d61b66b9e', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '085a0a6dbac20a156547a9d2340bd455', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cbf1941b0f71949049acfd87913ab60d', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '66959f087154b43652179b1873d38835', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2d78f776423acc14c7715ecece8ecbd2', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:37:28', '2015-02-17 04:37:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:37:28', '2015-02-17 04:37:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:37:28', '2015-02-17 04:37:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '95ebc2f832b0b133b37c7c52a078e9ea', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bcbe3530f948272d9a8896f6022a3d95', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bed015fdf91d21658b68b7f6d8b8657b', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1cb37c8663eb5a96fe0bd6629c958289', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '876f15447798fb2f64291950d389ba61', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '149849de1a53a7622eda1d245b2fa4fd', '2015-02-17 04:37:28', '2015-02-17 04:37:28', 410780858)  (33.7ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.9ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.7ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '50f6a07ac8fa9e4872d77ce512a0b4d6', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7e37d94e8ca04e3cdeb46d32897ccfc1', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cdb5d17e14089b114f522ec07ecca3f2', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c871bb11f01ccdb1e6650b96b9e207e9', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '67a883c66144e1dc893ed41280f779ae', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4aea636de3f89901c91dd66bf4035ef2', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '335386ab742ba9d04e79ef09da005311', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5cc4ab0f31173f7ca7a71871017a911f', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '299293d57e2897c37d38c6d1ef1cffe0', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'edd7867454bc69da5723918579f17ec7', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e184d0fbed68e674004b24559f5b9b9c', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '27578337b6b1b5bf94ae9d556a43c9a6', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:45:32', '2015-02-17 04:45:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:45:32', '2015-02-17 04:45:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:45:32', '2015-02-17 04:45:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0ecedddb714ba7fced6ccaf3893753ad', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c5737df4519dcc63b7bab520957f9da6', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6a7d3586c53182b7b821c06dec56a0df', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9c0d0a28375dfbb768582ae797ea0216', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8694d846df02eeba2e54feb8a11ad51f', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6e2195c56e42e21c1f70bde56aeba556', '2015-02-17 04:45:32', '2015-02-17 04:45:32', 410780858)  (22.5ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:45:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:45:32 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:45:32 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:45:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:45:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:45:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (1.6ms) begin transaction Fixture Delete (1.1ms) DELETE FROM "addresses" Fixture Insert (1.0ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4adb9ee3c957159fd4e075b87f039cb0', '2015-02-17 04:51:19', '2015-02-17 04:51:19', 761411935) Fixture Insert (1.0ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cd00fd2a9ebf9c0fe26a0e59ce02abd3', '2015-02-17 04:51:19', '2015-02-17 04:51:19', 1057142427) Fixture Insert (1.0ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bab7761f63fa52a59d87350e1e495371', '2015-02-17 04:51:19', '2015-02-17 04:51:19', 633598004) Fixture Delete (1.0ms) DELETE FROM "photos" Fixture Insert (1.0ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cce302685b34b76d4ae0c0386a4ccd48', '2015-02-17 04:51:19', '2015-02-17 04:51:19', 775134066) Fixture Insert (0.9ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '34a6ae32dedf0348f619325cacc165aa', '2015-02-17 04:51:19', '2015-02-17 04:51:19', 971855462) Fixture Insert (1.0ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3b666d0287f45c8c379696c99c17c64a', '2015-02-17 04:51:19', '2015-02-17 04:51:19', 1032612456) Fixture Delete (0.9ms) DELETE FROM "profiles" Fixture Insert (1.0ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd4b919fe74fe6b66283b402ea197027a', '2015-02-17 04:51:19', '2015-02-17 04:51:19', 261299535) Fixture Insert (1.0ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '01b337e9c8ded39166d297ccc6e90df8', '2015-02-17 04:51:19', '2015-02-17 04:51:19', 478996145) Fixture Insert (1.0ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5e374f0697bc96948b8039e5040c2b9d', '2015-02-17 04:51:19', '2015-02-17 04:51:19', 966629572) Fixture Delete (0.9ms) DELETE FROM "phones" Fixture Insert (0.9ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3c665762a43469d73d3ef6d534359238', '2015-02-17 04:51:20', '2015-02-17 04:51:20', 1053526200) Fixture Insert (0.9ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '76b1b4cb28965cdbe73c4669eb57b8cc', '2015-02-17 04:51:20', '2015-02-17 04:51:20', 689259936) Fixture Insert (0.9ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e28ca42cc93e248f9dff5e959830673c', '2015-02-17 04:51:20', '2015-02-17 04:51:20', 762608046) Fixture Delete (0.9ms) DELETE FROM "users" Fixture Insert (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:51:20', '2015-02-17 04:51:20', 902541635) Fixture Insert (1.0ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:51:20', '2015-02-17 04:51:20', 380377255) Fixture Insert (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:51:20', '2015-02-17 04:51:20', 619379998) Fixture Delete (0.9ms) DELETE FROM "tags" Fixture Insert (1.0ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd6ecb33fdf0acecfd69fa3766e0e8810', '2015-02-17 04:51:20', '2015-02-17 04:51:20', 884173432) Fixture Insert (1.0ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'df0b8fcbcb8f96b90e4f6c4a1541118c', '2015-02-17 04:51:20', '2015-02-17 04:51:20', 1035759634) Fixture Insert (0.9ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '88458c53acebf2eba307984405cccfab', '2015-02-17 04:51:20', '2015-02-17 04:51:20', 471587404) Fixture Delete (0.9ms) DELETE FROM "ssns" Fixture Insert (1.0ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3d3d852f5e84a7eb3a0dac4e83e5ce63', '2015-02-17 04:51:20', '2015-02-17 04:51:20', 819246218) Fixture Insert (0.9ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'adddc379e4679445b3041fe89d6bd977', '2015-02-17 04:51:20', '2015-02-17 04:51:20', 970698464) Fixture Insert (0.9ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7adc2ca0a7b02cb9661434e930e87161', '2015-02-17 04:51:20', '2015-02-17 04:51:20', 410780858)  (23.9ms) commit transaction  (1.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.9ms) rollback transaction  (1.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (1.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (1.5ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.9ms) rollback transaction  (1.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.9ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.9ms) rollback transaction  (0.9ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (1.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.9ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (1.6ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (1.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.1ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (1.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (0.9ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (1.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.1ms) rollback transaction  (0.9ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.9ms) SAVEPOINT active_record_1 SQL (5.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:51:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:51:21 UTC +00:00]] SQL (3.4ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:51:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:51:21 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Profile Load (1.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (1.1ms) rollback transaction  (1.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:51:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:51:21 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1 User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.6ms) begin transaction Fixture Delete (1.0ms) DELETE FROM "addresses" Fixture Insert (1.0ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6875afcd19ed852351acf081d1a4eea9', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 761411935) Fixture Insert (0.9ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '28396700358c641cd064b15eda3c126e', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 1057142427) Fixture Insert (1.0ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b5768fd4e40aa92a00f7e218bfe5459', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 633598004) Fixture Delete (0.9ms) DELETE FROM "photos" Fixture Insert (1.0ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e621cc4af135c8ea176702b706afd477', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 775134066) Fixture Insert (1.0ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3b4a4a31c7195eeec7576a07dcf80ac4', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 971855462) Fixture Insert (0.9ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'abb1d2df45769549464a7b1d2b73bed5', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 1032612456) Fixture Delete (0.9ms) DELETE FROM "profiles" Fixture Insert (1.0ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f99fa6f3b91ef4add1b342920274aea1', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 261299535) Fixture Insert (1.0ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8c433f2278e17d90b04d2eb3fda34ada', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 478996145) Fixture Insert (0.9ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b468b645c49201ba5a94a4549ca8eb13', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 966629572) Fixture Delete (1.0ms) DELETE FROM "phones" Fixture Insert (1.0ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cca93de44c879f7a76868614bc183b0e', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 1053526200) Fixture Insert (1.0ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '61b53ff95bb796b039bcec5953dceae7', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 689259936) Fixture Insert (1.0ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dd10c3ba8b97bec18aa3bed18fb34141', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 762608046) Fixture Delete (0.9ms) DELETE FROM "users" Fixture Insert (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:52:29', '2015-02-17 04:52:29', 902541635) Fixture Insert (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:52:29', '2015-02-17 04:52:29', 380377255) Fixture Insert (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:52:29', '2015-02-17 04:52:29', 619379998) Fixture Delete (1.0ms) DELETE FROM "tags" Fixture Insert (1.0ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '31b45c86e46e670e3f7ab6c1713f788b', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 884173432) Fixture Insert (1.0ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fa298b03ac3e2fa595ffe28867ef1b1d', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 1035759634) Fixture Insert (1.0ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c8fffb532044e416c7d569d6157009ec', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 471587404) Fixture Delete (0.9ms) DELETE FROM "ssns" Fixture Insert (1.0ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ffa570372436e88207c6fb485d6e6b9c', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 819246218) Fixture Insert (0.9ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '00fc7f5cd6637b1b1e02f1377aafa953', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 970698464) Fixture Insert (0.9ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cf3239937e570de30a4f98c66110df5f', '2015-02-17 04:52:29', '2015-02-17 04:52:29', 410780858)  (15.6ms) commit transaction  (1.3ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (1.0ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (1.7ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.9ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.9ms) rollback transaction  (0.9ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (0.9ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (1.5ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (4.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.9ms) rollback transaction  (0.9ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.9ms) rollback transaction  (0.9ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (0.9ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.1ms) rollback transaction  (0.9ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.1ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.9ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.1ms) rollback transaction  (1.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) SAVEPOINT active_record_1 SQL (4.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:52:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:52:31 UTC +00:00]] SQL (3.5ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:52:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:52:31 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Profile Load (1.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (1.1ms) rollback transaction  (1.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:52:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:52:31 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1 User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.1ms) rollback transaction  (1.5ms) begin transaction Fixture Delete (1.1ms) DELETE FROM "addresses" Fixture Insert (1.0ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '454391f0bb00197daf782dfe67d4c071', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 761411935) Fixture Insert (0.9ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '95597099a7804acd99674bb44482c36c', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 1057142427) Fixture Insert (0.9ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9289d7d98000aed3a5c8f3a55ef49294', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 633598004) Fixture Delete (0.9ms) DELETE FROM "photos" Fixture Insert (0.9ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5c7222b46d9b36e2bd2973472b7222c3', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 775134066) Fixture Insert (0.9ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c4bbb33748b6eaef9d90374833d1d912', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 971855462) Fixture Insert (0.9ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '641d09fef18b152fb63441077eb537eb', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 1032612456) Fixture Delete (0.9ms) DELETE FROM "profiles" Fixture Insert (0.9ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd8a71ddbc1d1c9570393494c23cef048', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 261299535) Fixture Insert (0.9ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b0a5a965ae6985ac2e11a05f312a3c74', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 478996145) Fixture Insert (0.9ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '47728cf6ce9905de577edf608b0a4e0b', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 966629572) Fixture Delete (1.0ms) DELETE FROM "phones" Fixture Insert (1.0ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dcd4c0053dff13b2aa4243c1c53782cd', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 1053526200) Fixture Insert (1.0ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '568952d65b11720d2327f926e0ade2e1', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 689259936) Fixture Insert (0.9ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '581224d3a4b22aac8e3acc09dbff521c', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 762608046) Fixture Delete (3.4ms) DELETE FROM "users" Fixture Insert (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:52:35', '2015-02-17 04:52:35', 902541635) Fixture Insert (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:52:35', '2015-02-17 04:52:35', 380377255) Fixture Insert (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:52:35', '2015-02-17 04:52:35', 619379998) Fixture Delete (0.9ms) DELETE FROM "tags" Fixture Insert (0.9ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7505c87e61795abd43edbd955e60c323', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 884173432) Fixture Insert (0.9ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0c6728f94df8738bdbe51a42a4b7bcdf', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 1035759634) Fixture Insert (0.9ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '20c874ce93bd41833f0e254329ae24ec', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 471587404) Fixture Delete (0.9ms) DELETE FROM "ssns" Fixture Insert (0.9ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0086d470057b08142fff8bee6f31313f', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 819246218) Fixture Insert (0.9ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2e52eda622f2d69add78350828dfc404', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 970698464) Fixture Insert (0.9ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7e314179c2c3e0fcc2bc670595e3fe67', '2015-02-17 04:52:35', '2015-02-17 04:52:35', 410780858)  (14.1ms) commit transaction  (1.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.9ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.9ms) rollback transaction  (1.3ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (1.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (1.5ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (1.0ms) rollback transaction  (1.2ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (1.0ms) rollback transaction  (1.2ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (0.9ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (1.5ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.3ms) rollback transaction  (0.9ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (1.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (1.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.2ms) rollback transaction  (1.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.2ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (1.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (1.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.4ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.9ms) rollback transaction  (0.9ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (1.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (1.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (3.6ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.9ms) rollback transaction  (0.9ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.1ms) rollback transaction  (1.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.9ms) SAVEPOINT active_record_1 SQL (4.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:52:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:52:36 UTC +00:00]] SQL (3.4ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:52:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:52:36 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (1.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (1.1ms) rollback transaction  (1.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:52:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:52:37 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1 User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.1ms) rollback transaction  (1.6ms) begin transaction Fixture Delete (1.0ms) DELETE FROM "addresses" Fixture Insert (1.0ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a751e8bd57ec36c83ec59d1d01013ec5', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 761411935) Fixture Insert (0.9ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5f2044468589f2e1099ee6c5c7ddab89', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 1057142427) Fixture Insert (0.9ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd8149812f96fd534da4546173a2a3ab0', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 633598004) Fixture Delete (1.1ms) DELETE FROM "photos" Fixture Insert (0.9ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e62a6c363f86f2fbc5f43f8d0a03d355', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 775134066) Fixture Insert (0.9ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '77ee0d7e9f2227841a87bf5ae834a8a4', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 971855462) Fixture Insert (0.9ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5fb03f3ebf77ab5b6e488c7fc7216fe2', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 1032612456) Fixture Delete (0.9ms) DELETE FROM "profiles" Fixture Insert (0.9ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '948dbefe3e989c5d91d232add3b55d80', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 261299535) Fixture Insert (0.9ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7c87bb5cd829580acaf82a2ab0385136', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 478996145) Fixture Insert (1.0ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '75b4aaabe15cac249e25152c7a4158fc', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 966629572) Fixture Delete (1.0ms) DELETE FROM "phones" Fixture Insert (1.0ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e6f7418d663aa2e8a63e4f0aca7f1e45', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 1053526200) Fixture Insert (0.9ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bbd62325b3bff2ca912d31b30a298f51', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 689259936) Fixture Insert (0.9ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '37a8d1e881bc90833cce978099ce1bfd', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 762608046) Fixture Delete (0.9ms) DELETE FROM "users" Fixture Insert (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:53:04', '2015-02-17 04:53:04', 902541635) Fixture Insert (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:53:04', '2015-02-17 04:53:04', 380377255) Fixture Insert (0.9ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:53:04', '2015-02-17 04:53:04', 619379998) Fixture Delete (0.9ms) DELETE FROM "tags" Fixture Insert (0.9ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cc362d64ca4304c5efcd67bf911fb252', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 884173432) Fixture Insert (0.9ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '678feb1ad77e54bf07708f40d28b1ee3', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 1035759634) Fixture Insert (0.9ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5906f4f7475e39148897814841e5f3a1', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 471587404) Fixture Delete (0.9ms) DELETE FROM "ssns" Fixture Insert (1.0ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a23fe7439e7744e7012aa7c53c184224', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 819246218) Fixture Insert (0.9ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '65776f5f6601e29208c264f3b368d4d6', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 970698464) Fixture Insert (0.9ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '93f55cabdaaaa41e11344e72e54be8ba', '2015-02-17 04:53:04', '2015-02-17 04:53:04', 410780858)  (19.8ms) commit transaction  (1.4ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (1.4ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (1.0ms) rollback transaction  (0.9ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (1.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (1.6ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.9ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.1ms) rollback transaction  (1.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (1.5ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (1.6ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.9ms) rollback transaction  (0.9ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (1.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.1ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.1ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (1.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.0ms) rollback transaction  (3.8ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (1.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (1.0ms) rollback transaction  (0.9ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (1.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (1.1ms) rollback transaction  (1.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (1.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.9ms) rollback transaction  (1.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.1ms) rollback transaction  (0.9ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) SAVEPOINT active_record_1 SQL (4.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:53:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:53:05 UTC +00:00]] SQL (3.5ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:53:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:53:05 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (1.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (1.1ms) rollback transaction  (1.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.0ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:53:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:53:05 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1 User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (1.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ecd6e3f4db746e769254fa0a8a29c8e8', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '957d3aa2c8f609949b05e9258eca8efe', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '869b82f30a144e49101b357bb3077bc0', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c9ce41bbcc6ea011cb1a91d413c50aa5', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '630d7c76e890b626dfd958caec65d399', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aaee31a9aab9673db0913f3fe7bc957e', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5813b8e4455d14229b61ed90d72fa200', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1a88f9ca17cd29028caa2984b5421c42', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f3778523277bee1f3fff6fdee0bd3478', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9da7a7019b4996eb54acd2716665b9be', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4759eb4fd2a1966429ad4bef4ec4077a', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b157781d43cec3d618f38a4c08a3158a', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:55:38', '2015-02-17 04:55:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:55:38', '2015-02-17 04:55:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:55:38', '2015-02-17 04:55:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2c364c86eff49f1c9ba5ad9c146dcb64', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2c116e4315516b38212a8186bc8dd1ae', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c4f74178017ae342be76b33247edd7b3', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd9d6d5ea65911d141b521883e096e33a', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6af4e8df4f8118c537a6c8de9a40f73c', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ebda32978be7c5ea21831b056cfe0de5', '2015-02-17 04:55:38', '2015-02-17 04:55:38', 410780858)  (27.4ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5daf3a340dbbf1e7b6bf6d7ec47a38e2', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ed516d5a8369fc74d914ab661628a69f', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7045d6195c6aeb25c2777ea0f792dcd1', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a6add6743437cec535dfd85a0c86f82c', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7fecc2aa2a5a8a2732a7d01d91df2158', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7fa88d08d53072de21c32a5889f676b2', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '85c5d05e971afad3abe9870a8c450111', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c4c188be41ff954af00966f91d4849de', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '89c03f650d5d671956ed87d9fae1465b', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '01688b0b4d0ee663517cc5eb874ab130', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '17261adf3e9c8fd87e4e7f50e75e2a65', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '961f1ee17170503a14bf50707bae574e', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:55:56', '2015-02-17 04:55:56', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:55:56', '2015-02-17 04:55:56', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:55:56', '2015-02-17 04:55:56', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '98c0a90ac41ef72549ef094294ca3ef2', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ad9885a7f2cb5cb66a15e970f6d8bf42', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f754a43d2661542cce350647bd3d3c64', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6d30955913dbc324e600013a53c63e73', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1fc94d93f7094e3a44b4680ce1704393', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9733b6ace4459065c1714a9ca07dfd1f', '2015-02-17 04:55:56', '2015-02-17 04:55:56', 410780858)  (16.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f0ababb2fc71cd3fec9d1ade46ff6ab9', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '989ec636a7733ff4767e7f246789983f', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '53c62936253cc51460b0378970f04726', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '77afceee5ec51fb5340eaf7622b5beb5', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8bc0b3ee909fbb5cf6f89d7b75864c2f', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '957c448b07ac726763c5d6d31d5d7267', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'cd32d5a8da7aa115c1b4b3c99db75f66', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '95f148d84b7b59bd213706b4b106dcd3', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3d52614e853da1489bcb4b581f9cc1f3', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '69288732542b77d660755cb11f804a79', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5195f5e25a606ec24e7ceca8f3969fa5', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b9f0fc51c3a53c9d4da0ace95e162b8e', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:58:18', '2015-02-17 04:58:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:58:18', '2015-02-17 04:58:18', 380377255) Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 04:58:18', '2015-02-17 04:58:18', 619379998) Fixture Delete (0.4ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9db56ae383efdd2a9b3166047f6aff50', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8014c524db2715406904a092553fbe17', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b5b534fff62232ea496cae30335ba443', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 471587404) Fixture Delete (0.3ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7c1acb1cc29363b0f222b0300cca6394', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bc311a04901b492107ef4bf7e9b60850', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e22cbf439508b4ed2d44f008b7313b6a', '2015-02-17 04:58:18', '2015-02-17 04:58:18', 410780858)  (28.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:58:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:58:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:58:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 04:58:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 04:58:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 04:58:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '84350f62787a564abb6826ea6adae2b1', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c2b528bb0c2c54d0df94f9145a4b9151', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'db36a9df440e312c5a1ea81fcf653d54', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f99720d9f98d7f4074d82af6db343bce', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '86219989794085958b3d8783ba460a26', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3c9c6aa47f75eb1e541ea4cca9b80ca6', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '82b39a4075a2d8f74ff57adfeeadc54e', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8e91a7cd1db7c3fb3c369d69b964b77a', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '05730bb1ec43d09e7060d5286e6c90c2', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd0f16fe108ba4b2fba0755797fab3839', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '00b77b03223958e5954e932c7b14fb6a', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '65f6a54766e931dc226375ef82c1f875', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:01:15', '2015-02-17 05:01:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:01:15', '2015-02-17 05:01:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:01:15', '2015-02-17 05:01:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2f08ebbd278f7eba64ed1767e5de5217', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '10283350754c34527b5041dd25193d61', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b249c3d1caed3e03bee622f14a905370', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0ffdf53e3edd89fcc05e36937f73eb31', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1a496c40d516489c34951d102d11bea7', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '468b3ce5451562a913d507cf612d503d', '2015-02-17 05:01:15', '2015-02-17 05:01:15', 410780858)  (23.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:01:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:01:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:01:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 05:01:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:01:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:01:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '190cd97e71612de485761c2c9fb7e48f', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4a0ed20b23671d1883b593d9c844de44', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'be5a67f69683a560307a6563c3b8d2e3', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '113db3e046f0cc42658af2150d1334b9', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fb86ef4bd0643f384cb10c8f86314743', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a88ad3d9614057a6f2124dbb0b54438d', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c2cd4f2ac4accca3952a9e6e70758c72', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '73921bea15628b1bc9199537da36b5ec', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b0a34807d9d8492ae196471c2c37a7f9', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5916e6426a1d41d2c0f26038add10a6f', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dda9afa355a020e3bf1571c23f3a4e97', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bc68906d8e2ae34a06168f9228c1850f', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:01:48', '2015-02-17 05:01:48', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:01:48', '2015-02-17 05:01:48', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:01:48', '2015-02-17 05:01:48', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1c8e1e930fc30dc8cb97b6895bacffa8', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fd6581765e3b67f31d0842a65a503643', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cde87917577923be020a75b07c7a43c9', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ad5bbf26a4d9abc53abef4c6f1e2865d', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a16e6c8278290d877528ef1011c9cb24', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c6de85125a7472d736f253a878557154', '2015-02-17 05:01:48', '2015-02-17 05:01:48', 410780858)  (21.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:01:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:01:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:01:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 05:01:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:01:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:01:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b7b5f3319c44ee64adcc754fd11af07', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '96ec8b64eb701545352d5ba57fe58d14', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '513a787c1b6b10ba8b1828baa8a881b3', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '777d9248e1faaee49dccda5a253603d1', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0d53ea94209e5bf2e9b40c38027bddca', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4e8263c9bc9acaa665c8a842ff77313e', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0befd44ca5fce18a5a5e96933b1d5c13', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ade1c126738593649e26fcbbc689b4dc', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '064a02b8a20a0147d28819e6595c38fb', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '619d1a02fd53a63126933bd7eaf46274', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a629ff4866afb9c776ffcea95e46995a', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8233f4268d176125863be268b28f63b6', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:02:59', '2015-02-17 05:02:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:02:59', '2015-02-17 05:02:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:02:59', '2015-02-17 05:02:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ecf455f5842174a17e652bd087f78a84', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fed02559768348000ac20ff19ba136c5', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a97ab3a2af6fab04445bf327c6b78dfc', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '859489fe62a1870e870b127cd633e2e4', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '133d0f7749cf0d1e066b761e9dd941c2', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd120d46348d9eaca1edfa368b6ed0ce8', '2015-02-17 05:02:59', '2015-02-17 05:02:59', 410780858)  (13.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:02:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:02:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:02:59 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 05:02:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:02:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:02:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '44413b047bf84928473d198dda7f4c38', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '632b27533063827f032fbd4ec594a2c3', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '40bac432ffc799a83e5c24fcac2bff7c', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6dfbaf4e515e9cf39e23b75f1c827b57', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b1d59e8ecbc98c4317d7161ce10ea718', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f6f2d680945976259b854cd9e8b393f', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ffff266166022dcbf6bc63fec0d1a926', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b938c5dfec999f76a51281f0e63290cc', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ce24938a2ed7a4b5c5f1961481792573', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cb453abc7a9643e1f0ee763c7857e29f', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 1053526200) Fixture Insert (3.7ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4c2039c20835dafcc1617dccac9205f4', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2af8318e54f936be3f41599f052a3077', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:03:53', '2015-02-17 05:03:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:03:53', '2015-02-17 05:03:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:03:53', '2015-02-17 05:03:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '925ab4d87ab3aabcf87acecfb892337a', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b428bb73455cf0d1661f1fddb0209b34', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fb777ca5888a1f0e9468528c0e4ecf8f', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1311c4426a814d2332c1d0f01ef1b5e4', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd6f52f2939025a04ac2bc5dbcd186ff2', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '601bb96bff7388d33eea6ea335bc53dc', '2015-02-17 05:03:53', '2015-02-17 05:03:53', 410780858)  (23.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:03:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:03:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:03:54 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 05:03:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:03:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:03:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '374fef71660a3b4bb9914fa0033ea120', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1e0ccc181c0ca8eb2867888ab117f284', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0c270b951ef67742172eda2dac30769', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '64a4e167b4dea06f9b5571496b2313e9', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 775134066) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'daebab55ee52ca183777f4fee6596d93', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dd9effa8b8520df84451463246ea1971', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ea9abf4a94db26d035a3a3406766be65', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4da5499bc0d7f6d37c03927f33b928ba', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c5efcfcd5421bee9b2994bb2aaa62d27', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7be21ac3e748bcce5a77973cf88ce1b3', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 1053526200) Fixture Insert (3.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e9aaf0f35b8594326ad74c155ac8d205', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b186734f12c51f0d5be989a217cac7d6', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:07:37', '2015-02-17 05:07:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:07:37', '2015-02-17 05:07:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:07:37', '2015-02-17 05:07:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9b2139624a3b5d76911bc541cfc53139', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd4771699d506401cb46f14b078408c47', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '36a4160d8d753550f8ed7da6902ce246', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '98158eadd034aea470e495fc83acc0af', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '01860d5197328c0776e28f2a8f44db5c', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a4cf124091ecc9595de4ffbccae45e0a', '2015-02-17 05:07:37', '2015-02-17 05:07:37', 410780858)  (18.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:07:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:07:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:07:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 05:07:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:07:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:07:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ddb4bbe407a097ff674d5e7b4f40c375', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dd0cb2928df88b7835c44d4f03abacf1', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '404f0894687bb47be8fa8123bf89b88a', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8e9ef5fcd0441c7804019c5fcf23a2ab', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '14564b5048baa2073604e9904b64d12a', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c8fc829bffbb04ad1fe1b65b8d872dfb', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '34234d63c6a5cbcd7434005b804b7156', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '028dbde8e9d3f0398a69678fc3186837', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '61499967ecf1b4e99b323d87b84c187c', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4d8887cbbe777d29d5034875fd15fe74', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '89f9d1fe53b6e93c72d5238827ede802', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '78e85c4db6b25654c5390831293dd20a', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:08:01', '2015-02-17 05:08:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:08:01', '2015-02-17 05:08:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:08:01', '2015-02-17 05:08:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dba331a12bf196d3f486248e3ee06d20', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '64ed60b86a7fcb5557277f44dcc3bfba', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '13c878963868cd951a1492a3e512e954', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '45e6a106ce64e7a4cfc6d5580251f042', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2e503bf1a2c618fdcefb9e5a15c1b44a', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7fca439e5cab74355aa5b00fb0b48a1e', '2015-02-17 05:08:01', '2015-02-17 05:08:01', 410780858)  (13.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:08:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:08:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:08:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 05:08:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:08:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:08:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b93c46d7889b31fdeeabf896f97578d9', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cf131ef0aee887cbedc3ea8ea307c4af', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '95b9fea0bfb07f1293edf5a8da669a0a', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4c877d63d79da12e326e5846b00f60c0', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ca1954487c0c9d961194e2c401a0f10e', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '651e8d2bc88b98abdd368c8358cc752d', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd2548d3874e943a899176e09cbf34ec6', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6807b1fb2a21a007ccbc8ff19455a97c', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c6d0b0eca96e26fcf02c2fc418f709b2', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ed821e1776835ffa6acb4f17ec9c5510', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fabf2fb43ff24ee0c40428a80e98c657', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a800f396d0c985a08af24dbfd811ce43', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:18:14', '2015-02-17 05:18:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:18:14', '2015-02-17 05:18:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:18:14', '2015-02-17 05:18:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8f7b8c4c0bcbdafedc15f09039fef9b8', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fb738bf6ca1088998e0c7647e2a3fc03', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '57b1b1faecc6416186afe6c670e7e7e9', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd7aac66f4abcc12c79a8508ec001c9a5', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9d286830df8e82b550a160f477e0473a', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a81e21ed9b435188a6d617be3cada206', '2015-02-17 05:18:14', '2015-02-17 05:18:14', 410780858)  (20.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:18:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:18:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:18:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 05:18:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:18:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:18:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '62cc2b36479a5c57da02130ef56de288', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '85a93171243ad13e5c4274fac4b5ef76', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a198b62a22cdd201c0b3d86aa8d9bc3b', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cd726c866e750db0f187fda147c6662d', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9b24e2b46be01e053ce78c098060f5b2', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a02498193bab725820b35658f7805be3', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b27c53d99f0567cd29115cf11e0c7f4f', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2607f06e46cd16a21944277338addafd', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f9b192f329f12853e4c272e17d0712ef', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '173e05eed532bc4b0667eeec6a44fed5', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '86f7a2e60992d5ec18d654c5bec9ec95', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0783c657ba1a95e31badf34d186334b9', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:21:37', '2015-02-17 05:21:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:21:37', '2015-02-17 05:21:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:21:37', '2015-02-17 05:21:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1a690322c461eed9b9a5057fa8f11da0', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b90ee6d4ce3416c43f0dfa1de2adf66b', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '30f1d0450325da12cbb5e120f1fe98ed', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ba1581b4e89aa28ef4fca655b1a5eaf7', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'eaaff704ddf4dfe04575f41b4bf50497', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7bdb4133b45716538a2401564740ca72', '2015-02-17 05:21:37', '2015-02-17 05:21:37', 410780858)  (18.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:21:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:21:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:21:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 05:21:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:21:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:21:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '87a4cfc18d6e72564ec669f36c44b81f', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '502a0d5df5135bbb639527c44d2cddbf', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 1057142427) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a10268613fac89bb26caa37f5f5e2233', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd6f2e0a73709d6295f296bd0893e8d49', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f6a138d3453b32cec40ffcfedaebb5b8', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '282c3b36e42b069a81a74b359398f3e5', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd7ffb90e2f76889cbb45ec6b171b05b1', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '387f98e195a9c6c4871707f96a94047b', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6240c0c332f5473e03e79d7ea5c6d7ab', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8d8d170932f352e5705d39a41b732b35', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '98c25a5b50ba13d9b23b9a54787a8597', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 689259936) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bca8a1c65be7bda01f9cdfb96622f44b', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:22:18', '2015-02-17 05:22:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:22:18', '2015-02-17 05:22:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:22:18', '2015-02-17 05:22:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '439455bb3a070aa5bda1a5b1cf163f3d', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b23e57ad81084aa40215bfc6acefee27', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1a77e2b236c8a0e87a6e2fd33f0711db', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8ebaadb551f01744295921d812cc44d7', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '91bd01cece0c4a0fa76bf2aad38deccf', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bd90927eb0510cbcba79a84fc11e6782', '2015-02-17 05:22:18', '2015-02-17 05:22:18', 410780858)  (22.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:22:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:22:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:22:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 05:22:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:22:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:22:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '18028af6bfcc40096e2740d3a3453017', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9be29f6107c9ad12f59f0afa9b7c15f1', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd4872cd8b974d7f90fdb1e639790e4d3', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1ffdb6d7b71b937a5ba1afca970ebc00', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fa1e252898c5e3a711b570c425d2cc69', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '537e843cb60a5e4a286011ae958c6cea', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0b481140476154eab53e902e03cf8ca9', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7889e6e8df727878cd55522a9284965d', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd1df8b9f81724f6d64016dcaf7e384db', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b1a387c5051af6d765af00de82f1b85', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1822ec068e17a3d0ef7259c2b7893059', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e1a1b4ccc5b8966fce9ff626358108db', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:26:23', '2015-02-17 05:26:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:26:23', '2015-02-17 05:26:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:26:23', '2015-02-17 05:26:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2051798ecb7d8b4b436eacbe5997f2a6', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f3f55742a91d21f2aa3ac88a2c27b33a', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '918cc4bef93c93a3a99a4ceb98d76bc9', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c4ae9617cf752fe12e0101e0655b0f95', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '99637b02983ea6fa62892bffc04cd19c', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '04fea1fb8327ec79b50f1a790c9fb148', '2015-02-17 05:26:23', '2015-02-17 05:26:23', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:26:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:26:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:26:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 05:26:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:26:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:26:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0707d0ea04e2b97c54eb027cbc7ff11a', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '14384184c7d7da9804ed62eb142d5b89', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c963b3cd4104c4a6b30b0218f62d95f8', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3ad3a06848c1b9e44781bce0539208df', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3f1b07e829e7415c9ca866eac64226d9', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f905b243f041a09d280f26778b08dc7d', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '468f5f2da4258b7b6c71a9774da4434d', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '888f23c94ac7bb676d1d75fc4d801204', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '319b36836786a5ef27540e71a55591af', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb60b6897f9bf1cc20207d882d66128c', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '43665ffb847e04e374f1d212cfbed7e5', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eac4d43ca1529a0e528209580c4bee28', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:28:08', '2015-02-17 05:28:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:28:08', '2015-02-17 05:28:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 05:28:08', '2015-02-17 05:28:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '063a7ff82377e8af92c20303d5c96c74', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6f53a10263297c28b82fdca4b553f659', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b6fabc61356e66f7f1dd7d321477158e', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7219547e5fed7a8f8dee5a2113a1f002', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '06b29d5765dbd25b1bce34769cb5d687', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9f372f56b82d627f25b7a45e378c139a', '2015-02-17 05:28:08', '2015-02-17 05:28:08', 410780858)  (35.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:28:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:28:08 UTC +00:00]] SQL (0.5ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:28:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 05:28:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 05:28:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 05:28:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '89b8f3c52526791d8f496d983415a8ec', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd64782144acb70a02ccfe7281320f5d9', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '87e08a4a81d8f6c66a82ab01f0f0e08c', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '00cb241141766025d1229b71fe597af9', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e6caba60d0d33b1fa2e3098ed4c383e2', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ea98209e80692b4638c2167acfa13ac0', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '469964c7799892ab2cf242b4432c7ec0', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e7702bde5122d2c3dee6b9fa8ee70584', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cca897c2f10c3205a8b250d61a3ba16a', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 966629572) Fixture Delete (0.5ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c7db351dd413502cf032a5e590f6b939', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8b8ebe1e31bcfad0b19544e40a9edf89', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '70dfe206ceb6ac138bcc2655d1eb4357', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:19:58', '2015-02-17 06:19:58', 902541635) Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:19:58', '2015-02-17 06:19:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:19:58', '2015-02-17 06:19:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6cc0eb6970c0166f00f4e32c3a8fcea2', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd0194afd61467649d8891cf4dec25da5', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '01c72b607ed6bf35fcd5486773665652', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '791e57a8cb8d400f7b5612ba644592ed', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f111ec465df87665e36a28f482bf52f7', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '23a79ef058a296f6e210dcdd21d74ad4', '2015-02-17 06:19:58', '2015-02-17 06:19:58', 410780858)  (12.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:19:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 06:19:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:19:58 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 06:19:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:19:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 06:19:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bd147f0e452a16a57e57ee21e0a15a00', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3ddcaddd25e9e38c83356adefacf695d', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '11d75d4de8ef6f1df51a5c6d4a1cdd71', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dcc3354cf8346a33c4902a23a554c1ee', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6c8a9580be6b46149c8a401e7615af45', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5e4fc5d4bdabe2fa0e98d226625905c6', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8fc747f0f1598f073b4b01d4d9b1a5dd', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '27562791d5a70c656c1c2564a9e8a3da', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b7677e3a7cee8a2eb9afcec8b4e1748a', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0255b5e27f07fcc40c2f54fefdbb050f', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '53be1e11d73408b3a733efabf7505398', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9968fe39e6b22794724b01824b7d7b73', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:22:25', '2015-02-17 06:22:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:22:25', '2015-02-17 06:22:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:22:25', '2015-02-17 06:22:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7044d26c500a5f61a558cace0f6a5cc9', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a0e90e40fddb328120decaa2b943c316', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f6888482bad56c15f32d45dbaf43252e', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '58ef151e541f5733ab6f543d72c1dadc', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 819246218) Fixture Insert (0.3ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bb08b0649c4480a2a2bd0f08212726b9', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '92ec9a5e1bcb1543bd8f81a2894098a8', '2015-02-17 06:22:25', '2015-02-17 06:22:25', 410780858)  (23.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:22:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 06:22:25 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:22:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 06:22:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:22:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 06:22:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8491765f27f15f83db00cd7fb35c3b0f', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '35450418cc81e8a7efd58837ea078ea7', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b4b4ece63dda8aff5576af42e131b73', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '160944566d6ffd2d3d47f516dda96042', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '172636d3884c786a8a507c4a9b25d4d5', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '57b910d8cd0cd3fce9fbdde3bca8d71f', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'de1d9e079c403c5324d7319839ac70dd', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '498044bcb1b3ae7b9aab6cc12e1c78ac', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f8f03080fe2a160603d390d302911389', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4b129806173b6e4c8ef6a14f8160795c', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee8e716df76d336420330e5d0cf9a411', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8eff1e9489b3538a022fd4a291d20045', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:25:14', '2015-02-17 06:25:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:25:14', '2015-02-17 06:25:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:25:14', '2015-02-17 06:25:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b1682b6d4ea75ee4d86be2d5d85c7c83', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd811fbdb5795e000640ffda71367b977', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '599b63993d77c3c2bffb83f6c9bca4c7', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2a7f28d2d2f2a597aed4cdf9762ed2f3', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '784f99fbed0ab1c948b513de0e88f2dc', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eed6098d6661c4c7519261807c479e50', '2015-02-17 06:25:14', '2015-02-17 06:25:14', 410780858)  (33.1ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.8ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:25:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 06:25:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:25:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 06:25:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:25:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 06:25:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cd206855a15849987b3c4fe78ff76088', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '43bf4fa2f09cd76dfc4a8a58cfe9ce89', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f88b258f2e5e2527d9acd20b1c4d96ca', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3f59ab4521623b5cd89aba353995db79', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'df1c06e2e1861c85f2abc865d6a797e6', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '98631c7f4a6033d6d6bb50933b431bb0', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6b4802a42bf287a9af4f8fe12285d71b', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7468cee36f4f8a0337fdf34896f43c85', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5395cef9247309686aef974beebde6c4', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e887741c7f748f61fa8bc51005233f0c', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9fbe95796e022e8b81a5aec87bbbcd69', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fbcba1df3c17366a81f19df0f46b8895', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:31:59', '2015-02-17 06:31:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:31:59', '2015-02-17 06:31:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:31:59', '2015-02-17 06:31:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8b73ff4d67796bf23d4f1bf9c6f9fb15', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '150c4206579dbef8f456252db7b1e11e', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6e15f08604493ca25671015c0d088023', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a7b35786c37b80b301b39415e2b2b035', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'eac4fcb1da6fb19a69ad8fe0c405457d', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1c8763643b25cbc508fb4e368e114a68', '2015-02-17 06:31:59', '2015-02-17 06:31:59', 410780858)  (12.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:31:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 06:31:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:31:59 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 06:31:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:31:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 06:31:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c0c0d5afee41b55720737824349789d4', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bed80e1f1b7280273bd833716e1bca8d', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd4a837954d8755ce689767f6ad26f072', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '560109a38a639632b0c73631d3a2b021', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0f18f80c3bb5f622241f593221019d16', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fc58232cf6a8d23acf05d7f9a1c9fc68', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '575bf6a2f1d368a0e369edb885b86dfb', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '972e0f7ab220158b4a741a3f2f95dafc', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fdc7c75aee4dac723a15811e39b9b341', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0aaa1d0830ff50110001c833866d555f', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01b6d20c9206a41db2d105b78575bb50', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8e3121ab936e4d9029fa7090987a0b38', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:54:15', '2015-02-17 06:54:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:54:15', '2015-02-17 06:54:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:54:15', '2015-02-17 06:54:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1b3d114a15de92da749dc8305c00d05f', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0cf2497f40e4e72b5268cff23b61f949', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cde2d329b4e9f861ceb2bacc6b2e8369', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b34b179dd851adf6a5eef3cd134f204d', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ac4ac599a026da5681b16b0e99546c11', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1a06ae32e1cbeab22ea026af18bfad09', '2015-02-17 06:54:15', '2015-02-17 06:54:15', 410780858)  (25.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:54:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 06:54:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:54:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 06:54:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:54:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 06:54:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5e37729f7685dd3e1875c0157e19bc91', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ecba0866be94c48d7f8c1ccaf96a794c', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0839f51386aae3712b6e383548d43907', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3118b97219d47a4a800b531cca705ea1', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ffac9695d664bc0ef603907ed7facc98', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '220df97b6a951d131e27d53aa081bb89', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 1032612456) Fixture Delete (0.2ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '31257f163c0c284ad96e7d8b60e4d2d7', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9e1982ca8143966d30d1d9298f1b7882', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7b2cd2b3caf51a0d6580e53c12ff243d', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dfc489484cb026fbd8ebcbc4ddbedcfb', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6e22afc82f9bb4216e334234a7b384eb', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f95cb3309123eac4b11dea165eef227c', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:59:57', '2015-02-17 06:59:57', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:59:57', '2015-02-17 06:59:57', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 06:59:57', '2015-02-17 06:59:57', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'eda65faa8c0d9a50bbe6d5baf397305e', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '63d28f599c378abdd58e72426f58f429', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '343f3424d1b76422f3e3b6dfd1565450', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7ed0b19e932ad019228b633e2e816ed5', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd97008670afd5f0dcc69ca9612661d44', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '298c0f0b8d013ba58bcea0be3e5f71dc', '2015-02-17 06:59:57', '2015-02-17 06:59:57', 410780858)  (14.8ms) commit transaction  (0.4ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:59:57 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 06:59:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:59:57 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 06:59:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 06:59:57 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 06:59:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '81e2d4aa760bff2d357297cbcad0c9e7', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9d768d337536e149d95d602f0a035228', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e4ad1ac5a4031f42e7cf5b1164ef554a', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98145ccd55905a40fb2e2db702737d18', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '71cccd45ce8267845f54d8eb9961bfea', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dd53e1e068af0a937d3ff582c4f55a6f', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '099a960faf6b53c9b8caa6a767dfa3a7', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '656c877116e413b96cbb921db482ed6e', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ad0da3a14f98498e882a997bfc1f8c1f', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '214665f49d8db2f8101329dcce3d4cb3', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4c823c4f448ea3c45302a18edf5c445d', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dd83b98c072e9f539e2e4d5ad44bde80', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 07:11:45', '2015-02-17 07:11:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 07:11:45', '2015-02-17 07:11:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 07:11:45', '2015-02-17 07:11:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd345f29488b9ba1dfe99e5000dcf0a3d', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9dcef856794677b982961fd6289f941e', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e17e9859e4acc2536932f9e0894b0cec', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8dc9f319ebdfb15e70a66d6c810a0f4a', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fef91a8aff71c55ce2f8c07ed3acd807', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1961d5f39c3f66eeba605752d8e4a816', '2015-02-17 07:11:45', '2015-02-17 07:11:45', 410780858)  (14.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 07:11:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 07:11:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 07:11:45 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 07:11:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 07:11:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 07:11:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '77f0801f0955deb3531535a26fe1b6c0', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7736c751a16f26dc286b1167d4bf8f07', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2dd65dbc08838801f67557f9525736c7', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0d83e364e980d181b12e5c6f8151b499', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8b92850daace5a774224bc5223db4c74', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4197aa2e8c9ea45cced37b332b1e0c96', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'bd34301412d88e94e0a23f487cc2232e', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c0dc45a362ba1111b0a0ce671e79213e', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c60c760939ad9f1f30fb47ca78443196', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 966629572) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '05c4da07640f3c964ae320b886bd7572', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9d71345cd2b9e13c42388ce1942b0920', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9142da49f49af92028a08be8525ed763', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 07:51:12', '2015-02-17 07:51:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 07:51:12', '2015-02-17 07:51:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 07:51:12', '2015-02-17 07:51:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd08ae704610bb8120e2539fad6765f6d', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 884173432) Fixture Insert (0.2ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fad7162d8766c72200b5d9b34af45d14', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7f5a70f728f7c0ad8a3e56ec94bbdb71', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e9cf1b386dcd013ea178ff9c6b4031f1', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b31d7a7f8e5b1a3238c2bc73fcf788ce', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e21d6cf16bc315b6b558480bce050392', '2015-02-17 07:51:12', '2015-02-17 07:51:12', 410780858)  (24.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 07:51:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 07:51:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 07:51:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 07:51:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 07:51:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 07:51:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '68da86efbee70e90b32060b263d27e22', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'af5c06384bfb1d2cde399d08ebbd80f5', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c9f412380ffdecb93d9eead10f629104', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bdbb470ad9d6407afa19b8861aaeae20', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2aa22429e9a131f0a7a5fe17381e9d4d', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '342f291120755ebcb93feaf41ccd4e25', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '82221beb06cf86c3d934aa4b2ab4012a', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0641f59a770b7f4efe06cc983582d89a', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '991c85b427181fe8f24ae80017921d38', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '28e75d32a3fb292598999e7f589c9e92', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5ec9e180d890c1a27ac1739959b4ef82', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ac059eb7ca4b56a94ab04856349874b1', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 09:49:30', '2015-02-17 09:49:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 09:49:30', '2015-02-17 09:49:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 09:49:30', '2015-02-17 09:49:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5b1dddb10fc7dffe24d91cd6a3f1f60b', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5fbe1eb485d08ebe2e2c0007e015ff66', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '48f005a0b56fe3477ed356ff746d2382', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'af55d10ec0facda80b473cab6fa13f77', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3c03911e64782b73c0bd5d7fa0cc6a91', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3907a720def76bfe288b0a701435489c', '2015-02-17 09:49:30', '2015-02-17 09:49:30', 410780858)  (46.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 09:49:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 09:49:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 09:49:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 09:49:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 09:49:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 09:49:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2f19a76d07c0ae092c2b2e272101f1d6', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '79abec3bf6526dd909203c69c6f94268', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f2f1bc7a9c3604b121f5af92e478602f', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bbd85868632dced4784bc46db61e06bb', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7694937aa231d90a438dbabaf06cff83', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a87a8e2846452a528b3e25cb02c41487', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1c52a0ae4ef6254b51a1095d91659c89', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6a7f8f5c7f752557aedbf54b1926e65f', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8251073ff87f5c073da76bc679b09027', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '07c5a73938b6f69e308b4f2c5ceb5464', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '95e6b6d156cac6da53190af0ebc6f466', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7d5ce2562e101de44840c5bf31a80e8a', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 09:55:35', '2015-02-17 09:55:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 09:55:35', '2015-02-17 09:55:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 09:55:35', '2015-02-17 09:55:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b6b171a44396a5fdd0ebead7011c9b4a', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e0b55de03a65e2db9d533c658e9f07f8', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ac9a1c5e3174b8aaf56c60eaa7852eef', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a42cd97edf56ec015eaad9417f7e302a', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3846fcd7242d81ac4847f0003a2dc8a2', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cdf122d440235a6133940b6d6621fac4', '2015-02-17 09:55:35', '2015-02-17 09:55:35', 410780858)  (12.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 09:55:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 09:55:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 09:55:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 09:55:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 09:55:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 09:55:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'de225d3758c6163fdf59a097cf0a06c8', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a781b2cd4f19960d673f7b695d12844b', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 1057142427) Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c746352797d2a7f90e6d02b2ad2acf8c', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '41c1026ed2a888d126d36a40649f2359', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '749930257aa102b4ac2e27cfcef86124', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0c13cd5d4e539ec4968390916cbdbab', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd4fbde42223f571550bc2c72a719758e', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'eac8454a069c1818a75fb4fe91e0bb6a', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '21fa497febcd447c8a4e02ff7db91256', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '19c6399d41b9ce4d7e08eb25eb6a4cd2', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 1053526200) Fixture Insert (0.5ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc3554059bb11077fba5bfa0e1d19ef2', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '04a41ca2e589b4cd657cabe5260ee783', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 20:34:49', '2015-02-17 20:34:49', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 20:34:49', '2015-02-17 20:34:49', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 20:34:49', '2015-02-17 20:34:49', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e8d472393c9f535029d7ec297efa3398', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 884173432) Fixture Insert (0.2ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd890e6490c52f1d23255321d1a92b795', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '15ea429a14f361abd3c448207ea90cb6', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8fd899a323c6348cab10717db8404c95', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '70bd9e967ff21fcd4c7621a2ab260214', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '44785d6edcd46d4296d8008919e0aa4f', '2015-02-17 20:34:49', '2015-02-17 20:34:49', 410780858)  (29.5ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 20:34:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 20:34:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 20:34:49 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 20:34:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 20:34:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 20:34:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'df8cbea7c40565e58ea5d90ed764db62', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f235096fc8abe105c4a73d403e9e6c02', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a38248d9d8a77dac381c8541f42f8f38', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4107a4e0f162555ed843ca29bf132d69', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8bda620f4f524713702fb7eba8ebe8e1', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c6ebde5de34a44463f60c0129a5d14a6', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '21f22272e4f8f00cd18a866bf1832fe1', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0b32d0ba0beb95a666dae11d900bcf4e', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c0f87361ac54d768f6db42e03a3849d5', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6fd41f151b0f1bc2802e56c469288c8f', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c8361d51cc5ca6fbac905829d95b5d34', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b6e98e38bce2060a79edd1255a1e1c7d', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 20:48:11', '2015-02-17 20:48:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 20:48:11', '2015-02-17 20:48:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 20:48:11', '2015-02-17 20:48:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '034b82881494e7d4868e4175d9f6e975', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b073f7b3eea4515276ad3cebeb81edf9', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '12d911e02424c6437faf8d3b99851ff0', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6c91a0a885184af388cca62270494b2f', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b4e3baf330773a9507a61bd508a7cc5a', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'af1e5e346be542d51e47026e0220734d', '2015-02-17 20:48:11', '2015-02-17 20:48:11', 410780858)  (25.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 20:48:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 20:48:12 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 20:48:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 20:48:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 20:48:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 20:48:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98c73b01e0d9bcfc420183ca57ce4b6f', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '93bdbd7d7bc4593394d557a20073b281', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5881bb9a0e4379f853c449ba68c7164', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd323b8d50bf2cef26a7ad94b29b2a333', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ca70544d8f98dae4ba7b312e9f2bb599', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f61a34c2b78f168b3b37db3c88376a98', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '01b5a917713776882e88596c34bf7fce', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c128a71a9263a123cac601d215ffd751', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '47ab28a96eee4829fdb15c41c819e020', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3e489de62981a8db0092a63def76a8fe', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '86552d21c4cd720570cbe97f64d9dce1', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8865a00dd08e2a29b12c2cb748213497', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 20:48:37', '2015-02-17 20:48:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 20:48:37', '2015-02-17 20:48:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 20:48:37', '2015-02-17 20:48:37', 619379998) Fixture Delete (0.2ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '862b45a346fa7575e8772ce1ec3ec8dc', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ed6497530a8f47409283a50a4f7885c4', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cd226578892beb17022936a3fcbdfae5', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6f179841a51eb8b01ec9d40e7a83c2e1', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7dbb28436575f20ee707470eb0f32e12', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '759bbeaf35cc6f5092e8355c87edc559', '2015-02-17 20:48:37', '2015-02-17 20:48:37', 410780858)  (12.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.5ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 20:48:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 20:48:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 20:48:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 20:48:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 20:48:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7c40ef745d6491909a1c86c6e4d7d700', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f543c696171cf89b799437dfebc9182b', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '84c8f5c68f716371b3801fe2fd8355a3', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8c4c5d45134c84026c9a2c5c036dc848', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fe0582daed214daba198d606b8b3d44f', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c5e826de9862326b152ba05ab86931a', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '60239e8e43c29103e30a5d704c3145d6', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f7648ca69a6b076b5e0593dcf9c0c5ac', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd3b0b776340bb761ada58283e0efb06a', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a0591677abeb53edf6c8ce60681e5f01', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee10e712fdfe027e5e81eaa4915aeedd', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3c76f9ee6e95e366cc3709f9fc24e80d', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 22:42:26', '2015-02-17 22:42:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 22:42:26', '2015-02-17 22:42:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 22:42:26', '2015-02-17 22:42:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8ef4c864550d128477147e3a8a4a9f52', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f3ebb08cf30daba94bc3e8d2a185020d', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9261e448224cf07155f8e12be7699ff0', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '943d293e4cb476d8770997fcf4348810', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e342ea0e27ef8baf58f1ba315a85329d', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ef4267772da9fdc80e203ed931d089ce', '2015-02-17 22:42:26', '2015-02-17 22:42:26', 410780858)  (26.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 22:42:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 22:42:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 22:42:26 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 22:42:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 22:42:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 22:42:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fd0639dfd0f7f3c3851c30df24226ff4', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '13a9620b1ef297a807cde9628499de73', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dcbb218779a5310edcda99c46cee7bb5', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4bcdcb68c3f25852ad1cc0aaf9d8b5fe', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3aabb00a5e9b62d72261a85656257beb', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '00f3cb46fee43f4eb2692e9ab94933d8', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '66d0e726c57524a362b66937b58aaa73', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 261299535) Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cb328fd75ac81bb0671e52e5765de29d', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ad547e4bf0fc92511101080fb09d851a', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '793a3d894d837bf43cc203cc1ae5ce45', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd4528a9939505a04f6f55f97ccf092ef', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f9d7f5b24d133a1119068a9872ae9c3b', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 22:43:23', '2015-02-17 22:43:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 22:43:23', '2015-02-17 22:43:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 22:43:23', '2015-02-17 22:43:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bb98b336744dc1644935b4346046b544', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7ca3c71821bb0ae285ca0dc65a5b1cd7', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ee2dd42e3aea2e463e9a3ca1df7a17af', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fd21ebd9226aee78dbba7acb8b6c6222', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a530add7c1c4e3a7da26e84e6363d5e9', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 970698464) Fixture Insert (0.4ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '016327610a2399b04fa7a9608552eef6', '2015-02-17 22:43:23', '2015-02-17 22:43:23', 410780858)  (22.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 22:43:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 22:43:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 22:43:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 22:43:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 22:43:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 22:43:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dcedd2c95578c2836490ed6ca2d4088e', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fee8f316b8d945b339f79c160c0f9489', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '975bb293fa38e97efe243f99ddc638f1', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '00a862903e0d4c31541ae2c4880fa0a5', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fe41c817221e5826c3ece654e1aa71d9', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '55ca1e9b34f6863e39dbe500a5f6f29e', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6602bf5717a1d6e23f89fe410f8438c4', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0e309abfcb82087394095dc9d4347b79', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '11d7f208bd2919a67dd8d50d9a6f195e', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a956dedb49b3c8453452a86dd8cac36', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8f6579553ef63d1a93949a9996b81e8a', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bc2e97b4416ead6c0d6b3c324289eefc', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 22:44:30', '2015-02-17 22:44:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 22:44:30', '2015-02-17 22:44:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 22:44:30', '2015-02-17 22:44:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '20d571acbccbc40d2677f2e681fb53c7', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 884173432) Fixture Insert (0.3ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6cdb7b76a67beff9220dd83d08c84ec2', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c50c136dca70d7c6fe530e24a3d66947', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dc9d5c133c96d9893d2b51ed418e2af7', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6f2f6d0f05e52d5890d7b547a91db0d5', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '24df043429c72c361ad74bc1a2cc99c1', '2015-02-17 22:44:30', '2015-02-17 22:44:30', 410780858)  (13.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.5ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 22:44:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 22:44:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 22:44:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 22:44:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 22:44:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 22:44:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a626c834872e094eac87fd57029e07e', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8bb15754c0497e61697d69e05041fc08', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '40beeb70272b86bc98d525e67a436a66', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4302c0cd7c47b45e141cfcc7ab5beb11', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be1972b626e5bed868e6f3c555a6c828', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9de7a3903717e09c0f769ad0e95f1cfb', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '72d74415f2e77ad2b85e558ef50f1821', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '43df10f3ff6b593a59455a1c7faa5cdc', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9e7cc6e11dfeb402312c3606772a9207', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '34b7d8d0c8b03a85f2337b8f4fa4b69f', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c6134c2b287df987fc5dbf168326a1a9', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '49a468b34aad6569b191e1be94a8accd', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:20:13', '2015-02-17 23:20:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:20:13', '2015-02-17 23:20:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:20:13', '2015-02-17 23:20:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'db79f8287f007c1d6e21be6a6eecc532', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '92ebcf41ac902501685e4a358c15f909', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7f552fae6e9705cbcca6cbdc602f5d6f', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c2c757e2ec70ef745c8badb87f9a871e', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5a875f449b37cb8f8e171b43220203b8', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8f67bd7b93c99b4c3fb315b406ecd08f', '2015-02-17 23:20:13', '2015-02-17 23:20:13', 410780858)  (12.6ms) commit transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:20:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:20:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:20:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:20:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:20:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:20:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8753df72c2b6d86fdefca1b8f4873e89', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '06d890744b753173718a292383835c14', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8f9fd668c4cf0a6c53eeb3bf5bbe106c', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5ffbb4d774d02b8cb757fdb03f338b3f', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3c6fa284c161101d4a853f5d4dd950bd', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '703151f746a7c198a48c8674360cd529', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0db2fa5238d3f00841856123c21e6f55', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'af600ec216a7cc979e8756d217db0861', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e9d14248d80c88b98c655e3d3105c7fd', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5694ec65c213057f4464ae44e32c66c1', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9476682a33524c50d3326755d28f0f12', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0d4e114504362ffe88417d52d767b283', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:21:07', '2015-02-17 23:21:07', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:21:07', '2015-02-17 23:21:07', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:21:07', '2015-02-17 23:21:07', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '379fdb58d96fa1e21a823d3ec333ef73', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fd9f46b37a11bb49d2b38477c7b375b2', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fc80451b73bd103344905840542b3d3f', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd286c37f7667e9b6bc978fcf33acf292', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2ac8ff7c197659b5cef0d0d5482c3378', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6ed657ae6deb994c16450a3a504a715e', '2015-02-17 23:21:07', '2015-02-17 23:21:07', 410780858)  (13.5ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:21:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:21:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:21:07 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:21:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:21:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:21:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55ea8f6cac2a0a6704f991bb92c309a6', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0b9ce99140f89b8685d6515e0497eee0', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a4ed3eb31f582c04b5507eb756c1d02b', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a877b2b8938b165c38596a9c8bae872f', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd27722d1c1da8b3647ba73c181e63d88', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0d6c3bea988c3e0ced32aa071f2ff92a', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '84df8e85c2a50a123b15c46a0acfac18', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8adb50dac3318105646c49d04a6cfb34', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ea03337cb6c6c1354778c7371a6f40a3', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f9be11465cd851191eed359cc9871da7', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd895c2d8f20f3e46c019ba710f074c9c', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '83c30f9c67f7bdd61a2d49ddf73055b3', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:21:38', '2015-02-17 23:21:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:21:38', '2015-02-17 23:21:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:21:38', '2015-02-17 23:21:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd3d12c545f15439d2a83ecc1daad3a3d', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '499c6b82d47d14cf90a0cf9695709c59', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '37b7b9fc16ec6a0d5a87dd49eef3b5f4', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e61b015c297de99da7d90c837afbbb09', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'db6f574bf981ee225afa9bb0774e023d', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3df4583e0bfe2d97576f92093f273c06', '2015-02-17 23:21:38', '2015-02-17 23:21:38', 410780858)  (13.9ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:21:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:21:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:21:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:21:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:21:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:21:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cd8eb035d081b04027e5967a6c046b55', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '57a1ab499b1ab6da3959abe676dfc275', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3e184fcf4a763eb0e7627f03a7ac8607', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '31d48a948d3a2839be23bf5b3c268c2a', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e289e6e8d3c23c5215abf8bf163f66a9', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '36b4d1f45acc410d5abb2690eb170559', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fbea0775df43c037313a6a25d743b3ba', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3bc99b903057e9a1fd02fdc29653866c', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b850a52e8adce94c109f578c88e211cc', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '42d98bbf6a9d2ae7d713e7a1e3ffc3ca', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1233e80bdf3ec688c9ad7426fb3273a7', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f84c1912e061129b40aa8b7de44a68c5', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:28:43', '2015-02-17 23:28:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:28:43', '2015-02-17 23:28:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:28:43', '2015-02-17 23:28:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f842d0c2708cb83c40c34ba00fd780ed', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '06222fcab4675c7d2a3c0b7a08ad362f', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '860671dc711cc751d89c8a90a4d6a569', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '634d41af1e3286638ac44be96c133422', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b5b0b2bf9e01a6899d8b9758070e38f1', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c88c52a7ca741c09988eedc79466b370', '2015-02-17 23:28:43', '2015-02-17 23:28:43', 410780858)  (13.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:28:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:28:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:28:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:28:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:28:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:28:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7d5925f143a7ecd8b5ff353057f89f48', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '73ef56afdcc42750a49529e5f06d1378', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5b56b37dbd2d19c5e019b3ffe53d705a', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4d5d96cff11e84d1e8ac58c2c68b5a04', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3adc6baa1f15115bc31c33ab6744eee5', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '78dcff55403827efdc8c469893a1a43b', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3b716558b9edfeed65df3ea0eece70a8', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd555b241fdfd81427304c0b260cba942', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '201300cf99225c12a5d98795b981d645', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7cb860ff2a0b1e48f2a4c611794e9776', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7770e0137799b32772013acaaa880d19', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '26fa2f02f9925d913719713f15523cb2', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:30:39', '2015-02-17 23:30:39', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:30:39', '2015-02-17 23:30:39', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:30:39', '2015-02-17 23:30:39', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '48124115d1423a6fcb2391d50b60d422', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b6e5adb704762df1323af597d79f7fd3', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cdc7b21781e164d089e435a86f78426c', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0a57633dd0e75ae5617a0650aeb94ce3', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8352b91fddcd4db1c656f875d753a50a', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '667da166a8db20fee207897719a38d7d', '2015-02-17 23:30:39', '2015-02-17 23:30:39', 410780858)  (24.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:30:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:30:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:30:39 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:30:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:30:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:30:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2a0279933243abc8a28926a76c4d3b7f', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b70f930eb5e6577ecc778c423f862d21', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0df543543ebc180f216f10f7733e1d39', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7452e7b6690687b39e0f6adbba2685f7', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2c68842febecb05914b530fdc1f2d626', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2827c399b20bf08e30d66c6bab32f2cf', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fb3e96a19239252f56011df3f7a9f257', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e9895b86808a84edf0a6c8f23e2bf66a', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6d4a060232688cf1e7c1bc5c72085578', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6c2977e046c61fa27ae2bdea792d1802', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd3ad5354dd555ad3e41c47805d8fadcc', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2db2b059c2d768797b5156cd613856bb', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:35:32', '2015-02-17 23:35:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:35:32', '2015-02-17 23:35:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:35:32', '2015-02-17 23:35:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '359806023a7135aed3e076bcb07177a0', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c8a1b761ce125d8a0a55791520d09982', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c1219424b8bea1b598608840182baa9f', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '69be114076ecbb146cb3e05cd5deb4ad', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2fc967abe4425c5b8e1bfaea3f753db5', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f661a0603d64864ec71bf51110e8d8e4', '2015-02-17 23:35:32', '2015-02-17 23:35:32', 410780858)  (13.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:35:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:35:32 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:35:32 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:35:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:35:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:35:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9d56d78a62a442949865343863389268', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eb88ad77e844f2b96b2c8a2354d8c143', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '666ce000c1fa08c6ca8aee8211b9d9a5', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '11b392ce0a8d0814bfd4a3d83e049846', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd7401a67cc0ac75714f8db2e7d139f56', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a8dd19dc7c1f365ea1b69320fe900a9b', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f4034f5312b8d0033029e4e61d5f5ee1', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8613471b95f04e2c956e7b5e38c7ebf0', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4b4aaa400d9d35ed62a9bd8cb3f36938', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '64662bf7f82544845c0f354841eb7710', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'feffe5dbbb7b21f7c706481245ab7a30', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8dfcfeaab56e1744a16247abbbf5c9f0', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:37:01', '2015-02-17 23:37:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:37:01', '2015-02-17 23:37:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:37:01', '2015-02-17 23:37:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2ab761fba739dabe0bae40e9115ae2de', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '25c92d1a946aa60b59a088450aeeeedf', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '989009105103851f795e530274a5adc1', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c387fdbcb4b96d91c40dce9c6a1790d6', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1ac53b769eaeadc82785cfa4b9fb6af6', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '13125547596f0593797ee80840d0c390', '2015-02-17 23:37:01', '2015-02-17 23:37:01', 410780858)  (23.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:37:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:37:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:37:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:37:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:37:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:37:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '90a3e4f167c75f99b2d343bf3d2349e5', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a9b29e005cfacf4d919591ec723684e9', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2f1b473d47fa67bb020e6f3bbd359061', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5ff0a6a0a9ded47cd6dbbe1b0ac23da5', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '14e21e473078e65f70c5c8a64ec15923', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '214f1fb8bdd75a5e1de9acf63415e8c4', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b2d3b35f0cd90ff2ea43ae658b1db350', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a4fc2c45b80399a9026cb077dcf5a893', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '885f97fabcf3e3ca9c79f505078460c1', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '973aae695355631e77dea523c517a21a', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f8c6cf68c07853b1d6f7395313ecc6bf', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '31b95606525d3320fc02126ae991a9ce', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:37:41', '2015-02-17 23:37:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:37:41', '2015-02-17 23:37:41', 380377255) Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:37:41', '2015-02-17 23:37:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ed4e69ca578bbf77e3de2acf33541e5a', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3670777ec4edac06bd8a0b6fb93a590a', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4c3db98209e469d95c64b717bbb1a8f6', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.3ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e79edf6d848f2554166dbaa6374e342a', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '221445a51582ee8e5b34bc0f6a87560d', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9d859b3701d10bc8aa30b2c2e0e45b5e', '2015-02-17 23:37:41', '2015-02-17 23:37:41', 410780858)  (24.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:37:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:37:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:37:42 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:37:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:37:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2243435fc0aa80bddacbc60034b09f5f', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c372aa7cee3ee5513cbbeb8e7466a9a9', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7f7049182afa6e95c381b0d600d9f742', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '58a32e7a210ffd3d08ec4a790255aee8', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dcbc27c1bc340426d9348212fcc6b68d', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3f68bea4e20677564936f7f3f2ec5529', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ee09b188a431239a9560335f3076cfc1', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'faf37c9d5803f48e4c2dee3c054ed436', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd094aa774b01efdd9f937332683d384c', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'db138727372dee8b45650f6fd405a7f2', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4b9fec6e4950c8df5e76acea168d3e05', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 689259936) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f123bba9065abad137f9825d46f7bfe3', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:38:12', '2015-02-17 23:38:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:38:12', '2015-02-17 23:38:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:38:12', '2015-02-17 23:38:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6730018ba6a6084e7277ecd177297ae9', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '70032e10aeda3e6cb43b9a68e4d2ed11', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a245f031d2e35f8f51e1dfd957ec8cf0', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4406d054b44c1a18a0f2210cc5d3f8d4', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a611c183bc47bdf50e836582c512d5b7', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5c88ffebfdef06891969188d5167912b', '2015-02-17 23:38:12', '2015-02-17 23:38:12', 410780858)  (37.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 902541635], ["profileable_type", "User"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 902541635], ["profileable_type", "User"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:38:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:38:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:38:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:38:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c15d19bdf8070c2f791916043846b78e', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '06fa80eedb9caf1698c8fc4f32f8ae65', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd6adab689b3576dd2b6d9dbda8aab55c', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2080ffafdea54084bbaa897d36739751', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '74c0abaa832085ef68434c6b9224f1d5', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '24f1a969039fbc9cfbd480705ab7c361', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 1032612456) Fixture Delete (0.2ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2267072ef336f9c2f975e2834a4a6c78', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '77b97fa67a83081ec8e5037bc4e7a228', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f69a43917c692996dd312db5371acdc8', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ce72cd004f8dcdb4e99bbbb3288f26fe', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1cfa28729715bebf3854aed1dce9dd38', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '08af49edd86b2de8c42aff030c4c5b8d', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:38:37', '2015-02-17 23:38:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:38:37', '2015-02-17 23:38:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:38:37', '2015-02-17 23:38:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9205fcc3822b8f5a1682b87f8305b385', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a7ab32e9832c08ea84dbe9a5a1b0344b', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '10fe3a31685e3947967a6646814a8141', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '17a09f4036f6bcf4ce7a3733a0a3a8dd', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '86903f39cf461e7604aba734d2d874c1', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '78436347ea77069a2f4bb666315f40e9', '2015-02-17 23:38:37', '2015-02-17 23:38:37', 410780858)  (30.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:38:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:38:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:38:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:38:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:38:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:38:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '54ed9c5d7331574abef41cce525216a3', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1d495d824d8b8d2e605814ac74607f87', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '89fbb84cbb5693c8d2133d9140a76f20', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '58cb24ab28159f9f4d9df8c3d65cd424', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1e24c481eaedb1fd00bb078956a06675', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '91d1899edcd7bc0623a4302eb328b804', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e9a9d088e1222289ace2a9b042975c06', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4926dcea8eed7eb05799b6c3b3dc1f87', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2b1b75e7e3d7e331721f1f567668fd8e', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a90b3d197770ab92cdfeaf6e1c3ff6b7', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f12aab18d6bab3158a078d65bd4f9062', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7efb9da83d5470f2c61fdf8abfcafd38', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:39:14', '2015-02-17 23:39:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:39:14', '2015-02-17 23:39:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:39:14', '2015-02-17 23:39:14', 619379998) Fixture Delete (0.3ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4f9983744b322c73481063b17bbe4dcf', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8f0325fc6b8cdbeee565850d6694467f', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '96cf3e42d11dd7cdd0ed29f3ded0e3d9', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '40947bffd02c2d732195e58117465eef', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ae127f58679a2e34a688ba386f617c20', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9d2c9c2b88e9fbc13c599b3190c48e86', '2015-02-17 23:39:14', '2015-02-17 23:39:14', 410780858)  (29.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:39:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:39:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:39:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:39:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:39:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:39:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb7be713ca99b6a4fd52b67df00de146', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '727e88abf80f8bf9d0028c5622618e1d', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e5061bf9c1d28e05b2d63940dedcaa76', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cd40ce739ae094ed693f41e606e4cd32', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2516e29b6169d95a68c53f5d694708ab', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b41e06bc35c0b23991cac865d8456cf5', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '060edea03a4f5c1d47444e6658b0b415', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 261299535) Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bd95b496eaca266c3250280a59d71571', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c486ed19eaaa8c2bd0b006766058f238', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f59e0b1eaee5215ce620269bb0765f8d', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b4006b1856d411921e602d256b445e4b', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '39baa40881d3f4e79f396f7cdb974c4a', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:42:16', '2015-02-17 23:42:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:42:16', '2015-02-17 23:42:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:42:16', '2015-02-17 23:42:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6fb18f19ab4f8a89e96729a8ab870b5c', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2659274a2c71916f7c0d6089aa19a768', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2e11dca58aa07987db4cff81b30ef2a9', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3a849303780f2a8e8b4de69153077d4c', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd8ab608ab9fcfae98a57bbeb211503d5', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '54219b487da7dbf01beb56de17850e94', '2015-02-17 23:42:16', '2015-02-17 23:42:16', 410780858)  (27.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0004_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:42:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:42:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:42:16 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:42:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'de3d54fd85dd8e37d7bfc6cff3460e1b', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '26f89f69e8a1971140816e9cc92b4d44', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '229b46191934233617ec30c2086856f2', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7f67875090a37fb27f6d4549e45813d8', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '28092b783f780433f34c52e3f663b11d', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5b48ea2bd9883abff8e12f78dfba6647', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a2a864b34e942d240c87c6450354f77b', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c161979a957903ae9a1599f5a845088a', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f3e05afac80f5ba538aa372814f66d52', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0001d33f60550c3aed37a527b074e931', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ff609c457352d36cbc47cbe466493332', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0c16e5451d13cc6453fba0db5cd6ddb7', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:51:09', '2015-02-17 23:51:09', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:51:09', '2015-02-17 23:51:09', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:51:09', '2015-02-17 23:51:09', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e291c8e91057a95919add0b1deca5060', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'be8123dce6266f21740151374e4a266d', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9179227a4f7db01428c16407ac51b4b2', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '128c190fcbe36eb75115aa0bde16a586', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5f65fa56e2f73d72e438ee2492849a27', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0bb1ee108c59981d40c80c85307862bf', '2015-02-17 23:51:09', '2015-02-17 23:51:09', 410780858)  (13.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.2ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0004_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0005_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0006_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PbtTest: test_0007_CollectionProxy gives the singular or plural proxy name -------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:51:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:51:09 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:51:09 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:51:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:51:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:51:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9be10d9b24103d00dac25d61de67f499', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8ccdc37f9f035e65295897c7add00f47', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fbde7a09a1d2d50390c5f1326cf17f7e', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '944647486e0e8ef9b5eab872df9191a2', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 775134066) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4351a8694bdc4ffced3680654d650803', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b864c2dfa29c4bf388b1ebabf786f2e4', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4d52862e0fa6effc32068c1a2f437b6b', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 261299535) Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7640ab47ae95769872c8c6adc65dc205', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd640d3c9f80e51ab5ba7549f46367831', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2d97c9839ec6ba6e7d803e7ae15d9e78', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '08fe9707c5f4e5bba38bfaecfc0ee86b', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb3c835c5b202ba892f6c64029331024', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:53:15', '2015-02-17 23:53:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:53:15', '2015-02-17 23:53:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:53:15', '2015-02-17 23:53:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f3f168eedaf8a7ec73588e53e609a6ea', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '18f2be98dfa17eac493a3a9453a61192', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8aac98166fec89c9c4428b5fc4d916d0', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a46058c99b2aedfc95fc96b2ba22d621', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6d83fa0f887097b7c26f6007561e7a24', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9872b41c7ac9694720ac94898d954a04', '2015-02-17 23:53:15', '2015-02-17 23:53:15', 410780858)  (25.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0004_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0005_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0006_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0007_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:53:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:53:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:53:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:53:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:53:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:53:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '20b4ba81bb693a1ac6ab7312164b6ba9', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4578c886662641bc2f1ca4b9ef448f65', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '03574a656d17a6347b476a30a9a7d344', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7c208be3eb4533cebe3f7a5f61e7fedc', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8848c31e42f6a4e04323ef734fdcc33d', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '614459d6b81aa1d533b15c88b0ade500', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c487537f733b1cb4d94996faebc6e417', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0cc6e008c5419782397bcee85df9276f', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b7349900479db5b155dbfcf2be74ec3e', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '39f7a889e699f26d72df5372651aaecc', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5dad299f7d01ce39c0693e206364a8c0', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '909c4bc0b1bf34220bbb8e0925beda9d', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:54:04', '2015-02-17 23:54:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:54:04', '2015-02-17 23:54:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:54:04', '2015-02-17 23:54:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4aad5bf0033d7e91fad3e76a3db48084', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fea383cca520bfe11ec5d2a1110c7cef', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ea18e50cc7eafaa0555327eb46cfd3f0', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8366bd736d6fbb8c81d96b18c93c0ffb', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5b93b1133a32007dc08693ae94adb303', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9e1f43d15aebf12cdccb46283e65d0ba', '2015-02-17 23:54:04', '2015-02-17 23:54:04', 410780858)  (26.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0004_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0005_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0006_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0007_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:54:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:54:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:54:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:54:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:54:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:54:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '93f34e310f3cbf7f6c84ca8e2912619e', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6e1ae83406a01a40d1e1fac5f7f5a0e2', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f6d4a9c535bebb708e7e3cdb8d42f3c2', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fd92f67887ed43a16f5c5d2b92023329', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '86c94f78f31164022582c43d262b9981', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7b3790d134ca9f1b3b8d5b4cd654a714', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ca0defe4a5a4bb7c2557c449a044e53e', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '029037e85835ae2425dd8aeb9db24ded', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'be999165e24f8763e0406ff4e2550231', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f80f91c499a51bdebb3551683aa5c7cf', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '09a32089b3fc3b7325fa8c8e0c923e4c', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1a21773f9d2d4cb826db07d7b61501be', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:54:36', '2015-02-17 23:54:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:54:36', '2015-02-17 23:54:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:54:36', '2015-02-17 23:54:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fee1424f833262a854c7c3390b798ca9', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '406890efc84b9e4b0536b14218658f3f', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8cce42550fa29c6ce90b91d26f6c58d7', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cba79d01c6b9eb1ce3329de6ba74c9c6', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '532c426a43db744e09cf357010bca61d', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c6b5e8f167dc098c4a05a76ee968568d', '2015-02-17 23:54:36', '2015-02-17 23:54:36', 410780858)  (13.8ms) commit transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0004_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0005_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0006_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0007_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:54:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:54:36 UTC +00:00]] SQL (0.4ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:54:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:54:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:54:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:54:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c2accc41468d7b27d18b0c2114318ca3', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '83be36dbde711a1a181c3bd53c816e60', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd51bb634a598859e65ee8ab7e4aa7da2', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '286ca94a4077825c66d78c884fc1c5a0', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f7eb74a0b20a4fb4a52dbb13aa3da112', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd1e2567929153eaafe27ceeaf437665f', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8ae3e3c6143d7b5bc9c2767b9a254909', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '456b82ac266699b3cca6f3b11ce0164e', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6d9a1f70e2776c31cbfa1a0da5282cb9', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 966629572) Fixture Delete (0.3ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'baef8f2a00c9e86781fa9800ec92828e', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f55820a3c5200a946bd8df451f47838f', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1517ffc79a9ff836e59e809cefef598a', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:55:24', '2015-02-17 23:55:24', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:55:24', '2015-02-17 23:55:24', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:55:24', '2015-02-17 23:55:24', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0d307775954626e3d996eaa62fb8ef12', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '490e1d993691a0ae5e20af6ae4197819', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bba06ce11998bd7af6d8fc24a525db66', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fe821d360d97c9c24bf5f15785b564f4', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fff2bbcde2d6b53ac4ea14f01cf5cb74', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1cb19f32fc4ebda01ecd03fffe3eb12d', '2015-02-17 23:55:24', '2015-02-17 23:55:24', 410780858)  (15.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0004_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0005_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0006_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0007_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:55:24 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:55:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:55:24 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:55:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:55:24 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:55:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a77d499cb55c99b70d188074b9b06f39', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8abe1dd7f269c745929a95d22ea1397a', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '15ff83b29b93e9366c36a85a02964908', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8128328f1eb09b876b09d18ca21d5f85', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '612b8f4bf6882bc32be3f0585fa29ee5', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5bfb4b72db5fa8087a2e3066e8f7e39a', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6c65c22bde01f2d9222fb5f9ff480256', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a66ed4b2040effe7fe7bc0f39bea7845', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '552ced2a85de32e01a7fbd242dd78c1b', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4b27b8029a8db423eea5c0e701efbe17', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1ea08219729cdc8621d940e864cbd532', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ce46ff6018981f48f47fca46affdef83', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:57:39', '2015-02-17 23:57:39', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:57:39', '2015-02-17 23:57:39', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-17 23:57:39', '2015-02-17 23:57:39', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2a1b18b5585c2549709e2cfa49553afe', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2b17aba51113a22b805694af9b7ce494', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a579cf64a4460316d185834632af84fb', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c70be8bb98c4a8f26b0fd598c6d23983', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a12e12d94e9d828e699689eb607eff31', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2a5685630fef528e454afb10d0cc979d', '2015-02-17 23:57:39', '2015-02-17 23:57:39', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0004_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0005_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0006_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0007_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:57:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:57:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:57:39 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 17 Feb 2015 23:57:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 17 Feb 2015 23:57:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 17 Feb 2015 23:57:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '15b8d8231162ee42a0b5dcb56187da88', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '60646a2f3ef32173f936d64bb7c9bc80', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3066e2063eceb9b781f37b1467d24f40', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f21d9d502f8b4b35ba2489dfbb4dd8e5', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3cb9840b0486dd8be8b2ddea14ac535b', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '261e5d438d6720ef7f2ec739fde84789', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a3227143980c6c298bfc7764ba83fa2f', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd40db49e5cd22b0214b6abba6fc245e5', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '81869de72b2f9866fa40b6ba6bdc2388', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6069d7179c6b8f7205fad1c088e79194', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '79857ac8d062f7e09579782f92be1db3', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '86dfc69edae49af6c4f8528d6420b5cc', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:05:06', '2015-02-18 00:05:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:05:06', '2015-02-18 00:05:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:05:06', '2015-02-18 00:05:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5a67c67c3c800df4f10b3d9b0a59ffca', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bd0b08cfeef25f76df48ec02058ad45c', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6a92d6bf5202113720b17fec44e67c29', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8e4d6265142f716af6f84009ee7a136f', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '098357c2f0166c4454b533fc6b610590', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd6b3f33fa6c897b6f1b00b3654c0fbe1', '2015-02-18 00:05:06', '2015-02-18 00:05:06', 410780858)  (30.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0004_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0005_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0006_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0007_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:05:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 00:05:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:05:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 00:05:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:05:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 00:05:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0c592dd8c0e06fd9ad9702cc9dca035b', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b03c695b84f775ba66b9c5b2af0fc905', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1144d9a509cca2fe58e54064679a4e91', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4557a3f3b4341cd1785256e9bce2275b', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3057a1ab5d07d378b99b322e776415af', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b6ca1fe2d6907e93f3097c741aa3b2d9', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2c17f72661d9043c620a61eb0003d382', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '30523e87ff7d794e2c14cdfc6ad4cf69', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e93ca7de968794475ee073dc996b8ffa', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5868ec2531f561807c17b4f5d3a5a7fe', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0af27c537d37923ae4413482bc515edf', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fcab8c1fcbd40a6fb883b40be83fa31b', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:08:08', '2015-02-18 00:08:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:08:08', '2015-02-18 00:08:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:08:08', '2015-02-18 00:08:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f958440d4f005d14cccdc747c4a5f742', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f66d674f55a66495c6062c1f614a15d6', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5506f290d5f5ace7b9ae944845ad7801', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c635aa89d7b3aa7cabf3dfb5aaf337d6', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4028ec3d1e3a54fda95362d97fdbdd51', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '987af0fe97eff3f387d16eb96765da86', '2015-02-18 00:08:08', '2015-02-18 00:08:08', 410780858)  (17.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0004_IsReflected gives boolean if child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0005_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0006_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0008_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:08:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 00:08:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:08:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 00:08:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:08:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 00:08:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b3d7d93596f611812c96bd6985b15f94', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '83db56db82c26d0ccc9290045e6838a1', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cfd9e62c0fcaf4a4af422eaf7accdb3b', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bab677e59bd53a173d52930127892c0b', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eb2e1e69d4300ac2c24455eb290f7d7f', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b908303794497d05ffdb63c4759dace2', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f85d73f304944bc5d6a142e3c88d5d66', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fd7f324978d8abeb0fe90b2a6dc5671d', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9891c86d559b87b33638aa03f4b01474', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1dedefb1f2bbbac2d9ba52448f06afe9', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '55496310d3110809513b65d693403555', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bd15de0128b3092a8307dc96a8a790bc', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:11:44', '2015-02-18 00:11:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:11:44', '2015-02-18 00:11:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:11:44', '2015-02-18 00:11:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2475415a076ed2c2414147abd625e54e', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '966780c4cb07a019a023fcf931ca1da7', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dc3d38bff0bba740caadbfb22c1390ea', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '773979f910389f872846180750557d9e', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd648178b16c9647058353b114ada5dc5', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fd805d6b129ac71376b46c57199ecede', '2015-02-18 00:11:44', '2015-02-18 00:11:44', 410780858)  (31.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0004_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0005_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0006_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0008_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:11:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 00:11:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:11:44 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 00:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:11:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 00:11:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5ce9614a3deb50f33dea84122b30f291', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '13c6535083701e3039005ab9d3125051', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4d03d2a998c22dc1c83a8590639760d4', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '56e3788e4d58eff5fce6e2fa10289d5b', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cba0f738badb8252b8e5d3318a918351', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 971855462) Fixture Insert (3.5ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '669dc3691cb6a363e4d7e1637bb9e3a5', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f0ee0640e2029fea60dbcb063667db57', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6d6464cff92b6b17e2a1b483f4e30df0', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '63b5d7a51f786ae0dd14ad4ad026be20', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1ea42758e3877e01205ef099f3cc3b4c', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0f196e4f0af638de9679c4e52e412213', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f42fc0fc340cbf6302368bbc01bc1553', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:12:52', '2015-02-18 00:12:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:12:52', '2015-02-18 00:12:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:12:52', '2015-02-18 00:12:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '881a4c2893a7d8f0792b716843a99da3', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '44b20c1ab3a8257c87068a3e59fa2a42', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd49804a3be68cb3a350ff2087deeed52', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1e30f78ab6744cdb263fb11ed02595e8', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c0caad6206db16fbf181d7ad001f68e8', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a776a9b0f05f6cf80ffbda6360da746e', '2015-02-18 00:12:52', '2015-02-18 00:12:52', 410780858)  (27.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0004_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0005_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0006_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0008_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:12:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 00:12:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:12:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 00:12:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:12:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 00:12:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '943284abdc9743d3b0a834668f8ce032', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '733614902e2e05054204850fc60112cc', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c32808382c1cf87ad8afa03b7e19e311', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '44689d82e4d193914bbfcc400e1771b7', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb1a4cdbd0e0a7ccfb17907cbc4ec3c9', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b8224d29e2cc0d5ee12d46c52e8405dc', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3a0df28bf09348b37093669076e7841b', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ffe64634e25525d0d3db123ec7496d88', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b7cc8573cb815f6b42d40129cd49bcef', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0eac9c42a9d85aaac59a0180af9d91e0', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '03dec6371125655b7e14b06b4fc9fda3', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '135172c45622cb18b2f19656a6d54ae3', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:13:46', '2015-02-18 00:13:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:13:46', '2015-02-18 00:13:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:13:46', '2015-02-18 00:13:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '90661fc4d1778c471eb5e795af1bac7a', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '434a0fc61772ec5d9b7e4e2eba545292', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b377f82051a6dbdd5699fb8d6721e827', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6dc2a921bfcd4bf81c01bee6ffc244d9', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8768357775a9e6232bca5094b48f326c', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c7eb327979286efa45bcab6f0780c45f', '2015-02-18 00:13:46', '2015-02-18 00:13:46', 410780858)  (13.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0004_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0005_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0006_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0008_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:13:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 00:13:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:13:46 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 00:13:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:13:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 00:13:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4c293dd5316e843e1edab2c6cc686c08', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8154b6980b09e5a0006cd1fc38517040', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a9e5e274e5465f14416f1f8a356bf98', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c422c8cc1d3ce687a280cabbc13b6905', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f538f7edf7233345cefdbe2b52c4e849', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '583187b713784cd0b8070b06927c178a', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7bee0eceb77fbdd49c841d8c34246498', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '21baefb204167bc1f5f0af8072f6a667', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f3ae5de02fdd03d385ee2b26855e20c8', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '667cf55710c681f79540e89728872101', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b0b8a592f8633a1cb7dd0e379459d7f7', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ebe4cfd06f5952553c2a57b172a259e9', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:50:34', '2015-02-18 00:50:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:50:34', '2015-02-18 00:50:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 00:50:34', '2015-02-18 00:50:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b2a0b3b388ac040e7ce38e756618a684', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fd70579530e8f9cdd152974ef027c2e2', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '631c699705b76832ef8a326c8eb8ef34', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '879d97c043ce587f1501617c02f2482b', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1d8ebc5afb7dc69dfe68818a216b1e20', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '871cc806f83b1616cbca707926f6407e', '2015-02-18 00:50:34', '2015-02-18 00:50:34', 410780858)  (24.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0004_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0005_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0006_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0008_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:50:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 00:50:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:50:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 00:50:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 00:50:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 00:50:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8b904becd405840fd0962e8cd52c9488', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '202d63aed11f8a223c353a25f84b9125', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f5be985bd80750421d05deefd0af30e', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3949e9424d022b33996200f1bbcbceaa', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0c9fa1fa449a7e9f960b6032a206e885', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8d53cba5e471e53ee4b05b9d30c9ee3f', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4a8282932dbd7c118b8db0f0d6598458', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4b611fcbeda264614117c94da4694270', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c54e00c7b6a2e083b8a926de19069e2f', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c86775891bcc2eb1033ef1b8c0cf94b3', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fdf9c427ddc0f6bb29c3c0be4060d64d', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '25f4038e0a244d6bd565c7c2645dd45c', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:02:01', '2015-02-18 01:02:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:02:01', '2015-02-18 01:02:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:02:01', '2015-02-18 01:02:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bc7f31fcd59897c04b572f6abf7531f8', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f111c3a8a36b6c8548eacde9bb03ae14', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '81f46629c1ffa8825cb1396093c1dd47', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7e6b9425e9efb758fdeec71259163a20', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9a3dfd0951d8c54c579deda9ad9fc721', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '900f94a6825f957ce44743c70c4e0a5a', '2015-02-18 01:02:01', '2015-02-18 01:02:01', 410780858)  (25.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:02:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:02:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:02:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:02:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:02:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:02:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd0f850da20cede9d717cdcb9689a4503', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f8744285c68c84e089f8363f0dcc8b1', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7ade9cc682d1a81a2a7abd0da783667a', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55aa7d64cdfff52ba102b99d7659796d', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '665ef9f67fedc6e3020b7434d0497a55', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1cea7d87fb30f573458747d73abf987d', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ae08eabb505a764ec413105b59368d44', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bd79f2418453aeac2f1a42c3a0ce36e8', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '11cfb0b3dc90100389ed423ed6cb5f3a', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3e9c2a08148fc76ade45f623a5d6b175', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6ed9c8df7661b7d7f8dc6d2d6cf7dbe3', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8b8678c14ca8f86081c7240142bdf720', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:02:51', '2015-02-18 01:02:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:02:51', '2015-02-18 01:02:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:02:51', '2015-02-18 01:02:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0cd61399a92091be9ce02a5f39694e64', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '92acf4aa631af8dd4647a09caacabae4', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7e6cc718fc39550b85aed2eb1fb6b0df', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1c871e6bf0b011f0b978ea1b96d8aaeb', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd56eab17e6d4ebcbd91ac1ad3c30e277', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cc3be0361e8bde43c0e6b9f20e4faed1', '2015-02-18 01:02:51', '2015-02-18 01:02:51', 410780858)  (14.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:02:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:02:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:02:51 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:02:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:02:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:02:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '794f441a33720a9f5032f49c4e685955', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '60a4e5df0ec50470d860a6eea67e7f39', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b23c056c313d9f00042061be73789fa1', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '82e0d1028fa7a874c523a3828904730c', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2d63cfffa9de7430eaa1638b123b4833', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6f8dfb929011568fa1b13f5a9fa4a0a7', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e1d82f04d2621820465e790d2e89d531', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '65db52059481f4b1bc79323b2540e327', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '893afb86db806849caf0119cb1fbb395', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c33eb66cf97294d6a2990beb671e57d7', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f3f3a68ca93c429a27b17b97a67488a', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd96200292dd5ac22afd18b187a4d22a7', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:04:04', '2015-02-18 01:04:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:04:04', '2015-02-18 01:04:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:04:04', '2015-02-18 01:04:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bd33074004854328b064a8b89e22cc5c', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '68601dc494497817345f512b31295813', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8f69626f05e95109c7bda82511fe3f97', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7f9a88a3b33a8ee161fc1659fa602ebd', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4b393f3fa3e775fe6ea6a27b44aaea0b', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5b7fec7ace4234e9c35c12befebde7c8', '2015-02-18 01:04:04', '2015-02-18 01:04:04', 410780858)  (14.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:04:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:04:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:04:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:04:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:04:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:04:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aa240ff05eb04c540208b721559e2357', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ac3da25fa5894ea3731327ef3ecc9cb6', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dca9aaa357d95e72fe07fdd43d9078e0', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6e0752ed33e6493bede09c6ae7d3183a', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6df8471c62f36473486d2ec2847dcb84', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '71f11ed23d826e8d8db2cbefc8a253f1', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7bbb91fac12fca6643cb7044a3431952', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e636fc8bce7d7ced34178b31934ca62c', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '659f89b85e377f1daefc0bcbe56ccc0b', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '539258ca7d78a24c96aa6a1d8ad107bc', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '649dee25584aafbd68e1e8fc559c9eb9', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '892d664e447baf5da1bde3a852412beb', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:04:25', '2015-02-18 01:04:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:04:25', '2015-02-18 01:04:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:04:25', '2015-02-18 01:04:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b860746fc06e0c5b1f1f86625946660c', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a8bfe81444e702fe4fbf229b9acb6786', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e0809d77c41be5f7c4722a44236b173a', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '33e37ebe03d690c82f1158cd09de97b1', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4c643f09d748c3d9a6f5a3de0b6cb118', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fb89305973064ce308aad035a8e81f60', '2015-02-18 01:04:25', '2015-02-18 01:04:25', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:04:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:04:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:04:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:04:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:04:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:04:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '67855efc33b7bdad2cd64a24a3163650', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dca27c399393ea165ff1199a23fdfe49', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '64613d06a1c556de36dc9efcc5a5cc93', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2a23b25fc3a87e5dc9cf8efcaa85b847', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0742c59cda36adf169936b4d68c6340b', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5e52905ec1fb065e138f2719f8e4dbf3', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '698b603c651e1a91897250386928d68b', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '28a1928a6c993ac370ac66e69efe8061', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2cd2a8993d31c89f87e81c771d6efaec', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e2cecfbb92687bc93d0bcdd090d937ac', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ba7da94377b7333f9b07106f6a57a803', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ac5d5e8eed0f9dea9dabf39f4dc048b4', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:09:24', '2015-02-18 01:09:24', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:09:24', '2015-02-18 01:09:24', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:09:24', '2015-02-18 01:09:24', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2c3f718cdc2687263bfeafa6d471528b', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '693474e70eb27f847292fecc7173eaa9', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '32abcf273f5211456fa3671c9e664a86', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f19e719e7bdb8a8d4e9bfe435a16bde3', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a564ca2db0f3b67e08a3b1df0bcd5efe', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '10cb65e48fbf8ebde6dc9214122860d3', '2015-02-18 01:09:24', '2015-02-18 01:09:24', 410780858)  (14.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:09:24 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:09:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:09:24 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:09:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:09:24 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:09:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '80e29aee08198c4ef46c53d6d43f1898', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eb96cc8c1442067f23dc02b51650a2bf', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4c1a8ea8b185453100f861adcbbc2fd9', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dff5fcbc535cdb5860e9401689292af4', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '793f68524ff169c76f1d67e104da6781', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4443771ccb913d8e59739257eaea4679', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'aebbf4a022e22ab792fe6230edce78df', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '70880befdac4f8bd75a913a9f5156ba0', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3e7f2b39c21bb570c65e203f21c4fa99', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4a77297a4269883c00562fbb8904e9f7', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '370be15209e00343280b3ad0e91258f9', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6b2c75b3fd890eef1c94d201a24bfa1a', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:10:38', '2015-02-18 01:10:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:10:38', '2015-02-18 01:10:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:10:38', '2015-02-18 01:10:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ac3f9f8f7d35d2bec1f03ecfb38473a5', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '55b69d2239007be069fb1ab37023bd1d', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9d4df17d2bfdb47ac34a240979ff0d9d', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '312ee764b32ae416f3e317c156d357fd', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9a9c090df6f7b073725fdca16ad2080d', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ce94b345df7ea94d7e2d4a918b5ead8f', '2015-02-18 01:10:38', '2015-02-18 01:10:38', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:10:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:10:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:10:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:10:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:10:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:10:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '87f1c1bd74d7f64fe668bb50d778183d', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dea6bce6f6db735851d2461167be4fb2', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0c46e1209b8972963344e7daa9871c8f', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e1ff2be1707031dd563a0d3090e6795f', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b1fe2912ca958a2869268a4d5267cdf3', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd0f14d55de2c9fd3e36eebfc87479156', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5580f61e61497ef3d8aac16b271716bd', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b385bd00bd5f308378227fcbc7ba620e', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ee44ef35d35da9dea9a2d07e5049d540', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '452a7b874a9ad74fbb1a4b3c6b0de70c', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6fbaa122e85ed1fe8140ab113d3b1231', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '39d28c001af8fe2b16cd8d347a2f6787', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:11:03', '2015-02-18 01:11:03', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:11:03', '2015-02-18 01:11:03', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:11:03', '2015-02-18 01:11:03', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2256c796c8b12f6b015d9f85c51da0a5', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 884173432) Fixture Insert (0.3ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5e556c3ce3c70f0274ad9b805d322868', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dcd12f5158d4cd53099071e353bcb172', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8d4f247feb5f4a20381cd256edb3ee0a', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '507fc91c9b70bad79fe8c439cfb30188', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8dda5c2d7b78b18db983c1cf28f18b11', '2015-02-18 01:11:03', '2015-02-18 01:11:03', 410780858)  (14.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:11:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:11:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:11:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:11:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:11:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:11:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6e6444a4e6b2ad0ce5c68d348797cb34', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ca7517cbdd6070d174a78bdc9a8ab29d', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd10973af6b33f6c857097a5e6793948c', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '113f8388b2bbac461b26ad64492b2bb3', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2f54fee9f4bde529324ce22f63c8fd08', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '70326f3e3afed1166693ecfbca3ee5e3', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9cac640566da539857dc4175ed310995', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b423aa407edaea5af1b578c92da22a67', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a715f4d5b468ffd9e4eb8348c43d7f61', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '00d26e62559285934a64f7091271265b', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fa19294da9f337092c78b3463ef2be85', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb80958cf1a7b8ec37a90e4e282fea81', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:14:04', '2015-02-18 01:14:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:14:04', '2015-02-18 01:14:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:14:04', '2015-02-18 01:14:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c61a56038784e697acf83e9ca66b2a87', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3e62472e5cf3a19650598d5e6c18efef', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '100329a800284a6b832ea4197bbfdc98', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8f694b6a1942203bcacfb30a3d52eab8', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd9d6831e4331f0f2501ce469f12947e2', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c4b6bb3ea79b96c59624ea78e7c30681', '2015-02-18 01:14:04', '2015-02-18 01:14:04', 410780858)  (13.8ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:14:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:14:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:14:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:14:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:14:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:14:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7aa9425508a3d762cd351f36b623fcd9', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '506b2b48a73e369d8f0cc4c9a7081887', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fca6847f602a777d751b40e1d38e23ee', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75ab8e78de75577c25f5cacec502daff', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '58b2d8494b27977f5cf529dd3ba7eb42', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5317a6c2564c3b84b7b30b9065110649', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a9d664be719a0d610cc4d5daf412d545', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cea978e1b2929d7b9949f9305057264b', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e55207407e46972e33d85d610151925f', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4da3c52093fc448576981e97198d2aa8', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ed5249ce20cea0883f2ee39b99c5b6c2', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b672ed5d871e2a26b37c27211677293', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:14:28', '2015-02-18 01:14:28', 902541635) Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:14:28', '2015-02-18 01:14:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:14:28', '2015-02-18 01:14:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e4632f4f57375a9d9ce63a988b705b4b', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '949de27d01c8deb6c977cf3f3fb54039', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 1035759634) Fixture Insert (0.3ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e22d9c60255773b3f191b26b800ce7c6', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '601ed7ed987723c607b10b966c8c88f8', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b8d2f8759e831bd29a366a8627d11343', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 970698464) Fixture Insert (0.4ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fb6257c2a746c8b5882b89049d36f377', '2015-02-18 01:14:28', '2015-02-18 01:14:28', 410780858)  (33.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:14:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:14:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:14:28 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:14:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:14:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:14:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ee0f080724468f98053b983e122f7476', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '85120615548a4808e3f33b5a78ef4391', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '58c459873a2bd0a4c2bcfc7742184b34', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a8aa6eecc25331358a5cfa52098ce183', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8fa929167e11643abb52a8baf91ead83', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fd176859a6d4ee296a6de550693435d0', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fe46eaa6d0c6308bafb4100c31e289cb', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '41b1141226c9e33051bf9c01eca0af55', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '93a4d952ddfb4ffdd52b655821a0605b', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c4b2a98f75755b2585db8a1067322747', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '35d7fbd429dafdae670ee7bd4ef2ddfe', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 689259936) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0516056c6a92e4c10c458baa59d77828', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:16:03', '2015-02-18 01:16:03', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:16:03', '2015-02-18 01:16:03', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:16:03', '2015-02-18 01:16:03', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a90bddefc8a00aad307bc4bbbbc4272b', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '533dd6afb000bcfec53a4096a4c0329f', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b30a0f02377345157e4bde922fd679b1', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0d41dba6d27a43a30fee8ab1a1c0c15a', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c8b2fa8b71b29ee179bb6c66e2b86401', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b05d49cc55399d8fcedf651822e6dd7e', '2015-02-18 01:16:03', '2015-02-18 01:16:03', 410780858)  (14.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:16:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:16:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:16:03 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:16:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:16:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:16:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '95c0b0ba5bde166f1bb2b67ca86dd6a8', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '286c5c26d1882591134e756bfe1c3c04', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '798dee4ebd07557f2beedd260d7abb3c', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a232a665081a0ae42c899641d1c266ed', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '65e450c28e1ca77251afc0bbf8a4231e', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e7a316e7072af97017e5c3d51cda75b1', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '08eb76c0cc43df80eeacd5ac8a6b793b', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd83a2e0c32f5d5f9647dd96934985ca3', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ff358cc31a696858beafe371a758cd5c', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9d5276aa44deac5d0be51dc9411e6b26', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '67435e4fab321d8a92b464e9778e8fce', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f1cabc125a9728c9696beb97e3a7d813', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:16:31', '2015-02-18 01:16:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:16:31', '2015-02-18 01:16:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:16:31', '2015-02-18 01:16:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fa28a9afe02a9ba52de71bfc149bffc1', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'dfbe0ae47665f65be337c57bd9a2a6dd', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7633c21257d1fc05722ca1e0884c53df', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'abfff6327ccc132b721315075f6dbe92', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e24a9bde5cf11d6dd913677ae423865d', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b993dbcd14a2878a3cbab5d897aec2e6', '2015-02-18 01:16:31', '2015-02-18 01:16:31', 410780858)  (15.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.5ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:16:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:16:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:16:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:16:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:16:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:16:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0df58fdc7978d36513de4588a221b44f', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee4b4b26785ea47a7e4c27f3e0fa6738', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd1a74114a464a03efb60da8d775a34db', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6652e4dba4b202af94e1e4e631d4f253', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '40cd5eb62b24ebd4ba7b4bd84954dcf0', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb9e72b8b9046854f64ccd2ac589202d', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0df614eb7218989cf9e169bbeb09e5de', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fa3bf6aae45368bdc526de0df9ec30c8', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0afc31b1cb10c4add3d9ee340ff5e156', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b4b01df85faf34e329f3992d969f445b', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '04ed51690ea70f900cb4cb4778deab7c', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '38ae06fa730eb2323d885079f33fcf7f', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:17:32', '2015-02-18 01:17:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:17:32', '2015-02-18 01:17:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:17:32', '2015-02-18 01:17:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a6d8cc200c1386fe918b3d7d3c4e7160', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '998b8e8f40b738ef462edf05da8d7fc2', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '14155e542f5669a39fc2551da6fc221b', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ef315119073481fee3b413c82337bc1d', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '651a8f14053eb150fa118013c9d52a03', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bcb115b4cbce82fdb4425ebab804acaf', '2015-02-18 01:17:32', '2015-02-18 01:17:32', 410780858)  (14.5ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:17:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:17:32 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:17:32 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:17:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:17:33 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:17:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3a8aa1c463f60cc1076bc04342e8f1ec', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a21abefa3c9fdb88d6f08ba5fcaadea6', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4188048672260ad92a7be1745b960f99', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0520070d68e1715bfd72b274a6ea07cc', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7da46f72f69afad53f82e84ae77ec265', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f52c983f8c761aaedd52635c3b72349c', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f01fcc05a3c969c4b3e1c91f31b37c78', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f093e310290a3f3935677a67cd6199ee', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '536ed740b9ddb16f44d59a682c663f50', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '40741ff628f6ca88e70afc134d265a54', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 1053526200) Fixture Insert (0.4ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e09701d713223e339161704dfd8b80cb', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b31144a838dfc3355654431c31f8fc33', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:18:06', '2015-02-18 01:18:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:18:06', '2015-02-18 01:18:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:18:06', '2015-02-18 01:18:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '68bdef07ecc1f10cd22ffdff69fa0932', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3a80819304c31923c162eadd633d16a2', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '954aca26c67c3f584bd09d5d5466a9bc', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4c97d1a1636cda7cb5b4784c7e3a2719', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '49984da890df2893d2c3212ec2125fb5', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a77b0e924f657fdc050c67ee32c3af87', '2015-02-18 01:18:06', '2015-02-18 01:18:06', 410780858)  (27.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:18:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:18:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:18:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:18:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:18:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:18:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '471ec3dcee93160a4758dfe4f43cb84d', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f9104cd955071f404a92939f99ad89f2', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a1d74cc2baed6411a80c9b4f8b910f11', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd2def65141f4f5bcbf1fa76718386e36', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f308ac937c8638f6643f009040d09125', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '893ec5a2895e08c87ee509cff5d7c8c4', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4af585c16503fbe74d02cdd727f9f6aa', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b17f11adb0606da9115be943936df4c7', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '54466bd5805a812905ebe99f54e45664', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c60d8bbbfc9a68482f6afd3048a4fd55', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1df71963b6c8cb9cf9ed953b10b5fa18', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f200e02fd2c2b118c2c03aa02b08c115', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:18:45', '2015-02-18 01:18:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:18:45', '2015-02-18 01:18:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:18:45', '2015-02-18 01:18:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '79d549e85e390cdce998a96e9692b0ce', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '54764715ca7549a717c18d5d2570b55a', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '919714c77a6fae864b8a67aefd0cdb4a', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '59e9a86a963acd4559853bc992e23bae', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7eddb42653fc5e55fd4e99511eeb1e30', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bf21e85800b649c20df685b6fac0d447', '2015-02-18 01:18:45', '2015-02-18 01:18:45', 410780858)  (26.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:18:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:18:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:18:45 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:18:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:18:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:18:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5284376b7a7baafdb1ed823a141a635d', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '32dd9671f582d123a3e74a5461823c99', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f938a0d21b8eb5a7bfef6092dd0a10a', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3fbe0a0bcbaf8488f2c47ad5242c6220', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '003383d5a58859bef018117a3bbfc176', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dc840e1c3225292b22c44f898cbec866', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3b2c6c092e9ccab200ae7078c3a88e69', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 261299535) Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '64606d9841f3d83c3056a96da54a124a', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a37100f9a74a0e3c0b287b515a3ed2de', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a008cca8e34f28fcaec306d742e30cf5', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '52593b952f318aead7bd0d568b54fa5e', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '10e331e2f1f10966776b650922bd6be3', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:19:08', '2015-02-18 01:19:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:19:08', '2015-02-18 01:19:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:19:08', '2015-02-18 01:19:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bb68d030941a63ae992f00a62e37d1fd', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6ed6e62242f89cfe8de145947abecfb4', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2dc42ccab779bae3495c54068ced51a3', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'abba30a2cbe59b4d323869626ddb3e1a', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '69ba86c70e213bd6deb7bc1919783630', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'db7eb87822ab7ece27dff63bed3ebc2d', '2015-02-18 01:19:08', '2015-02-18 01:19:08', 410780858)  (27.6ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:19:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:19:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:19:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:19:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:19:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:19:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '374412760f0911c8c0f6d986486c77c7', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '82f317b276a2721e61c71f111c1aecc1', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '18f0f0660a9d5cc55d7bf7be70ac53be', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f15dfe57922a4463cf6185d6eeaaf888', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f85ccdd535022edcbd9b88e6c32711c5', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2d25b7a0f8b7d631c2d11d83daebff6e', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '854fd0f0c68efb7f2eeb104fd322296f', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f0faa8d13dbf127327670007974787e9', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b35b28bbbf4d60a90dbb4067a2400d03', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.4ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '450c730ae3bcad0af678655b0225a8a2', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ce60d1312d921cbe547dcbaec531b9d5', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '97e6a7661c345cb908a0fc221bea7060', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:22:00', '2015-02-18 01:22:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:22:00', '2015-02-18 01:22:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:22:00', '2015-02-18 01:22:00', 619379998) Fixture Delete (0.3ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '97375c1edaec78fad42ec5f51a510d5a', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '70225d459d859321b736f3cadc5c1473', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2a2af12e3856377ee813505b07a108c5', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5ef32f0fd9008468ff87cf7a1e998bb0', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cc5af405bb9073edcfe531b3182aa284', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd7bd30760230d41b12f17aa6c45b8fac', '2015-02-18 01:22:00', '2015-02-18 01:22:00', 410780858)  (17.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:22:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:22:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:22:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:22:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:22:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:22:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f24df6dab0b55147dc57c41e65d0e3e8', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4b2d7f187e1ab6dd1332cf584692bbda', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '54ae8e7b1cfaa4bb6b2609f41e016f45', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '938d4810148e8cfce23a4f9175fa9f29', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c41dc37bd2a208a3978e12cb67121bbc', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f17fc6851b9449a67b955ee9b44d8f1c', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2f1d2d4324deabae2d52162da3c78f63', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9b6322b703bce69c0292e5a9d7580527', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd316a5193fbf8381922f3f9519b7fe03', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2452209c0dd459a4274b41913515e044', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e03a611b49b72f44a4d2d6de18311b74', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ef384544726617ccd0529ca8cf447c6a', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:23:04', '2015-02-18 01:23:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:23:04', '2015-02-18 01:23:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:23:04', '2015-02-18 01:23:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd5c282f80af2ecf90b104ce85214dbae', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9d1f811f17babd7430bab58959d99a69', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7f9764f8c6213918d7c1bbd76780223c', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9e1520ffc679f1929b78b3bd934b6902', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'eb8855fbc19a2743847a77c0ce7bbd5d', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2577f2db79ecbc00d72590b61b88b8fe', '2015-02-18 01:23:04', '2015-02-18 01:23:04', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:23:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:23:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:23:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:23:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:23:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:23:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "addresses" Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6c6dfa33ad8a15033eee106d22e9fdb2', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '04745807e1e63c88644e11f48e07b5e3', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '333cd3d6a4f24a53619d3e6be3e21325', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd7a797fc161720aa0ac4e5b1487b52b9', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a3ce4b53297d17c11cf84d25a2310286', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bb2e391975c201267ceade2b0beb9d50', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a43eb931af03687f285a3fc561ffddec', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 261299535) Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2559469adaed4c9a488d73ae1fd9bc5f', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b0830202767eaa5eea93737cd95b71aa', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a7823bf11a91c4906167d18edf52f4f6', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ca10a7fd0151cce48f3a0920eb2699b8', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a4f15dbe1d6046aa824c1d46d9b6b01c', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:23:36', '2015-02-18 01:23:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:23:36', '2015-02-18 01:23:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:23:36', '2015-02-18 01:23:36', 619379998) Fixture Delete (0.4ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c461666804b254dc2cd316cc2c452747', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4b3f950326d7234854196d82937abcfd', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '61b7b14a04b827949bb575ff1b0ead98', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bffd350330048ff90db7965237fa56a7', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '465576fb3807de888ca360a69429f184', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '57bdb5bba6fafd77ebdbf4187ae5b6ac', '2015-02-18 01:23:36', '2015-02-18 01:23:36', 410780858)  (26.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:23:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:23:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:23:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:23:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:23:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:23:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0f9c6b3da62cbad2a0ea1d8210b61b91', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5225f72e9a40979682b4de51fe72d55e', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b9b9799c95a678db390fef13182a1248', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8bf600bbfdc3b93b9dbba2c6babcbc63', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1ac3a33c0317bf508f6c288acd97616e', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6934c1c9605515867da3cc4e9bee88a5', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4fed98a7474783c0b03091c50b8943cd', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f2f0897a09a1e34da78cf81fd153b71b', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3605c3a9029fabe204f54ce8afa51a90', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '456cacacc98c3e613c3b8ab1301144e3', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bd24f41b2c207fc39ba2735ca9e0e38b', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 689259936) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e845fa00231b6a0e6415aa9258339279', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:24:12', '2015-02-18 01:24:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:24:12', '2015-02-18 01:24:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:24:12', '2015-02-18 01:24:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'da9ec98910abc88b37d9bea3a541995d', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f1d21bdace9d7ad985599565bd896249', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '555a7ed99990d8d162bb2822c210488e', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '36079b0d2d29f68c0416e90095b29f8d', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 819246218) Fixture Insert (0.3ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cd8504bb8dc1d6bd050ca235514a7a10', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f0702cf4b4939570193366fc6a1aa25d', '2015-02-18 01:24:12', '2015-02-18 01:24:12', 410780858)  (14.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:24:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:24:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:24:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:24:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:24:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:24:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8b07192649831df12fe16f13c9073989', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8333b6f217746c20a90cf321ad81b132', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 1057142427) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '879dbb876143b9fc121dad3bd5014533', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a159039dc11e453ae4b028bd466a30a2', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '66d3a540aaa2b036038c7a1d46eb7d64', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0401a09c2ad4da4524b3d70ceb21c0dc', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 1032612456) Fixture Delete (0.3ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '67c6a9ddc9ae2124f6a3f22d241424d1', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9000e6d41b17d28601d7105f836d1453', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7ddef50bc76ce165da27615d4cc1e3c1', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a5d59c5d20b5ba6769bddf74da002252', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0f076ac55cf1be63778230aaa3d5db95', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1b44a4595d454b37a1d4c3ca9b607363', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:35:15', '2015-02-18 01:35:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:35:15', '2015-02-18 01:35:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:35:15', '2015-02-18 01:35:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ef723457903b9c7f19fbf2c841ec3822', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0852f773d6c9ee33b0e46be2585f8e01', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dd00254e7b550c1a0c381a0b3d1fecb7', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a5072086034d52518f3730f1fd668ea0', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '86a922673441ba4b7572012060b740bd', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '975a19b3ebb4b5c09ed101c5e62d76bf', '2015-02-18 01:35:15', '2015-02-18 01:35:15', 410780858)  (12.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:35:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:35:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:35:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:35:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:35:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:35:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a7dd5d71ef2c09da350d58d74aa09c52', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f31968b6300a3233325f227b4345add8', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f15fb1ef120b95fa5e943f98e1d54a8e', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c537003cfad34b69e7c3c67425a2b6b9', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a8a7b90c90a81f01941f3afd16af7fe1', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 971855462) Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '628be2b7c7e94bcb67c7dab9b30784b1', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3d95c7e53461e161b02d8c443ec38de4', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2d243b5eee09b281187f5729224b38b1', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 478996145) Fixture Insert (0.4ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'bea522922ca081ac32ff599b9c35737f', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '43abc38aeea4459e5ab3e8abafb8494d', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '23ab404fdf587185a14c99a8617e8ca1', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0b78bc319b5077469636792160d54145', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:55:09', '2015-02-18 01:55:09', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:55:09', '2015-02-18 01:55:09', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 01:55:09', '2015-02-18 01:55:09', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1e7a885ea706b31ca9e8e3a061829cf6', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '50325c6a84bd687ec5e49f38c7e94864', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cb5682b5845d226cc9be7793bd3c2c75', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3e9c8a175774dc7e3c2204b8eb2d7132', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7b0e86da4bf0ff797dac33b8ddbe31b5', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6fd8708a68623032dd71e598d56e54d5', '2015-02-18 01:55:09', '2015-02-18 01:55:09', 410780858)  (12.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:55:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:55:09 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:55:09 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 01:55:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 01:55:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 01:55:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'af45a4a5eec6234ab50efcf3a1d7f0f1', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aaac1833425170b97ee30e3cca633012', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f30093b11239938c97c6bf0901f3602c', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '65bd45a40c609f0c15dc7147e058e401', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9bcf172f68a37f266aaefab7298150d9', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '03d3674b231ffd0631fc0d3dcd50501a', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '28af0bb6de3c8e671bb8c2f0b34453aa', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7f7ed4537ef013a13c462b0295f1465a', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '152307a28f066e706ba3d754684a0711', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5346b32b023f7d43b281a92c36015b5d', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb0ba6958d58407f6850b8903234d4f1', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ba5a21c9c46a80ce9e3234235a6cc190', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:00:34', '2015-02-18 02:00:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:00:34', '2015-02-18 02:00:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:00:34', '2015-02-18 02:00:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '81831538959711b673f44820c8c6b3f4', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd660c9915fa545337b783f855f7b24d0', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '76cf73e3036e62b71fb57636329e832f', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '67161c7b0c2329c967c5704f9feca13e', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4d5bbafce6456e74a3f307b9977c1478', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '25c555d6e5d7d8e02294eeee529db6d4', '2015-02-18 02:00:34', '2015-02-18 02:00:34', 410780858)  (30.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:00:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:00:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:00:35 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:00:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:00:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:00:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0cccb6d2c33163360d6dae8b09b43bfd', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 761411935) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2b5a4173194767cc49ead94334c0b474', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '681b54f6fd50d37e1ca964fdea277735', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a5e91972d240825791725bdee3da17f7', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bfcffcc556845c23b4da502cc936ffcf', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9fb5b132528924dd3310d3c9694bb3ca', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'da40f58fdd3b74a8a612c6e082e3e4c9', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b7fb883976751ac1612dfe9e8b437022', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0468098ff48154dfdb04fbcc837a65f9', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '58f325d2dcf28494e75684a5c1b6a254', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '671914106160c715c5e16317975d117c', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '52d7871d3c400e546e60365bc8829f4f', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:08:18', '2015-02-18 02:08:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:08:18', '2015-02-18 02:08:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:08:18', '2015-02-18 02:08:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a9d7a38070e6e3a14377942661a7f16f', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e8d53de7920219aa86f13ba754a936f1', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cbc11c426648539e4c8fdc38249ea8b3', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '81727a29fb04e9d62d67318a02de9b56', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '94c0b4e42b378b07bf70dd99f87714ec', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'de1c5b76c93a07d68b7fdafd49f72cca', '2015-02-18 02:08:18', '2015-02-18 02:08:18', 410780858)  (21.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:08:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:08:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:08:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:08:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:08:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:08:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4f1d17e0584da190e885c60421e165f6', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b1a478b7cc2d0fa0cc51b073c993ad5b', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '06d95fdef697a5899871bb6b099fd614', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e93c8160f0c4aeeb2e18ad601387cf4e', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5377606168551fe72de01987129ac1b7', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '944598e95c8fa17836792e81c1e540bf', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '86c8ddc083ed44c4a720c14bd7a7f7ef', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6f7d6d748ba6c255d66a268951e31f2c', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '282de6275bea073c48da7d7918640f12', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd3be9c64439b5beb174f42eca3f39e5d', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0e990dfc8f2658a811b008b1810b16f1', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '336e8484481b77a44b47f71a6f647892', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:09:06', '2015-02-18 02:09:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:09:06', '2015-02-18 02:09:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:09:06', '2015-02-18 02:09:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1c7bac321007904b04d8eae73d0452f8', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '976a2b002ea1d4e7b9fe326958740691', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5d40121e21c403ecbf41d8b23c95330c', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e05d89dc893ab35f7a8e7d2b06f2b492', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a0a89fd67e9ff58299a5531506d273cf', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7f63220ca7796e3f3ed1c9b9acca1e7e', '2015-02-18 02:09:06', '2015-02-18 02:09:06', 410780858)  (18.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:09:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:09:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:09:07 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:09:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:09:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:09:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55938f5a7863c5fcf6bc62abeef701c5', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a655e096b242d99fdbe4b4f18a8a0e2e', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a272d768fa92c185a9e7c4e9266009cd', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b664feb8ee49a7592015019433fd2780', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c693d554433ab23e45c630d6ae3e47e3', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '77cc2d79478c18913855ba1f41cae2a2', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5ea4ef8e0d3ccfbc2bc72d739874033c', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3116d9d93e4e900ffe8414cc0ae021ff', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd13b934b6810b67aa662b275fa969328', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5e205e5620c95b8f0e275122fc91d9fe', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0019aa1888bc2b4e93d5f8d953a0f70c', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '15152d26e3fe0ad830e726150727c11b', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:10:55', '2015-02-18 02:10:55', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:10:55', '2015-02-18 02:10:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:10:55', '2015-02-18 02:10:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd6029b5c1e2cdce629e4c81530f52869', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3b4c8ccf80c253711a97e465f25e1936', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '18b500af73d751f703e68e1fac10a547', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '94fde37ebdf7e1ac7ae9d3b5d69e311e', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4d6a2a016e44d0c584a8f0cf9e1920f3', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0c5b243859dc4b541761c945dfa1b89c', '2015-02-18 02:10:55', '2015-02-18 02:10:55', 410780858)  (18.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:10:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:10:56 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:10:56 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:10:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:10:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:10:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8c5486a47b4031346a7a692f9a5c841', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '90c08810a1b07f651331cc52308d8b63', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bb848653075d48c5e9ab074fb17c0f02', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a64f367351b95c871ae78516406dd991', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '844844ad247dffa56abb0c717c381418', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '867f5f349c4d69125d092a05079d0aad', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '03894704ad244b0f26ae945394292bc1', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '193fd5ed28e04ade976149b980f5da71', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e5baa5bef14f4171f188878aca48d9c3', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1c15b8f8be97168f8913c1fa3042ded3', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8bc15ed0801a3dbe47705c9a417a3f75', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8739c076bcec5a142bb1b901fff31686', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:12:04', '2015-02-18 02:12:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:12:04', '2015-02-18 02:12:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:12:04', '2015-02-18 02:12:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5b2ed61da651d8476a2099764c14b255', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '30f3671c979ea85030ec6e8a1752bbe7', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '277d774d0ca92912bc1f2666bde8718d', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '893d1e703817745c7db05d9de0e8e9a7', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6fd42fe9ed6ab7bdf6b45c5e1044354d', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c219edfe907c739dc4bde40a04a06cfd', '2015-02-18 02:12:04', '2015-02-18 02:12:04', 410780858)  (12.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:12:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:12:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:12:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:12:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:12:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:12:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9a2041f4e51e7ef69619376268d6953b', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62db58b7c5fc3fd623575b6484d289ba', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd79762e74473317d96f35a13eabb3a5c', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4effe77df55bf31ba2d6d97fb740364a', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b57186f98d6c44b34f5f0b8f9be32187', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa3168a119e86c33c66eb0199d17e942', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b0a229a5f4403643e1102b434e597af2', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd13d45b6074f09bdbe296bbaa9c4af50', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7e9a181ae6a72665b62b178c30ea2dc1', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dab45ef5e6c8713ada4094a1ae6fb577', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1ed7abdb12ab12d386db0eee506dd794', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '028e8bc9a7b9341ab8e3e2ce9cc08f66', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:12:34', '2015-02-18 02:12:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:12:34', '2015-02-18 02:12:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:12:34', '2015-02-18 02:12:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6ce57dcd1f6b4c52ed3c8dc5b4149cfa', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f6c3a4b528b2cec4607ad9a7ac9dcaf5', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b7259fee0f319caaa3654381cc910e55', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a5d218c6f4ebed6c252d39fab09f8ad9', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3d0c63f81fdd44cc756d798a4081dde0', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a09edc1d6758f4e28901a1e65372204d', '2015-02-18 02:12:34', '2015-02-18 02:12:34', 410780858)  (14.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.6ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:12:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:12:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:12:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:12:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:12:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:12:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '413368dd1497c2735dc04dd5a6176686', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '82786651869d7782697a51adb9d6d27b', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '45b4d1df5f026aad838b336b5be22011', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2998d11dfa6b035cda3d4e2de5a2dc79', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd6cd1bf1606bd06e326e438772c2d681', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6fa4da4230c3d84e824f06f19269bfdd', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'cb2a506d8d10e988aa1170aeab9e8732', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c421e485224ca68e65e0fef25fb19da5', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'bb2bfbc92e5f837baa5508eea29c5c3d', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5bd35879644fb3f49ca760513924f459', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee9c12b30df1298300102beecb3fec5f', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2c967e494bea229efa48d9ff409278f7', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:18:36', '2015-02-18 02:18:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:18:36', '2015-02-18 02:18:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:18:36', '2015-02-18 02:18:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b006341ab871668d86b64d305e18ba7e', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1a1387231642e316112e9d3eda43318e', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3b63d3f815af378563f6482eadf16e12', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2c5cff1dbe1307b4a769d8a91768c006', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c05ebbf5c25598068326060545c52920', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '83454d959f05dbcc69af17da46aec5b9', '2015-02-18 02:18:36', '2015-02-18 02:18:36', 410780858)  (12.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:18:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:18:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:18:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:18:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:18:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:18:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '009ec68931a1f7a99f67cd9ce004bc55', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f3ac936c2c5e8028ee3b9ec7b5954ad6', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f6f445066de3e6aa2d5375a7d6d227e', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4ec1c60cee1ef8eba736e489aa0c5dba', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e9d30eee974b00e6fa36e1ebe2ecb1af', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1b507367915c7d3d9320b1fb72de4c31', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b3999cc5d5e3e7d9fd874c67b5de6b18', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd875dff0ef77f42d7c4503262a8cd146', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '78bb6fd07ae3cd63a89395e287beac58', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6677b55f29d90d2cf8307aa478cbe2a7', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4d8496b25778d2f9edb1c494155c052d', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9eae7e510bb7997080aefa268d64baae', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:19:33', '2015-02-18 02:19:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:19:33', '2015-02-18 02:19:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:19:33', '2015-02-18 02:19:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7715a8dda37576a11d052a91a370bcc7', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '961423f44e768151913c466c001f1283', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a30227e0107d2af91a9a02536faa7609', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '46ec42d3e15e90af08e2962deb05edd1', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6811f5385db7144adaba043d86e173de', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '854ca9896ecd6a696a166d585b83064b', '2015-02-18 02:19:33', '2015-02-18 02:19:33', 410780858)  (14.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:19:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:19:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:19:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:19:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:19:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:19:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '81d397ba0de524253468fc6b25eb1c00', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '528eb8ca202ace396db65a8b7b6af67e', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '919bb8bee9c5d49b91a86d34ebd782f6', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ca4913d1b3e675782770913e7c5e9df3', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '751474b358df6a99a30cc307233cb81b', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'de48fda3d70e68ae5c41cae290c82483', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6d966de9a2666047f5993378124e0123', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '81f3d9b4dbb95c821094a3ef39a68784', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ef17b52b9fae524a081364a290a727c8', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '742334cfa020de51388cfdb26c897900', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8a4a59330310d76325a846fb93e887d1', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f9acf7510ddb6c574d5b0a31801f38a', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:19:53', '2015-02-18 02:19:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:19:53', '2015-02-18 02:19:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:19:53', '2015-02-18 02:19:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bff09c2415790932772de7fb3f20b68a', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '97afd2e54812fe59b03261ea0f7e1c00', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b397e39a9f8d67882dbfca995ceb02c9', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2ccffacca231ac506d5394b176547331', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4d8573c4a870138a985e11438ba0469a', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '52fc356421ac52c7271504309200d7cc', '2015-02-18 02:19:53', '2015-02-18 02:19:53', 410780858)  (24.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:19:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:19:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:19:53 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:19:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:19:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:19:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aa70134a04475f6fb34a7cff3b12c85b', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bba976be79daeac82b8feb7fbc5671b7', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c1a5e5a4415a4fab275434d725bdfeb', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c64e49f2bb0a700e5a0f262a9cab4a20', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1b5e8aa8fb4ff9e0f1e03375814a4611', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5827750b5acd10f9d155edc862b4eaa9', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7629f856757bdcd34389af9a6e9c768e', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '07a7d959f97931849276ffecf2615e0d', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '664a58ebf80f11a4a9c15e09cdf39e92', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c422db9ee48b8d3e32c35be8c2f13805', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '51d363251c4a588f915b882317a4c057', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '943c10491dfa23ef460fe338c1afc6fa', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:20:25', '2015-02-18 02:20:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:20:25', '2015-02-18 02:20:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:20:25', '2015-02-18 02:20:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3c19e54c7dd8a62fac2009d91c37bf9b', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4bd623a683b329d63f635b56c90f6396', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cf69aad2446afaf35bbfc9d6783aa153', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b2a09bfeaf4604bd9eb35ac6f2794088', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1b4f0a96811c5f6ad208d15a2bda82fd', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5bfe5f81f8e6d4976ebc9cb091446c71', '2015-02-18 02:20:25', '2015-02-18 02:20:25', 410780858)  (18.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:20:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:20:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:20:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:20:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:20:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:20:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cbdf87bd6c1a8210403e3cf1c46fc5d9', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '19a9e27e332867cc10612085991240cc', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b0c9b69b762a2e3408c3c4de1d41028', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '65d0bd1f6a135ca10401ff88671f09bb', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e9af1efd9687a07a0f700521308f7b28', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '07634af84639c973caf2c4d730920e9b', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd4b283fe44f265daccde0eafc75a8c79', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '187440293219d241f943de28805fcc54', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fd389e2e21fc5c820be626ce05594c79', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4f492e06cc9099611d0526b5e7a30c38', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eeb0b341060c5a4e0550bfdc4a2ed95e', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9e9baab67dbf6323f824ebb19e68d128', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:21:55', '2015-02-18 02:21:55', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:21:55', '2015-02-18 02:21:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:21:55', '2015-02-18 02:21:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cc40168f98058c0c37f66b3c9ddabca5', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '62e119f5e12ab697772a341ce428243e', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f97db13809f01e7dc6db8ed180e8c40b', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b10a6dd60b95e7e1f40353ffb114b0b6', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'afdd136fc567c786cce58bd4ab539ae4', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9da696c2d68f6d18c0084c317e339a28', '2015-02-18 02:21:55', '2015-02-18 02:21:55', 410780858)  (12.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:21:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:21:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:21:55 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:21:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:21:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:21:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '68e77532c7c4fefc7041318825e11dcb', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cd0fc063df38d365f50bd6decab0fed8', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a34822d0bb3278f8bbd73d7e74d9c6f0', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5dd5abefc8606095a859f206824127be', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b7866e3767582232ecb830d3553acab9', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f8ea53c3e242d8ba43f41de8a21b9e8', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '599d5635b417601a317054dff813aa21', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '426f4b0f573b668064915ce55a732df7', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6bab87618cd7113d05bcffa9713e517e', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9ef171d652e6da7b7eb11dff9455121c', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '66fce43e80a126e1e353dc659589461e', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8ae7ca50e986ea586871e2028448ae66', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:24:12', '2015-02-18 02:24:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:24:12', '2015-02-18 02:24:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:24:12', '2015-02-18 02:24:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'df72efdadfe0586c754f11ff2723aaab', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '39be3cb44d98b19885f802b5f4c9e372', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0c7d3b722cacadd22357720d5bb1512e', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.4ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8b032cedd98e47f4620fb99dddf9b03b', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1ec76f8884efba301ba3e1496a9d065f', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bd96e07588bad16b14594cde00f89bd5', '2015-02-18 02:24:12', '2015-02-18 02:24:12', 410780858)  (14.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.8ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:24:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:24:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:24:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:24:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:24:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:24:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1a3ff3c6310d8e2656299ca6669dc9c4', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '497a352708ab746b7c5fc8b3b7997d1a', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '553de6ccc7687701944767cafeffe728', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2dd514659180111cc1bdfad20d8c785e', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5310016dec5f078d6f443157fd9ce3c2', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '232cc701fcd32f1643e2cf40d8b8498b', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '55b0c6b2e09e87da375776f318398bcc', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0255005367624912092fe7894afca68c', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'be9b9e5f0394276630573409909714f5', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7c19b152e5b91e0e9390dd19e0a33102', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '97654da3f82e535ef673e9144e983d77', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'da28f23af7c7539dde6f796e23a5527e', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:24:40', '2015-02-18 02:24:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:24:40', '2015-02-18 02:24:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:24:40', '2015-02-18 02:24:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '903ac08040ceba3d89009a2f051a9d07', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e9c5d0bc100d414ce6d111390af5f127', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0a971a5b3446829457bea2b08c78392c', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f204049b3e07ace346aa577cbfe62544', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c72166e6c061f5885c8c37e812c262df', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4ac2b07d10542063ddc8e825c741fbc2', '2015-02-18 02:24:40', '2015-02-18 02:24:40', 410780858)  (20.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:24:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:24:40 UTC +00:00]] SQL (0.5ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:24:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:24:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:24:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:24:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b1bf62472ae9feb4a5dc9c2d44f65937', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '19e71e7e804bcfbb9a910b6de8584e8f', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 1057142427) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '268f17206869fa928b2b0ec47044f07f', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '08f0651ea626049df101a2d5a2bd939f', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bf59c77a393af273ffaf708cd4eda1dc', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ea0fb2b5eee8d202fea0cc72f60fea2a', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6d8157bf1f65b39822e14a9a95eca5ec', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd70d7ba9ef065a0b338e3b0f7ab69f4b', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7c83cf9a99d29eb7ef053339d798b4a7', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b3de50ef462990c2c0c62f847ead442', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f7cd41fde806e07761a01fd6501bd302', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a27698b5459c883fc10c58984c68be1c', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:25:13', '2015-02-18 02:25:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:25:13', '2015-02-18 02:25:13', 380377255) Fixture Insert (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:25:13', '2015-02-18 02:25:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4846ed903d4bf959e26510a7e513640d', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b9bb6b64f40ca9c7e952eb53bdb8fb2c', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '20041ebeb78549e53cb1aad42dbf1050', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a0b3e0001c72eccfd7b295ec8db566a9', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b49cbf12a327abbcec3f528e0811b1be', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e017274f01426f74d08fe6b3656e6082', '2015-02-18 02:25:13', '2015-02-18 02:25:13', 410780858)  (22.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "1685fd56a397e53bbf381bb9b0ff7dbd"], ["created_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "467ea1d30492e8349c14d05447c1825c"], ["created_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "18a2101ac76ca0dbab43a3f4bc898820"], ["created_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "fec2f7ac58a3131709408c6533643b10"], ["created_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "photos" ("content", "created_at", "photoable_id", "photoable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "f61e29be07c0182131170450529e04dc"], ["created_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00], ["photoable_id", 478996145], ["photoable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:25:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a740f3e5d2b03acd73c10d8f3a1db4b0', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e4e9b97b9de2e56aa0ad36a559e9094a', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '39828a66f4df29ce8e5b03ebad86c2d2', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '64b17917e86b9da8bedf91f3c750fb04', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b91c3444059dd8761ea637f99e37a554', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bf81a5b5660567d3bf2cf52ad4832f33', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '63de56ab4b582a16e86a1790aee8c433', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'db0bac06836254d74c045e33c4b0711f', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2eec7b402e2adf99655d94aac950057d', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 966629572) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6fa6f263d2c12f3963f51b63ba906d2d', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '816dd1923243f465d38d663d03e56d68', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '929206570d92ef050131fa48804e97ff', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:26:38', '2015-02-18 02:26:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:26:38', '2015-02-18 02:26:38', 380377255) Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:26:38', '2015-02-18 02:26:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '81aee7fcc0bd476695cd1433119fdcd4', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4a2e7206370ffe79ee4e3caef4783e08', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0a2df04b29f5a3d6fc5a35914ce3d441', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1b7245f1f9440399a897c94ae7a4c88a', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e051de21066d86fc752e9d6e67f5b042', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9fe4e101e04cc32cf0a066a2b75571f1', '2015-02-18 02:26:38', '2015-02-18 02:26:38', 410780858)  (29.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "bc714bc3da7df61c46fc959aa46876b4"], ["created_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "2f6b1a35d5adb82044b3b923306bfb70"], ["created_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "4f1210b9998289a2748faae0e701db9a"], ["created_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "46efc6ac90f2e6f8918630a1cbeecbe9"], ["created_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "photos" ("content", "created_at", "photoable_id", "photoable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "7700abbb4c3b632b295827fc5d2a0ea1"], ["created_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00], ["photoable_id", 478996145], ["photoable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:26:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e2a026bd6a4342ecbbe049f169814393', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b8d84334be15eb214c08df7fa81841d8', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bef986b149fac547c2d9bf82b57af54a', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9a6efc8aad72029215568278700a3577', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '33e296903b9c12ddeb98091ba47e96ab', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '268e86248c57bde465c15e4a09898eda', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7a0ed4b7c74430969715161437cd67eb', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1f08f6a35591cbdad8c1379a7cbddf8b', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c06a93e96e74ee6749085c9e06225222', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ff70d75cf13ad8427ec055457e6976bd', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '51891496fb2aaad9b8c3f02aa8e2e35b', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '586ee62e509b0cb923a6f5c22790266d', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:28:13', '2015-02-18 02:28:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:28:13', '2015-02-18 02:28:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:28:13', '2015-02-18 02:28:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bd4cdc121e2b3f369c0f01d32a051ea3', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cf1b1ba34c54473d8fa6fd4f7e9dd832', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9527f109d97751acc9ef9672df2ce8d7', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5e232a1e240c4b0e0a16baf02130b0aa', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7f12d18ab33c66bc9e094be18f2e87b1', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bea5bd2a8e3b5cfff38a0593ab38c8e9', '2015-02-18 02:28:13', '2015-02-18 02:28:13', 410780858)  (14.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "6ec49b9280361e2000f93705d9d0bf3b"], ["created_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "18435bee861b1b49a7effb98738fa291"], ["created_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "cbb7a68156a09af2225726d78c3046e9"], ["created_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "222b0cee5f00ababf6d7fa7ebd14e13e"], ["created_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "photos" ("content", "created_at", "photoable_id", "photoable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "80459b9006ae6bf9a0c1efb004a9b3cd"], ["created_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00], ["photoable_id", 478996145], ["photoable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:28:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b48c6e20955edf682ca4ea4f5dba138f', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6a9441626a82ebc0e76b93633291c4c9', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '764f977521fe808d946357d8954a6095', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8691b46e268c28040f6a507c687e1405', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cf8af8bfa6bd3dd4cb094db1bafc1830', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f9b12b31316ee6189c8bbe862a8dbcca', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'edfb7e0b314e42739e5690218fdefa01', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd20d934d11f266088381f5ffae0f3eb8', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e9ec816a18b83cce01c1e955114bd4e4', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9a2e7421b2ae8e95a423d31c81ce8c3b', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '957e11ecf4b420b630af24db5652692a', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '79b6e9caa27f2b735a35971263339ef6', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:29:23', '2015-02-18 02:29:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:29:23', '2015-02-18 02:29:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:29:23', '2015-02-18 02:29:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '662a7fbe79a6ecea093a22fb0616702e', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3b908a53909e998d38b6a3c2d06e03c5', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '853bb813277d51da043309b1b3905605', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '072eaf1114ad45d54d2f4b5bab1a345c', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'aace03f13b651b728ceb226be6f4562d', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3a81fbe9190a4f086cefaf1afb8f34ba', '2015-02-18 02:29:23', '2015-02-18 02:29:23', 410780858)  (24.2ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "2469b52d2264a6a222a2d44853d7e135"], ["created_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "4d9fea221b8a0bbe49b6c8acb0c99fcd"], ["created_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "96168b81a0ec7beca09bb1660e5210ba"], ["created_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "7898b12b7e6701dd3f666b167ad7598c"], ["created_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "photos" ("content", "created_at", "photoable_id", "photoable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "4a1a1a0111663e27eb8d3de1d0daf44b"], ["created_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00], ["photoable_id", 478996145], ["photoable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:29:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3ecc048318e5a8803e2d354a1d3c03d4', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '854f8771bfbf9199a93fd4ae3090cef6', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5f27b1b4a7adecdcb64620a0f7605745', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 633598004) Fixture Delete (0.2ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '063e682911e70448f37e776f8f5c7c2b', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '97f6d484bd08c8e21e7b4226df9e26c6', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a0765d428ebeac9d8e1a46ecad6d829', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '02c00dc69f084d388379603fbf10ca8b', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7b025305832965760704d47a3d6b7f18', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '77bf2b05b0107584fa6d129459ac5f57', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b89f8d1ad93d2752c0d0481d6cffc864', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0844aac2f2fb71fe2ab2a800a75db925', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ada0e17ec04790ebd20c1d5bc9286b18', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:30:14', '2015-02-18 02:30:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:30:14', '2015-02-18 02:30:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:30:14', '2015-02-18 02:30:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fa28d8f2f46a4a4c1f43481dfbdcb30b', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3d260884c05da70e809de3de6447ce88', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '093ec74dc31cf673838234893069fbdc', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '97ce886e48bcf8c4ec8062234d0c4b84', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '44a063d64ba3404c597d45d11318a30f', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '28f39aecc2484248b3ea1fb04481f661', '2015-02-18 02:30:14', '2015-02-18 02:30:14', 410780858)  (32.2ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "73c710ef81cb5f92dc5d532de36f1c84"], ["created_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "c933ce7f31eee1747de05673acc1b605"], ["created_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "244b9aedee43b3fe6572466bb5cad28e"], ["created_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "56507dd83979fb4c59f879464ef0d15c"], ["created_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "photos" ("content", "created_at", "photoable_id", "photoable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "50ced9e41b3c03705fc5cabb3a98559e"], ["created_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00], ["photoable_id", 478996145], ["photoable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:30:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3a118f2848b68d1472ba9b4d90a11c3b', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 761411935) Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '95a5a8e92030f2d2f8599e3f32d6982c', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '40ad5efb44d73d4f3ebe05c590b0b681', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd07f2d839f86d23d4b705bac5fce3f10', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e8842d4dd6b71bf8d2c2e1b7c1e577f', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a4d1d0e94d78d4e9b6c1b57b9f044af0', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ba3bb01521581126e8c8be1d1afecaa8', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bc343dca5b8bfbab535c4a27cb3be99c', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '02e8a0d4557cff0c3789e0b482429a7c', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '72564cf8f481a433f29c05dfeba8f5f0', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eb4a2994dbe9ea47e101b4ca032591ef', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '260a21b21d82dbb2791c8b1ee03a2762', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:32:10', '2015-02-18 02:32:10', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:32:10', '2015-02-18 02:32:10', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:32:10', '2015-02-18 02:32:10', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '45f5a663cd39afebe7dd4e686a130452', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f1a67e00df275aa051eeb7b4f0d5312b', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '42b6e5e9ec7a778a54dfc0c945ecc4a2', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '43f6d97c83386997a86b1be4561dbd9b', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '08343e3a04241b17d810366e35ce7cd4', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f065f256262180076674e347d513c96d', '2015-02-18 02:32:10', '2015-02-18 02:32:10', 410780858)  (28.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "6f52ba0aba043b4b402e2ead675d2e7e"], ["created_at", Wed, 18 Feb 2015 02:32:10 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:32:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "32ec02fc5d08e092bb7fd91648068634"], ["created_at", Wed, 18 Feb 2015 02:32:10 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:32:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "5e79db6c225825fdbf54b3e73aae2fa7"], ["created_at", Wed, 18 Feb 2015 02:32:10 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:32:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "ee820fdff147cb9aa0d8bd47ae57276f"], ["created_at", Wed, 18 Feb 2015 02:32:10 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:32:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "photos" ("content", "created_at", "photoable_id", "photoable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "db162d95670938e7a0b1a32f475a661a"], ["created_at", Wed, 18 Feb 2015 02:32:10 UTC +00:00], ["photoable_id", 478996145], ["photoable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:32:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:32:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:32:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:32:11 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:32:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:32:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '56c41854a3a9dc81beff78b65d1db459', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d280a90f738bc3772c450e0ad766023', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ad239c19a494e30a7ead57dff80b5b28', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ce53a6f84cebbb315e5adb13b82fe2b4', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 775134066) Fixture Insert (3.4ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '22c2a3ed4871bc779cfba6807d19b5c7', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e11ba44c0db1dc40ad0c2f579703d28e', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b8ad0ba9b5b1fcf390ab68f2f5625d9d', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1bd66f5571c2417d06275b0267e8c023', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2593b4fd3db19fc69f034d7f708e4b5e', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0202a10f8d79d3825752a8ff95e9ca8e', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b24ba95b482862d38e0fa543603c0c1', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4c7533959d7c4b52c05dd53b2e9457eb', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:33:08', '2015-02-18 02:33:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:33:08', '2015-02-18 02:33:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:33:08', '2015-02-18 02:33:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3e2fa8701058325a863801c9dd0817c0', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '65b8466d7d7fd4e15bdd856676f7a01b', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b306d8aef9c1a7a5ddc8f365fa516b69', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '19cf5381efdb6bd2a013c50fda034334', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '152c7ae4cc67978b7559f9238586503a', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0628502cd4784045fb9ce4c79e95b162', '2015-02-18 02:33:08', '2015-02-18 02:33:08', 410780858)  (15.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "7a26d57e83302ca8dd845c63aec2c4a6"], ["created_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "aeb42fd27d3436411ddc86724020c18a"], ["created_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "1c0eb6d9bd823e0218099214160e16c8"], ["created_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "81515252f169116ce3698ac322d0e5f2"], ["created_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "photos" ("content", "created_at", "photoable_id", "photoable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "548e1dc6f3e47e7723acedaeb7eac5c2"], ["created_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00], ["photoable_id", 478996145], ["photoable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["addressable_id", 478996145], ["addressable_type", "Profile"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:33:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5773c9afd575e8d9c76870668dabfa06', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e43f5a66fc0cf78ab442d44dba39d01d', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '138c9c68f28af4184532bbd252ea6440', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '26eb06c666eb9bb7c75b1d2ed489cdde', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f1e88e0a14b71b9764c63c29f8a5f90c', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f9f627d9ece77bb7244e8259a175ebcc', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0606e7dd4e8e57b1f61c672a344acfda', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5b42c88a899dfcd43ce622f074dd59f7', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9a4211d55433c9231ba34d3935197aeb', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '65ae3b2f5948fc5ad35333c4f7d40692', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '69ab13dc92f01767d860c86ce4a0d26a', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e248f9eb26edd9f5dae822a0ac7d6117', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:35:41', '2015-02-18 02:35:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:35:41', '2015-02-18 02:35:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:35:41', '2015-02-18 02:35:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '21a6af6ab75f85d5e2ed7095ffcdda4a', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '38947ae4d24f245235b3be57a3561ba3', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '871da12fb71f2ff5dfae88dbbb2500c5', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '94b1efdf02bfba353056e4b314f5d5ee', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '288cec509b73fc94054314346c00da67', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '958a04d98a569a98f87e886a46f498f4', '2015-02-18 02:35:41', '2015-02-18 02:35:41', 410780858)  (18.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 478996145], ["addressable_type", "Profile"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (3.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:35:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:35:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:35:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:35:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:35:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:35:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f72573d1eda3951300584d49d375e435', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '71395e1d0166f024df6a71df5df32c79', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'da85565eaaa5f1c8c81f8b69597d683f', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '99fb537f6342bdc6f4c071916553be47', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b4cfb941060562755bfff57c34b08b44', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ace75534db8f61b8f261a099a9e80b0e', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1c1870bea4c0897becd8b2843aed175c', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bf0e9a2e71eebf967aa0792031dd2577', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '39dfb0c343b0e07c27509022a512f077', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dc86912be9a0e11ca23d53b0e9c0bbab', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7367970bd72c726d5ab0d0604e5d57af', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bf423ffbaac6826ab867abcf5e11cf16', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:35:56', '2015-02-18 02:35:56', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:35:56', '2015-02-18 02:35:56', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:35:56', '2015-02-18 02:35:56', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5b1380729bbc75c3fab021f232c4a32a', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '23a533d2cacfb2f5f9fb5d44d8016aa7', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '85fd6f5e61de14ea68e17b189c6766f9', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8a164ec1670318eb854c296ef6ffbf56', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ec43ae44cfcae4413beee47d0acbc3a3', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ecdc4b0212f8d65902323d16b22b3b74', '2015-02-18 02:35:56', '2015-02-18 02:35:56', 410780858)  (27.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "c4386b4d4cda7a052db139767011d7d3"], ["created_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00]] SQL (0.1ms) INSERT INTO "phones" ("content", "created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "bf16df51289ef2e1d13b89e6646aac37"], ["created_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00], ["phoneable_id", 478996145], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "d33e61be915f7dd0e2042681ffbe7600"], ["created_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00]] SQL (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["addressable_id", 478996145], ["addressable_type", "Profile"], ["content", "bce86a6800f204dabd83b135fc1c2b65"], ["created_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00], ["updated_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "photos" ("content", "created_at", "photoable_id", "photoable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", "d819857140a30387428182a509037eb2"], ["created_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00], ["photoable_id", 478996145], ["photoable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["addressable_id", 478996145], ["addressable_type", "Profile"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:35:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0190a1b5f1669f9292415f9c509593dd', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e9ba250c7173d673ebdc9a33890f9af', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7b666c9bd3e13106fe83208286737f50', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2fc9e2d5ffd0943e826f1daafaa3f6d0', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f97548df9ca1b47246c75459b27fb90', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bfc5945758c2e968f1272bfe0bc1f9cc', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '74955a4230fc87cc249db781cb3e70c0', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bc86383493ae91320c99712be4a643c2', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd15ff1cbe659329a88a12d038363dc9d', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b21a577675215382002be3802d7f18d6', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '71df6e2a91d9f8f890e2d5488f74e57b', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0deacc42bc42f827c8dbdda64283318e', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:37:29', '2015-02-18 02:37:29', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:37:29', '2015-02-18 02:37:29', 380377255) Fixture Insert (6.9ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:37:29', '2015-02-18 02:37:29', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6bef062722b0ae823cd10f105a01b2a8', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '12dbebb52fe2f560a4c16297bdd0502b', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '98fd0a78200ba931608fb9d498078677', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bc40985de840e96d252cd03b94cd5d0e', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e7f683848b93a713aa2c6db9a5b9bd6a', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5459b765028a1166ed34db8fec6e316f', '2015-02-18 02:37:29', '2015-02-18 02:37:29', 410780858)  (18.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["addressable_id", 478996145], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:37:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:37:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:37:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:37:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:37:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:37:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8633e388ba35bb0a88a56b83c887c95c', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c6dba5d8189506f44908919364a97d32', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '446dda41d6b9771e5b7b3cdebe4503b3', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4bca096eb0084b0df878b4f6d5498a72', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '54e1f1141cbb6bef8c8556d2768fcddb', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 971855462) Fixture Insert (3.5ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3ef78692c89ebc2a642d9084cc301eea', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'bc5eda76f385c39a555da051eb3cf02f', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6626574ba47a8acbf26238b9e3d0940e', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'caa4ed8ae7143267ae1724b5a8e58325', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ec3065e3910af1270a08868db1e26209', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f64458211148236e913c06d277387284', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bcad0663ab92b386708c0c25c6fd5202', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:41:09', '2015-02-18 02:41:09', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:41:09', '2015-02-18 02:41:09', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:41:09', '2015-02-18 02:41:09', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '540ea20ea6e39ec44d0206c7fb9ddefa', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8a3b4564fa0dfa8ba5412d220ab306bd', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '97f1dea3d4d7814638343132797b30a6', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '22ff59b9910f804ca70162382a225dca', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3bf11492d18cb32db5e1c7139d14b008', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1706fd5666c3d2f3d2b3bf71f6c76e84', '2015-02-18 02:41:09', '2015-02-18 02:41:09', 410780858)  (19.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (3.3ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:41:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:41:09 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:41:09 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:41:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:41:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:41:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aaf3ffbf92f2b56387c13104723e32a8', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a6f7750765eeb27721923e377c9efe1c', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd1710a84c0b8215e3edec7cdba636b28', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c2e391352efe9ab49c8f73945492cb0f', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f2b1a31bca078d240e7f6ae40fb79f2d', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b6b3a51d63f8b36c3a25a8633a60949e', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '887416bcf5dd5f3d15e068bc46a9bb56', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'debacaf2139d07389ffd491d8838b556', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 478996145) Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a2f375cbd7856c2621ea58353e1e6542', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e6881711d49fc17e9eb1f3305192710a', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7e5d5134f8f137606dc1e58ae7e03773', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9d057f8ed8b7515c4501fbf6f2d24444', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:41:49', '2015-02-18 02:41:49', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:41:49', '2015-02-18 02:41:49', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:41:49', '2015-02-18 02:41:49', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5682beb056ee3a29f477d870e44cff41', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '16c470975c8e7428bca526c4879d38da', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2882f8efee817acad134f1fda57e8a98', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '05f5e1491f9cdd42a34ffae0e42dd02c', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '896c72bd10256d72349f11674d449729', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 970698464) Fixture Insert (0.4ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e70e2e90ba528ccb6e12f1c3247815a5', '2015-02-18 02:41:49', '2015-02-18 02:41:49', 410780858)  (12.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:41:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:41:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:41:49 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:41:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:41:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:41:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '83e3d316c5e078dc3eb5fffbfde17a70', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62561a343253a84ee2e7e00da9c8c1d0', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'be981ae6ada5947d460a0dceb00f53f0', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '991cc06f8e9d0c01aff30f3b740eedde', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4f85e863fa5d713d2481816d90e81689', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4d98505254e40e70b16218f82cf25fb1', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1008e103508249bd3dc8e2d363e949dc', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3624c6cbbb30c9e08f73f6b8c4d61445', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '55e27acaf0767477dfb399acadc0b05d', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b9231a2e5ba2fcb9099d6920bd948f97', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '545b0796be2cc1c1f4a53a059f1c7635', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '81c6d9726458082973713a2b246d4ad2', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:42:13', '2015-02-18 02:42:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:42:13', '2015-02-18 02:42:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:42:13', '2015-02-18 02:42:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '453772b1ce925301a0588d51b674a881', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e1897431b1e1acd09ec57c1b2b355c3a', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7fe9b85714e5920edd339e82aab68a31', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9c6b356e037c199153a199c8fdb2cce1', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a6b5903ecde5506f937f0658e2f60255', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 970698464) Fixture Insert (0.3ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3d2321d04d09ccc7d7d2b5dd4f6f17d6', '2015-02-18 02:42:13', '2015-02-18 02:42:13', 410780858)  (29.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:42:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:42:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:42:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:42:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:42:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:42:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '609803249b68834e53925b5c61605fd3', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '202d151ce70298b0ac3047521d45c4bb', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5647312d50c88df1f380fac0205cce01', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '12936251b6a18c3e767a519c7ae950db', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '97e93bf9c7b2b3e2c6cffacdecf4f847', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1eec2f41bc5e2aa525342d91b2859443', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '64d9a47ae02053a107a457e1102d3656', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9819c3540a442e0e65c79e54b99acf68', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4a782fdf0e66dcd85a646ac0b9b75dad', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3f0773c7f8562f0ceeb7594a73244ba8', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '433645dcd3033d79874668a73db11143', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9a8a57a49ba06a2f62e451274546a93c', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:45:28', '2015-02-18 02:45:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:45:28', '2015-02-18 02:45:28', 380377255) Fixture Insert (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:45:28', '2015-02-18 02:45:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd5e4f32c9f69564dae8a559844c008b2', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'be4bbc490aa8649309b3b98fc275b8a9', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '671a61e79476b836a668832fd04053f0', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f7d0fbe98e8971cf9d383af115753146', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b7eccfcc31fd4ccca2464297998f4502', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '390ef4fced2c626433b9912d9e004df4', '2015-02-18 02:45:28', '2015-02-18 02:45:28', 410780858)  (13.2ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.7ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 902541635], ["profileable_type", "User"]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:45:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:45:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:45:28 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:45:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:45:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:45:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd1f5256cfce4b496e893b856e51bc18a', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '13a2617d30cc8cabaf31c3e51e34d570', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8bb83a88509c7a03f1d2a0918660f98c', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f38eb86c2ef128dd0cf89cc8a749c999', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2183a1983d1e2f01f95da6859350e084', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ae822cfbf303f01adf8aac3668cf10ee', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7969a8468f223caa5782488188f89228', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6c0843026c7b1aa23e91bd22ae9afcc2', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ced2b8ae20ea6499d5e46394d10140f7', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '407353c7908643c1608a9feae3e4019d', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bff9e166cc7115e4e6cb1fd124bbeac3', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e836505c9b89e37e857173e8af35da05', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:47:59', '2015-02-18 02:47:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:47:59', '2015-02-18 02:47:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:47:59', '2015-02-18 02:47:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ccb0ace5ff6f96938e4cf0827f40e4f0', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ea354c4db04435e7decc7ef6e5764a91', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '62a7575b0f68ca0a8e8ae306241ebad9', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cdad5e0bf66fc44cd02fadf8bda2d8f4', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f4f3536fccb95676c249f700a8e2f7fe', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '78a01f6571613338305b789cf3027ef2', '2015-02-18 02:47:59', '2015-02-18 02:47:59', 410780858)  (13.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 902541635], ["profileable_type", "User"]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 902541635], ["profileable_type", "User"]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 902541635], ["profileable_type", "User"]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:48:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:48:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:48:00 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:48:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:48:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:48:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '29f65e3509b800d5baf0cfbd039d2100', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2cba9b7720f780fa57653e3981879e95', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '59342ca77fecef831835a39fd0ea3e2c', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'df7c4d02ad1d0500f1b949c3dff8b4c5', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c3eb6a05bdb91bf4eaaa8e529aba6244', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '91b69f4913dd0e169368d67f07db1bfe', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8b0e1e6373c13565941c2bf293e15244', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '04dd34caff13d5575a132f4de0e134be', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f5377bc051455c599f7c0dacf2b83228', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '03b1945805619b159cd5e49387a4f4c5', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4eaf10a2cb25abd4135319cdf791aa79', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ad790d01fedba887d46516921cfad3cb', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:48:59', '2015-02-18 02:48:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:48:59', '2015-02-18 02:48:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:48:59', '2015-02-18 02:48:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '73d632df9b1b85ab1b213ef1be866329', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '065c4ea1b32c7536fba18c59bba68012', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '620c1e31450d46695a04ad701745cca2', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b090d8b3ce08e186a0788d347c5ade55', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f7672ed8913ca4bbf50ac7566e7aad88', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '69b98a18b52b950d3503a4799a670baf', '2015-02-18 02:48:59', '2015-02-18 02:48:59', 410780858)  (12.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:48:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:48:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:48:59 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:48:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:48:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:48:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a0dd4df858e3648fea08a2b052a0e3ce', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3b49c0fdad03c0626406c8a4cae2e460', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '83de8fd085e527a9f2132c6807b2a36d', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b21ad8e7b441fbd755d4360657cc736f', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bac6c469e881b3fca3f35034854128f2', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b1dbf28726aab004650577e0439ddc19', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '369540a82fba8272c2c3e21eae843832', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '14efd78d57702c73a802b9bbf0ab926e', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'aeece38b9f50a5b72d2e85d5041eed34', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '64ca92a48a425c3f792a29d11658ee0f', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd9904e18cf79eebba0cd8911628ba58b', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'af1fbe49455550b2b4aa01bcac7adc46', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:49:18', '2015-02-18 02:49:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:49:18', '2015-02-18 02:49:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:49:18', '2015-02-18 02:49:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4c501c536c625ddf616dcca4df86974c', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'dca25b43f774549c48337980885e58f7', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a26b70f7f7aacf7c6cc86b752e8234ce', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '118adfb3df763c907690073344e08739', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'da3cb54a309b30aaecfb7737da5ac54c', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4a1dabf0239b123818dcbd4e1786a8f6', '2015-02-18 02:49:18', '2015-02-18 02:49:18', 410780858)  (13.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.2ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:49:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:49:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:49:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:49:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:49:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:49:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5642586f1666fbaf8061e40be9a7acf1', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6abe018be0187818191b76fb24644199', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '256b08d6cabd0bcbdc834305f1714428', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1269c933e46dc7ae6f2bca710510e14f', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4e71fe6caac7c2e238a5306f64b5fac6', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '82a01a916e602fab9292e8818dc68ab0', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c7e82ae6d997cc2a51a6abd4fb165615', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '90e16f3180a7965822a2c5cebbf45ff6', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'dd41fb97c378d76842bf563ba4ac2ed7', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6e4405dabee37e38cc863e25721c9e79', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e9afedb2993beb84109d925ed0e66c5', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '23d1558ddb2a9c40bcc50a885c660496', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:50:04', '2015-02-18 02:50:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:50:04', '2015-02-18 02:50:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:50:04', '2015-02-18 02:50:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dd9b7e4f13fc463ead4bf18e33d50149', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '97440ccb5fb42f7da3a03070984ad7a9', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '05c29bcfc1d8e7f1b8624b3fbd76803b', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7c6e3646d95d57126e266c86375541e5', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a88a541f4665790c812aec57356c6e28', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f6e533a359660454cadb59b7489d3e96', '2015-02-18 02:50:04', '2015-02-18 02:50:04', 410780858)  (29.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:50:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:50:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:50:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:50:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:50:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a3bbb24400c9b967a6472d603a32393c', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c92cdfeb35d5479a7d2dd71513689f05', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1e6a4b010e34bf2c261a14337bddcf1c', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1e96b13e38cba7297e47259f185f3818', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '809a56c184ca3f4446ad58e021a1bbc1', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b8a07656961d743d9a6f526345061d0a', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3811530b6d163792316a2146b4852ff0', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b4a71a0687cc510aa846f72e82a46eae', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1f489347b523bcf22101e55f232dbede', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9e0ff850127cadbe4798d4a4b56eaa46', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e2c686bce212ad962b5e33970a4aab36', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '62516c548a743ba69bc7cb3d0e2ca280', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:51:29', '2015-02-18 02:51:29', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:51:29', '2015-02-18 02:51:29', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:51:29', '2015-02-18 02:51:29', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '74ffe70123bb5272f31a2ab6e7563361', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6c9c10ce07e34532ec0018d705abe099', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '80598ef80f440d83bbd8ef694490f008', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ddf39d295e5faa5a508927cb839f0f88', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '91ced7e0b03237091e326bc3d752e7a4', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9f9d797bf1b02635b9e253b073d96d84', '2015-02-18 02:51:29', '2015-02-18 02:51:29', 410780858)  (13.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] Address Load (0.2ms) 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"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? ORDER BY "addresses"."id" DESC LIMIT 1 [["addressable_id", 261299535], ["addressable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? ORDER BY "phones"."id" DESC LIMIT 1 [["phoneable_id", 261299535], ["phoneable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:51:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:51:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:51:29 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:51:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:51:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:51:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4017c3a8288135e246b818e2805835c4', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee3ee043305876ecf12f355610dd6aad', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '03e80377f3338abcf614eedcc525e36b', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9d164181f76f09f894690525b77cffcf', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '28ca6de322090bb13b078983032a639b', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa605e85e879fe1041a4ecddfbb44977', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '05f5d28de7189074745507e9c448a289', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '46c8be606bcb356ff05299b72a2fd98b', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5097ca39166ba58c2ffa79e08acabcd7', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8a81e81964d76de12e8f44b9d7963f2', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '00275898f859918bb339ee7491504606', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5628f43ac197af09b816228d3902725a', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:52:21', '2015-02-18 02:52:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:52:21', '2015-02-18 02:52:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:52:21', '2015-02-18 02:52:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b7c3498adf0a4f3e94f8a19f55b71e1c', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '053b033c940fa2ef7e040c31630f2db4', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fc145f64168c1e61c324808aed9f16e1', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fa96360dbcec062b9929b5388b3daabd', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '31cc3d3da3b4fae76a5e75225537f3cf', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0faee93b7b08ac6213c27a015bf197b1', '2015-02-18 02:52:21', '2015-02-18 02:52:21', 410780858)  (15.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:52:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:52:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:52:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:52:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:52:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:52:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b549f50d8965002a9fc5eabd6da3c718', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4fd24fa3dde473f6d236ea655feb9c8e', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9eef5dc6c14429407ac35ef1c6ebade5', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dd1800ea4664d3cb798cb9bc3f0ab7c6', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '46d4ec186ef91431a70d3cca36cd117c', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cfb6628b6d696caf2700fd52b60595a3', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0c16abda2342f098ee9a7a47092f56a7', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '041adb2c11ada47277d2bbfa91ed5c88', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd7ff3ac5668bce079b0aa225ebe0b89f', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dbce847fcf5efae50687f8d181b4fd64', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '424d844c88a53fd5712beaa06321aeac', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a8c54a9799b6ad68899fc5ecdb991923', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:53:03', '2015-02-18 02:53:03', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:53:03', '2015-02-18 02:53:03', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:53:03', '2015-02-18 02:53:03', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '57a5db4d80937831150284874c54390d', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '811633cb9f71b1366affae55de6cf745', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd1e2c6121cff560dafc3daf0163eebf2', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7d77d4c7467d88e5dbe0687853f47f3d', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '86b7b55a6d75bd90c476c7d352472d8f', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd2e77c41fe34935636341af0632a6731', '2015-02-18 02:53:03', '2015-02-18 02:53:03', 410780858)  (14.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:53:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:53:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:53:03 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:53:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:53:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:53:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '737cfc6288ea8499cca5f2c17e6ef888', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4282ae460e8f468cbf36c02905356646', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6f5e545a641f3d5c8695873262b592b9', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '436261965f9849553c99bbf0873c57fa', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5f48ee779e52d648bac79c051d6a260e', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 971855462) Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '66f80f6f32eb52e1b16817f531c116f1', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9b51241f55a10fd46e0fdb9384919d8c', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fccbd0b460194bbf33b11acb725d0e61', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c9a0adf8dd4ba5a43e8420de3157f75e', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6422ab4c359fa79a9296311988a00f5a', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8bacf2bb9738df556c99f4a04e7c11af', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b5d94364f0a21bca03bbff2698eb2f39', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:53:38', '2015-02-18 02:53:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:53:38', '2015-02-18 02:53:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:53:38', '2015-02-18 02:53:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4a4bc09b3a9ebdbc0fedabb685cdb405', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4ba5fa65d56a6fd6eca7787d4fdca4e1', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '33fc825e9d5492a5fce1bd8148c4aec5', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1473ea9d36555ce3eddb8b97dd5cd2dc', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '40e65bee4c3f27ef9fde6a148c195389', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '242a72ba958e6fa020776243d4a7e4d3', '2015-02-18 02:53:38', '2015-02-18 02:53:38', 410780858)  (34.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:53:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:53:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:53:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:53:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:53:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:53:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (3.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6cf967b08ee04e89659a695db1a0fbc1', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5400152fbcec39fc114113a6ea402829', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c18638744b3bfceb17727f56d65fb804', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5f434371f63334e01b013398d8508911', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1a347bd1aba529adc11d9b7472ceb5b5', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0bf4f72c1430892403315e56a6b0e219', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '967944289503832c05d23f42a5edfec4', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '24b57ea5c13395999dc810e15794c056', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '779ef67fcdbea98e34249b7122e35bb0', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '53dfb3e07d16c30b637e55dad117a68c', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e714d5f74a7daaebebd5cab7aee2faa3', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c65cbaf71778b4b09a2db0dcc57d303f', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:54:43', '2015-02-18 02:54:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:54:43', '2015-02-18 02:54:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:54:43', '2015-02-18 02:54:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0a6d990ebf1739dbdedc2b11b14f6981', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ddda1e854ace2c5b525890fcc7be6cb7', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0a9a9b3c9380accffd49943b0da3a409', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'acaacb08dcb52a592a750c4e1f562f7d', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '886d8054638315ebf820bdc816a3ac5a', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '125d50122681e31654c504c7416d350e', '2015-02-18 02:54:43', '2015-02-18 02:54:43', 410780858)  (15.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (3.3ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:54:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:54:43 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:54:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:54:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:54:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:54:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '92d91aa352c7106620b79ea23a07f814', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a54e0ffce1f785f6160e2ff512b8923a', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '691eab675c59db95b4cada05cc3556ec', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1511965e244595ddc06394a90d927b28', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8816d8f370e8ff0f016a51ae48c0bb8d', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd1827e92484faf52fe00a54e39d1c9bf', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'db381cc9e5ef310e487e479a40b441fb', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fb627446143be4cc2f2e893deea0d55b', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8efe6c4e7078948032815aa2cbd366a4', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9bcc21207e40e875cff062305e682c94', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '06f732a1f0e49b8e2b7bb44d863d2e30', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f96cbae23ad5d776a8bc431f4806af20', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:55:17', '2015-02-18 02:55:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:55:17', '2015-02-18 02:55:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:55:17', '2015-02-18 02:55:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1010b710f43676003471c9a7bc55e5e8', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd857f9cc594f0c1b5795712eb57879e9', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '73ee167c207b5550b883c14eabae738b', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7814664f1249d0a32abfcee94b39c433', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '224cb7a8c1a6937025d46a7413558efc', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6a5e31f6875fa714c2c7a254fee070c8', '2015-02-18 02:55:17', '2015-02-18 02:55:17', 410780858)  (43.3ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:55:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:55:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:55:17 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:55:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:55:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:55:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd7d3d5c33a8a85b5a19c1cd32b393f1c', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fdbe7b83cfc274a5d5cd32c7f9b4f8c5', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'becf2448c277a4db9238b24ae6c4c34c', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1c8c5632200da09606b0c4115555e912', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '15bb572385125e3e05a919b6f08eb51d', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ba6d6973fac84f706bcb5b2d86e7e793', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '56b5c0471073a534b5433d67c54928b4', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ac39346d718217706136676a0f17133a', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '413721ca47aee1dcc0ec677d28e65b31', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f056bd956e1b339e7312e07d757797e4', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2c43599041c084cabc067a21881d0e05', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c64055f2392df3ba868b15dc6753beee', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:56:05', '2015-02-18 02:56:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:56:05', '2015-02-18 02:56:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 02:56:05', '2015-02-18 02:56:05', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e2c4405bfdb907ab5b7d217f02cb5828', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7f315e35524acc4b95f9ef385befca17', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c466d0f667acaf3ce56fa0417d6d1e50', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '80d58939991b6dddd902629828446340', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'eaa710ddea95cf2940c521fcc2e8b391', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ad6e6508a0d722a7bf3828061aebe7be', '2015-02-18 02:56:05', '2015-02-18 02:56:05', 410780858)  (18.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:56:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:56:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:56:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 02:56:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 02:56:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 02:56:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f456e64d2981ca48151f58b756b1d2d1', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e1412ac5f8d768333536b8cfb9e63021', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe13d7a5d8874149f2d64f07d2ba1add', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1d9ee32b9449fa94954323d6eed61307', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c89fe86c35db42113a04dd244c60df45', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4ec00351ed62dc89632e871a0b4fff12', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '490c19aa94b3ad0452dbae5e5fffdfe1', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '58aa71a2c6e84e1b0aa3b65a9c8d1790', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8851ade3bdc356bf474a8e4350015d4f', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ee25326b5c8f17adc2fba05ada557e26', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bc68287d1a1f210d7a6e487a9b222481', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '25fb3dafb53aece0aae1551322d30d4a', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:08:23', '2015-02-18 03:08:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:08:23', '2015-02-18 03:08:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:08:23', '2015-02-18 03:08:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a699fbceff0c2d8a3137bbdb7c4fed13', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b37b4966f58e116cf9da5dbba3d9f098', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9948d66b713745d7955db2e558fdcc9a', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7845f27d93824995e4ded91c72463d16', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cb8e450f1548e4aed9726f096fd4aeca', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e48e7d4874fb01ea2115af881cf9698f', '2015-02-18 03:08:23', '2015-02-18 03:08:23', 410780858)  (33.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:08:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:08:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:08:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 03:08:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:08:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:08:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb58e91b5a8c94e0934316a78e363cfd', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bbf2fc1b59daa619eefe1ecf52242b90', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7c4a3c98a01054b57354d35e774feb8f', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dc41db50784fe06157858dc516c780b4', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '06cefa32d08589103d770e8431c54dbc', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4ddca3aaa3123bdb6235991c807b290c', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd94f79a291c57e9e78f2943ddb0eab2e', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fd0c6417740ddc7d5cd9235fee0b462c', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '36a7f0f9275dc5a50c8454b60e2628a9', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7d61229a863002d439ba1569f8a0b39b', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3e49309f240cc29a19f38049181a6876', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c691a1ad21184cdc80c6220332efcd40', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:09:09', '2015-02-18 03:09:09', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:09:09', '2015-02-18 03:09:09', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:09:09', '2015-02-18 03:09:09', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.4ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6bf3e3e0ebf5386a7670d9d80423c1f7', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '75efde5fa1f72597725b210af5c2d3c3', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '31f7480e386229ac22615f20753dbc2c', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6334b9fcb93ac1dacb00b66f03d31ea0', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ae63158fa943a9a91ec9dbac66305895', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b08fec90cfa3babfdf524c2ddcf6188e', '2015-02-18 03:09:09', '2015-02-18 03:09:09', 410780858)  (14.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:09:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:09:09 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:09:09 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 03:09:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:09:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:09:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9e82a35ad09c85e45d3de7d97b2b5954', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c6860a4f1f08982c7d54b1e26ba3e41b', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '406269610f575c4fb584afbf522c7351', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '01327865f83157de36a86deafd3dc3ce', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '83792886ef70e84016f8d3fa151b57bf', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'de78800603eee51fb595dec21ce1cf3d', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '64a56e116203b67390556ddfab0d5393', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '453b7feaecb85daa7d3dcc182f19c9c6', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'bc5a743bd1ff7481d45154c4740e440b', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f12e71bbec2a209b9fab36a984215553', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2a92a8e613aa9f3c4c74dc46ba6da476', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a73706b7cc79b4a6991e5059adee68b4', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:13:30', '2015-02-18 03:13:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:13:30', '2015-02-18 03:13:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:13:30', '2015-02-18 03:13:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7a18ec30c012f3df181435bd2124ed03', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b0b29e8b87a8df7b1d75e7a4894d6914', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bfb664a429462f5351f5e9695fa76869', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2802c097f9b01dec89327f4d35ac5dac', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ae47486013c759738fece60986742ba6', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dd8169001e3a37c4a65235fe0932869d', '2015-02-18 03:13:30', '2015-02-18 03:13:30', 410780858)  (12.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:13:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:13:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:13:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 03:13:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:13:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:13:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '36cacaac56d7e9a4b0146988e4611a93', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01f0a628e6f7f6de02de3aaf51d15188', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '387128d8ab726437e5745806b1574995', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '49057b369930cf9071d9b6115dd3abb0', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '63c85ab72a4b64596fd3ef925fa04e48', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f23cc6c669ec7c0ac80fd4a785c30ba', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2d9fddd4d221c0a7ec0b21a78962da0a', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3a5f9b6923eeff7fac2ac7a7f156d7b3', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '686fdad0318684e6d421831a551dceaa', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '06c052122cf7e6090922e3aac8818686', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6a98afd120c6f1ed069ecc20bbf02d42', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '23917423860ca9de4ac9e1f802892266', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:15:21', '2015-02-18 03:15:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:15:21', '2015-02-18 03:15:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:15:21', '2015-02-18 03:15:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0c1931a5196bdbdd7d5408c1dfee084d', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cb07756818449b5f81fd7388884ce1ea', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b51bc01eb31bc6b46960ca9ac10ca721', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8cb987d370a5e860b6a1447547ce6c76', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1e44cc8779df0c8aa555222d1280ca76', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b4c27bea19123077f24be6624bd6a5df', '2015-02-18 03:15:21', '2015-02-18 03:15:21', 410780858)  (24.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (3.4ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:15:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:15:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:15:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 03:15:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:15:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:15:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7bbb6607b93c8b7f431e30beb2c8bf57', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3cdfe2b068b59ec5bea8e8f08f891f84', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd2e46ea875d1ff55c97f975e58c3f9de', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4c96fb754095a0af1217666fb26cd000', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb7430030f0c799e1e7e61874cbc9b7b', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8a2bbec5df77792fe332f5fcd4a84566', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '586cdf04048007986955786d5ac5598b', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bec3c59395b236a55e32fc53a804207b', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6edf32d4117ea6abb3ac378bf214f13c', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '425798b96864155d0156b132947eada2', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7af2523675806e73e286b009818b2f11', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '43e0ce22c5586378538c43132bc89bba', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:18:06', '2015-02-18 03:18:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:18:06', '2015-02-18 03:18:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:18:06', '2015-02-18 03:18:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cc668682ba8fe0e7635a45ebd496f1f8', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '418001a9ed2431c956908fb630dc5105', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8695e62379cab8b9ec48a989b619ac65', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.3ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5fa6591cce91ba2988f9c5786b980160', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4d5a510889b662867641f87ce65c7708', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0700ea16421ed8e2ecaa4448039129b4', '2015-02-18 03:18:06', '2015-02-18 03:18:06', 410780858)  (33.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:18:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:18:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:18:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 03:18:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:18:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:18:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a03feedacfbcd0c5f8dd8b8304c51754', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c958850dada6e53b8d82c6c1cbe0a8e3', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd5b484a953d05bef3f79816916368123', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0bee9c3ef2a11b99bc1f1d5004b41575', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ece0a61fb22c92c8739c61b4076865a9', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd40e19208e1b017e93b0d5ec65598001', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5e2e1bb513b901274b63617517a49a4d', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '89c7d870c089e855829d0a7295ae8eb6', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f4d11bfcd9299d35d6b7c4418954400f', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6180aaf211c7edb62c067936aae8bf07', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'acd09deade3d25bc9b3eae9c1e796be0', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd055de53e5760957e88100ff4b97e801', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:18:37', '2015-02-18 03:18:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:18:37', '2015-02-18 03:18:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:18:37', '2015-02-18 03:18:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '63ce64712589b6150c95385cde12881d', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 884173432) Fixture Insert (0.3ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '62b50d981687218ecd7418b34bb26242', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '041564a2ffad91ee22154a9883d5c2b4', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '126abea365ba7ba4024d971bf42770dd', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f82c3f2ca6ff02a28825a13a0eb57bad', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '33ca4f1dd53e6c64aebf6371044cf10b', '2015-02-18 03:18:37', '2015-02-18 03:18:37', 410780858)  (34.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:18:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:18:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:18:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 03:18:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:18:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:18:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '78397aef2eb40c051e771d855502a47d', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '83574c889cc880ff3cc305fa89fbe63f', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3f38f4f7207b67397c4fbb56de353805', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c6116f147f7a45a4d9001c53d78f605e', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '446487062049fda2e1063380b3f35b1e', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ec565dbd9751035297f6af2d0caa2642', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '942c51e54b3101bc9601f623a24b41e6', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1e40fb7aca02759121803dcb48711e6f', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '63fc0b1b63f03090ed6bc95852512df9', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '14ef3a0ed85dd7c698bb9d8a60d0fee4', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '35aa172687f60d455c9bd79a1da5cf7c', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '124aeac8a083bf6430f0c77b0cc56578', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:28:14', '2015-02-18 03:28:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:28:14', '2015-02-18 03:28:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:28:14', '2015-02-18 03:28:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd3280a1e2e8cb9f06abd708b0c8adaf2', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'edccbdd638d4c9807cf51eb7947acc73', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6bc4cb44b76c8aed37e3252084550295', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ffde4104c5016cd399da2bdf9114c6b7', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a678a877af542beeb57d25e22a9f58ad', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '97a81703d5d9f8a6158bce7b9c77c080', '2015-02-18 03:28:14', '2015-02-18 03:28:14', 410780858)  (14.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:28:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:28:14 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:28:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 03:28:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:28:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:28:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0e6a3727b15ad8d9599a794d1f130264', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c141c67bcacbf01419adec56db4b76cf', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd8649407aa5bcbb093a2672592fadc76', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '39044125c30c7137f7dd950940cefd44', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '708d6cdd7f2696aeb1d14609540a0f94', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '00b6fb94033b01aec2c11b78c1587eb3', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1c7a6a44e49b9c354c9453f0e5635601', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fc0028184b4e426e916ce0e73e7aa288', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '56e500fd3b8331a13918044659e726ea', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '533c1738d55d6504a4100b27b8ef6535', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd9777c57918e829e759a9f1bed665438', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '41b5f712c1400fc992430078ac46f691', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:28:27', '2015-02-18 03:28:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:28:27', '2015-02-18 03:28:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:28:27', '2015-02-18 03:28:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '800b93772a2b570f9d15e7e1235b36ad', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a63eac9b40b57a2135e0f9112c25c4f0', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5aea74e786cc33b40a9f30862d2bd1c8', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '640bc7610bbb1b6158d42002799b344a', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bdc3e154d74aaddd6ee192bd6e5ae6fb', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1e359693ea00088f659e8a730910c1fe', '2015-02-18 03:28:27', '2015-02-18 03:28:27', 410780858)  (14.0ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:28:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:28:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:28:27 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 03:28:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:28:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:28:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ab32fdc90084cc40448eece09048fd09', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '115b7f937880cb9a7a08c5dabcd1098c', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b3a2d8ad2e61c64851e4b64b60e7d4d', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9012a53834650ea6a717b09e8304cb74', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fdd5b89931e835f04d1d06f31be30c60', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '919c2c2d9a928ca4ef2a76f3d3e88630', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '926bb3b4fcb0dd0e3a9d5159f99531e2', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 261299535) Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0ab1febf0d8fab3493c807212ad74622', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '974938564764603baf2d10e9cba88940', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '93b660c56bc153eae09354bba6e08441', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b99e38f32d4e4d8b068acc995e2679de', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0633ebe009e506572b54d28f28aa6149', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 762608046) Fixture Delete (0.3ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:30:22', '2015-02-18 03:30:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:30:22', '2015-02-18 03:30:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:30:22', '2015-02-18 03:30:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd80538ac4a0104fa7e691a30af1975e8', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3906d1da31cb5117fd47f1926d609462', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '867f605b7fa485e0f0b16ddc3a1b9f92', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bc84a581cae037d1da9ef537a703eb9d', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8a6adb7e98de42f9c06b19d8e9674687', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ddf2115948e7b2571ce7f8eee78a77b9', '2015-02-18 03:30:22', '2015-02-18 03:30:22', 410780858)  (15.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:30:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:30:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:30:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 03:30:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:30:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:30:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f2739f338c4f45591078d2a527e2943e', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'acc392632ecab6d7ba3dceaa46728ec1', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '563f200b4925f530f6fbef5aaab103e3', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '988e083c6c518743c315ae8970a506ea', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '16892677b988f7f71164c465ba69c41e', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f1fb568f10b628a35c15611be84d42f8', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e3a9129448dc5c3cdeaa9a4484ccec4d', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7aeae80f4ed753e844e59aabc7f42769', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5928fda4d4da2f85f0475a2eef29e94f', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ee104f28f5a2195c611714b202da2b8c', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '24025ab75c2a6d51aa03b2c2124b2d6e', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '02310ff03956d7f43c7586d4ecc71ba5', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:51:57', '2015-02-18 03:51:57', 902541635) Fixture Insert (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:51:57', '2015-02-18 03:51:57', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 03:51:57', '2015-02-18 03:51:57', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '68e1804b7fbe20b45189d19511f1d02b', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cf47217b5c4501a4ca3f511f80f26ce9', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 1035759634) Fixture Insert (0.3ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0a7801d744d6c7061fdfa317582b520f', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1e71851006bbb06469923260a319c630', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2f05a0e0a9c6bb2a2e5dd9c654cbdbcc', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 970698464) Fixture Insert (0.3ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ed603de868ebb0913b25a1f2b61384fc', '2015-02-18 03:51:57', '2015-02-18 03:51:57', 410780858)  (21.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.5ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0007_IsSingle tells child singleness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:51:57 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:51:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:51:57 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 03:51:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 03:51:57 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 03:51:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0943adae621c126c74500cb5addec867', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1f52819a55eb66255d6ceaf4de2c39ec', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '42cbde6a73db0dd168a8816961f44a75', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5fa83719c73816c71b7ca206c7187695', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e0b6af967f39c7cf5d4989346938e7b', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1c4c7dcaa97086f12a4dc7fb2f54e478', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6b0c7ebc5f0aec5fb15cc67205a16dc7', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd040432214503322453e93b52102a920', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '743b2ec2337ddf68c244cfd1b43b676e', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a8b540e5b2e3244b63620c3e815b4e8b', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '495257eeb9683d4002bee25b99589005', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '083b105147378cc8dd1ba6f4c9230ef3', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 04:27:46', '2015-02-18 04:27:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 04:27:46', '2015-02-18 04:27:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 04:27:46', '2015-02-18 04:27:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1f2300a092863ae3320093ef2764b177', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2e9b55aeabcaa8b506b52a54e209dab5', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '27af6c4c088dd4372db5b425e6927465', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4e9a86075b3418baa64797f502f7775b', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7180b9cbf0d25d0c47b84c6aafc7b1cf', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '64b01c300f9cf3ba7ec5e613b9ec8a94', '2015-02-18 04:27:46', '2015-02-18 04:27:46', 410780858)  (23.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 04:27:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 04:27:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 04:27:46 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 04:27:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 04:27:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 04:27:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75f4124c37c15b7c152a6350710e14d1', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '877dcb92204cffa6d1c4b5335895ca57', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 1057142427) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8abe45a88f42d16a374d2d68b3e2d253', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e807e442f234105376ce5215d298bcbd', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c57a56f7a373f5fe41f7f978ebd26652', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '88deaf0b691eb6e6118d2c4515aa373a', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd9c856c339c3c3be383aadc3bcbc65bd', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a444ca70af768e8daf09aa9dd9055e41', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '11b78aa299ee9eb801be18becf02c28e', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f80918eff028992c75afa385c1844b58', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f0da37fea11f8d993cca8ce762a7ba0e', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'daabd0c19bece569c96f388df0406ec3', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 04:35:15', '2015-02-18 04:35:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 04:35:15', '2015-02-18 04:35:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 04:35:15', '2015-02-18 04:35:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b86de169049ed29361df8381463ecacf', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '51c0e0f41dedbfb6f2a018523efa8fe5', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3b6bbbadb2965a9ddc9dd430849327db', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '67057512f66e6eb1577f132915d09563', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 819246218) Fixture Insert (0.3ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '235714d7cf1f86f740db648ab8bccf15', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd6f14f21f80fc7b6cf4e305be94c9391', '2015-02-18 04:35:15', '2015-02-18 04:35:15', 410780858)  (16.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 04:35:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 04:35:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 04:35:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 04:35:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 04:35:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 04:35:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9c8d0e89dcb4b955891507d7d9f7593e', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e6436cac20b4e499acddcab61abfc3c5', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1d8bbe96be7f72879a5e08e75cc014a3', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ffe1920e02b83ce79896ed00017692a3', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c2221fab8f00051fdbcb1ae30eac296c', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4fe0c14ea01e58bc952907cc9629d152', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '09b277d0af68ba8c59cd00063d64c849', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a38cf761ca1dd763d802cdff0a2b5f67', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3a021d354498234baa6787327176c1a2', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '70cbf072a97bbc0fe8dcd8217d7ca910', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '86355ad4a34bb8490bdb774b2d5db4f1', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f41ef71cdc09036821f3b98de110264', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 04:37:36', '2015-02-18 04:37:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 04:37:36', '2015-02-18 04:37:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 04:37:36', '2015-02-18 04:37:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1a7ad93a0743c2bf5cc8de84c129a7c0', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c3c813ea2df50de2e3ca18d24ec97a5b', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ff2b6680bd0cbb8fc0915aa1bcd9580e', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bad3e2018fd2514a6bc4506b49b14201', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7b90d48ac1307252642b5974eda8a51b', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '60896abcbcf5b89de6f09e5843f4f9ca', '2015-02-18 04:37:36', '2015-02-18 04:37:36', 410780858)  (13.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 04:37:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 04:37:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 04:37:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 04:37:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 04:37:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 04:37:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b0e688ae9eb44e91920441d915f27f28', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '89c73001ce61019231334d79a8fe077c', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2b5d54387c03f9682324e756a0ae155f', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '099177eed8104cc7bf0a56f909f12f92', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3ead6169870bfd5106bad16869a2b571', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'daed5120b6e3dfae5ec7a23afc12da7e', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a2fa5af5b172765ee811da6382d728b6', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'edce0c0c7f3dc42cb861971fea2c3be2', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '05a957a17e7649addc4647ac5a54a36a', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8eaf6841557bacdd08c64475c23a2be0', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f9ed53e75bf75ca1cc11216a27b6b1f2', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '51eb611449a82d997e9fd8ecdaf14e57', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 04:54:46', '2015-02-18 04:54:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 04:54:46', '2015-02-18 04:54:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 04:54:46', '2015-02-18 04:54:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fa7ba55770da1fe2f234b33b62c2830f', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '27220efc823a6cc20faec6b357a5dca8', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fde20e227819701e80a32acf543c4c00', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7df3fd676bb5331dfb582855ef4c198a', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6890fac5df1cdb14f85adb5a8f0806d3', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e016af406cb6dc8a6524e0c7f68f0850', '2015-02-18 04:54:46', '2015-02-18 04:54:46', 410780858)  (12.0ms) commit transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 04:54:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 04:54:46 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 04:54:46 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 04:54:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 04:54:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 04:54:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b1ca8249d4d263672403a11ed76e44f3', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '267dff0963083d267839c7467751a297', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '153c1db28fcdbdcb72edb568bc5cfffc', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7afe69e2b41fcfa0a8d69d693131c226', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9a4e6e217b3e935e76c4c9bb45ed5fc6', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6c5d993b03778c312ba00b969b550f0c', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1c1cc84dd6f4f1d68105751d742b0b11', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c0f76de9e897b8c1811ad3f0cff431d3', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3fb0dc063ad152eb12bafdf52f858c7f', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cd2c0db1d84f7766c6041594c93f0fd5', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '23f1f1cf59a19d1ba08d7be5c1557d79', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b4f3deb6c35d3ff4af4b98f30bc9aaef', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 05:29:19', '2015-02-18 05:29:19', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 05:29:19', '2015-02-18 05:29:19', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 05:29:19', '2015-02-18 05:29:19', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6cb241d775b050f75d798de4bdbff5f7', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '69898817f8e3abe7de8abf7f309ec97b', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6b67d95cc1faff1c4df3aa757c9db04c', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '875eef59ff498658aeba4b41a2039579', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cae82cc3855c94c870c85d3a5f548353', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 970698464) Fixture Insert (0.4ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ddd1e0030f30e7d6be956430d3b34dcb', '2015-02-18 05:29:19', '2015-02-18 05:29:19', 410780858)  (23.4ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 05:29:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 05:29:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 05:29:19 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 05:29:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 05:29:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 05:29:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cc423f7ecf8697e27f81acfd84db1444', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c70dcef6577e02467a77243bbece02a3', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ed580b593905c87741d753608fac9663', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1e087b9ae7f03c5182401f45da1afca5', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bb28570bb8f9c4301b57f969ec5eeb5a', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '36526631d5dc335a2a5bbb4d298d9485', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b353df20e4f4a63d5fa70b32117b3210', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cc0801e7ef351e7117c867573ea6bbab', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '193cb024dbedf88cbb4830e14f6cfce8', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '375b83711f4f854a316f9fedd8e14c24', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9e98d41cc96736dd93c4d5d3febf0178', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fb8f3ee2c9198b027936e735ca8b10e0', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 07:56:10', '2015-02-18 07:56:10', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 07:56:10', '2015-02-18 07:56:10', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 07:56:10', '2015-02-18 07:56:10', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2b3c13e95b32b492f333d46c1cf39d18', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '71b4539d7147f19c81e195024ba0ea82', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8b858d418cd478d6d75071a0d142635a', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b3eb173513730353677a6729b794cde3', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '06563e99f79c0648ca792b5b6e81cca5', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c2322514fab61e672d229b7723d7c176', '2015-02-18 07:56:10', '2015-02-18 07:56:10', 410780858)  (13.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 07:56:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 07:56:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 07:56:10 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 07:56:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 07:56:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 07:56:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a25420a4a3ef4f678b2d89e961500a0a', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd1f39d9d05094093cd93aa6af787cb9e', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e85a5fb460014cfe0393fad678eb3d04', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '036b8ff02c18cba5a7bb9f99f9e8c315', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ceed07f6708df8836887991317ae999c', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f4da2da2cf058094085f1fa919dbe9d2', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd4ac55d1fafeda39fe0e49bc4f4b663f', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd122c9df6d4536a092a871870c467494', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'af7593e3ef949e19944fef5459029e4b', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cdefa6ae2908b9761127f241b2b22cea', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b5c1de856bc84e7e8deb6da0e1912a34', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '507561757b026b6156709bd1372df6de', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 08:00:25', '2015-02-18 08:00:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 08:00:25', '2015-02-18 08:00:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 08:00:25', '2015-02-18 08:00:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '795af0f0094f05621c98fe143542f6dc', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '218b29c35de5eab4e47e638241d7d7ab', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '023d435d14e7f7ee4758f3c77573009e', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd2cb7ddab9342ff51a85e01ceb896039', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a3cc5270e382106ecc9eb8ef86982589', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '23bc65357b4d400440376cb361637021', '2015-02-18 08:00:25', '2015-02-18 08:00:25', 410780858)  (19.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 08:00:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 08:00:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 08:00:26 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 08:00:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 08:00:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 08:00:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '757c00ebe73a08651053f21f2a2504db', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3df06d7f5a54784e16783fbdc46967f1', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9749149735648bbfa2bb80e7fa3bf209', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b7be4f91e7a578d75d83eb2ef34426a2', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5eea03af52472e3b7642a920baf418b7', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd2477d508dd8dc772dbb881a4a69f68d', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '08ce172383a2b75388282856fcbe8bee', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '52da9097eefd73b8628e12ae68da0c70', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c03798a2dc5bbb71ff098b91014f10be', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a37e079bf466c90bb9adebed7b60b6b', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1fa6c0c9ecf64e5d2e1adc7cc13e9f54', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '518bdf336e183d2741e7063a851120cb', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 08:02:44', '2015-02-18 08:02:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 08:02:44', '2015-02-18 08:02:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 08:02:44', '2015-02-18 08:02:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1b2440f58675ff3dfd2069ade4777d97', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7a9842e7c0d69e594219e4ad30b2f9e3', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2d9c77ddf6356a8041117fe22ace98f5', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f11d86ac243644302354559c6d595bbf', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0e4dd7cbe7664a8d449063da250cd64a', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0736b82b48116481e1fa581158d30bcd', '2015-02-18 08:02:44', '2015-02-18 08:02:44', 410780858)  (13.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 08:02:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 08:02:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 08:02:44 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 08:02:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 08:02:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 08:02:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a32e54050e4cda51cb43d73c88ba55e9', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2b23c762e7966d89d0d1a9233801a3c7', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3213674a760db602b15fb82c72b3d050', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3cada8d653e5956bb98c9897aaa7f874', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1dbb3c9fd7081cfe3f7595957c91c2b3', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ed0aa239f9d6818115278de70d7a2910', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7c04cf5f5e002a9c99a5073e67cb87fd', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ec263163d4714fb1f93396893ee10cd8', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ea4842ac3ced6f4c00e03ef4810e539c', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '66358b0d3ffb379327178f7857e83d44', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '12cbd6341523cbfc11be757a242ccfba', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'be5ba05432ab27f68d06797b9a22af2d', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 08:12:34', '2015-02-18 08:12:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 08:12:34', '2015-02-18 08:12:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-18 08:12:34', '2015-02-18 08:12:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd7e55a5cdb8a3a74ac7313bb0bfe98f3', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fd247dda448817fc1a7f65bd97251ca8', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f694690cccc7d780f4cc78bd53a6d8fe', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '87cfa52c3219b21e07cf2f7b62a26176', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bc92ad2f1a487c7cf8d28a31eb3dd374', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a0aa9109a08d0187a24a4aa03cfa3d87', '2015-02-18 08:12:34', '2015-02-18 08:12:34', 410780858)  (12.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 08:12:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 08:12:34 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 08:12:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Feb 2015 08:12:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Feb 2015 08:12:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Feb 2015 08:12:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '123906e1379ea656646ccbda5541e83c', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c0d2d6781ada44fd65efacc6684508e5', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c08b388e4e4002b7fc101da01f9ac3e', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5a6c8a28bf7e4231482ca89bcbf49e8c', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '099e82905b202cde1a65b935e3731831', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4f76513670bb62968dc4d37e6b01c502', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '59e437645c703249795f5928f49496dd', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6f2d3f236cc4b80e5738a23cc2c66cd9', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ad1838f9588db827b54d5a6d70ce877d', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f78b5bd1cec5aee7f3c90ee953bb18e8', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c7ecba85c769fed656441a83072dedd4', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '172e0bb98854603370aff56e6e13cb62', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-19 05:41:12', '2015-02-19 05:41:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-19 05:41:12', '2015-02-19 05:41:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-19 05:41:12', '2015-02-19 05:41:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '442415fb8b64304c1b994966825110fd', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '059da440ae6e47507a08f61526cdab00', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3ac482472327abba9d119223bccf2dce', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '93ec8df615d9987208dc4503261547ca', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b2d1f53234f8206d510f24976d611261', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5e9ad7d11df01c27f71d45e748be8f9b', '2015-02-19 05:41:12', '2015-02-19 05:41:12', 410780858)  (36.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 19 Feb 2015 05:41:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 19 Feb 2015 05:41:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 19 Feb 2015 05:41:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 19 Feb 2015 05:41:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 19 Feb 2015 05:41:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 19 Feb 2015 05:41:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.8ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f475edc8f5952500c42fceba650c1eb9', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4acc31c305968ee3986be3d1f9c94890', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a593301018bb29bfbf39d9cd601178a4', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1a6000563751973256238b7daed2674a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a5d710990da9784797432ce028dea621', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '63e0a5d7452b102f5415f7adcde25eae', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '28ba45b4e24bb57cdff8f8b3f3ba33a5', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'de867a1027751a8111b63d7f74461d8b', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0810eb8b3678fd5a7945e2ba08bb4319', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '27441441bf9f640dc2602deac6a9b908', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '19f59d0f56d546d864e861df673589d9', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '819bf21d76054a4ca359f50764758774', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c3bc1a62637d8ed636c691abcf2e256e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e02b22025e2a49e4f2e73d003d204d05', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '10732f6bb4e7fc45a6537a0e7f18fb63', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b1aff79084807592577f1e77cd4f5a35', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '630e73f55c010e186db42a7424dd19ba', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5bb0c4e5a79e565a707c890fcd2847f4', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eac8179ae46159c2b55fa6b7a6a57279', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd579e5ecd8674c9469dc5ee0020ed460', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e21c3075b33866bc4fd5deac69a71290', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b98c1e2ea8d9162c502b00a50d829422', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ca4a58af1ee83b1c7f8c6764cd2eefee', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '709633028f7850ff9bab73042c07e94b', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a080ef2ebad79b73d68f188f608a0168', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '43bb181d3a981af1e485f5fab4499af0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '305d80923ac815699aedfb45cfed9ff9', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bce749c623b9f0ab6d1ed621049ff5ea', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f971c7acfff571178f304a23d1e0d4d9', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0e8ca43bea57ebb2527ea405b5d1d230', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5d14fec9aee377bba33087a0d30e2355', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1b36c8465b3a026c6e8db9f13c6f8cb7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '771a53734c27fdf73066a59c3fba9065', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd4435e254e7ecaa8894dea9d37b5fae0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '388df782322355c5ac98f2d455436bf6', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e5c7a94608d26fee47c920b0c61b725a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9e3455b11e8bf2c32d082999a7c753fc', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0f5ae7f402ec493f126228b8b095b6f0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6bd637fb1feb83872f821b28f544bb5f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6731707672ce6496c4850820809b4416', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd8743967b5104433920368e583b09d5c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5fe02713be891aec279ee80ac8691784', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '36e114445f75349b4ac696dab35413f9', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a4e35e5c9ad80671a13d6fcdbc2b5237', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '33fd6f2dcaf70465b8eb9e2889d743a5', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '73b8be6dd6468de6693b6a736a7113e4', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f902ae5b2bbc240b1531ebb1a70c6331', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c265964021a3be878a0d39330a25b2b6', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '637a9e72017491b277acc2d80e04bad8', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a65381750b1a2a8a71d3cabea3c7adab', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd0ccd2ad7f256ee3da8bcbe4783018e6', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fca62fd4f7095c5ad5fe0f09de541aea', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e07b5b34fd9b913ebfa3aac21801d429', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5bb6c0e7915c4d8445dfa7483da921c2', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '99052d59f85254c85d462a4b3e6159ff', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f53d5e8c00c97b1eee5a1133085f638a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f9293b55fc7dc498e9ad4507415aa2e8', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5df2b349093e8d803ff1bd8999f08c0a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62f57b3231fdcf276618ac95e8fe5550', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8ccff449b615ac7ed54f74e81c6dc2e1', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7ff21aae925dafbd30060475d74afe47', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bef9c928b3f16d127483bd24ab6d88ed', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a189ede7ce4f4718215d368247a9807e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a3cfcfb32226553c70c97a8db412bc51', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd4c1f4a5b1740a4abf6c7e5bf82f8780', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '65d0b386b4cba361b14734683088f06b', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd5b638fe80d2caf05a70068cb6214610', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4a45e749448997f3f208b94c2c110778', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0dd3e2d0f3a354710fe99e3557dc4bbc', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '90650349ce6b9a8e35ad92312d4e7794', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4b982e48ff492de69f21b2b832fd18f4', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '13b040ec29d22bb4fb837120419a40db', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5d223b6f98f05b3f4eedb19af8c38819', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '54b2b91789fe1aeb48d907efad4f5955', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '945cbf2bd1861645a83a175904f79147', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'facd90343711e9f9267e973af68f47c8', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c3c77a8076c1655152446e5e41b9c224', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '891f8e4fd083eedbd20bc090bb7a8236', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a7a97e887d0b1dccd4472475bb293f34', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '42ae74a1bc989fff86d3ce7de6a1ed0c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b78b8897c849699a72c0bb002f6b7c59', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.2ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4d44fd607087f9093398c116ad454082', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d752f043d0774832d7531d8d8e3dd4d', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7dbd4c14b16f54edf9e0c2c5e99eaef6', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd251c49b8f62282c5499c7b5fd797fbe', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ab993c6f629c8db79715ee4d4df70cd1', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4bf90236960751ddfb39fe19cec8d1bd', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '876c48eaa337147bc19be736c4f96236', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '69cac65cb4c331d3d823d150ef04864e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e637e5506ed1e4262369a3a9678c5f31', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bc4028328b5802ababd723b89b06267f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e6930a1ff7650890a4aaf65afa2cad9c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3eb734bad9e44d6de7725dc2fe07f2ec', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6d8882f14541f262d8ca31725aca7136', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bb86105fdb61f25845bc7ebe9a03c394', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4e14ba6c95bf8fffe8513826c3d1e78f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fb8734c82341d93128b7110d034c1d82', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '124890c4e1497c85673169b181334a77', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '250d76c03fc552771401f6539a3ccd2c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3735c14ce7733a039e5cf9638f54cb24', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee4b7900b6327876ec8eb136c68f6bc4', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2cd9f0583f2aa42241168139c7e2551a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd2727237c369cdf0a98528d25480791f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4d8ed127fa8516d8ea3472d6ee0a7445', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '399eb2bbf53f0dca58f715453b80c47e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3d5969d8845fb10b56ed0dc5bf9a10f7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '67c7afff3e29f79ac11e377d2bb9386a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6060cbf7d600bb39192090e2519b5e27', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3d3226244a7acf233a6a266450f76cd7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0599524ab39b89e52ba384e8a9acaaeb', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '177b2bdc8723c768baa32281c7fdaaf3', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '72ef55e84c73c8985afdd382a523951d', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9c758b674a302705da78ae3086587efc', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9780e81a770ba747e2c854dc1e62ea02', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6fe2dbb5c28a997e2ec2b73c55b00e8e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c247f438d5d08430fc63a5921660da67', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '205f8263386aca66d17461f97c60e4b0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '84b6a3ca0742b354dc33fe1c2dce123d', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '425e4d8ef4a2cc84783dd81a682532cc', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '10ab33cfef1e572bcb618415b9ed687c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '02cd067d99a2f8fe9a27bce7adb588b4', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f1c0f436ef493d1ca4410bdcbb0fdef7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6706b6077e57e321e2c2ae6f341d2873', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e43e42c5be8c5b27f7a87ae0b85b3bfc', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cad8b41391c04d401e891ab935feac03', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8fa38f46fafb1352a6e5cd41a4df4bce', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fdc41d028f3578e5ef9976906590e35d', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2aa0cc77f182dfa2cd5a2b50a8d3bd6c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '34ccbc0603f34216bc9c1dddf240cab3', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '68ad77da7ac2b9602b243987c7b20703', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ad313026c14ef7968a1a83ddd4332d92', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b66590dba448d9afb9cc23e3354c35bb', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fd79bbdbd92258fbe52c58137a527e49', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0193cb1c92d0e21c3ccf4079370c63e2', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1e4ad01e9a790bba5d9792e1e305c8c0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '46a0a6358c2ad80ab9a6f04742bf943a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '164bb7d1cd7ca292bb827f1337d680cc', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3b6ec7a50a0ebd7fbd8ce8719a1f8d8e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '172a20bce68f752727f692b13d09dc0b', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a04c64aaee74ad8b981f0806b2e7dc13', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '29b608e9a2d58d1675237eaf50e88de4', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2a64b079d702597d8253c8cfba2f5f83', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '77a602ca66826e4cc5a8fca7af39f216', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '859de5b9f0994b4c590bd0a4c9539368', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3734ab6730f05bfaa664053720f0edbb', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '52fcafa3a860f90c330004a181dda76d', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '382886498fa0810ba53ccf71feccea19', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c1bda968a766ba382cf518c690a73568', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c23bb881ff389961dd959920096582b3', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd83a4e2652bd9a3710649f75c2a6a186', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'faf1ac9d16c9fe9cad94fa40e52b1126', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6088b0cec67f7a86dac3854533ce1489', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '31f69791420c0115d3b2240be72d19cc', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5fe2e07169212ba45614bf9c0f2ae283', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bd4f9561d8de347e3901ad4b682bf817', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2193dcff72929d3ba312a402a95b0197', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a62b82a0108004b314ceb6d1e4d60c81', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '49f8c93eac14062710bec26c022abf49', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4d579c3ca707640e1beaf2c55d5f6a77', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9f7663386b56114d2fd91e7e25c3227a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b332f784403205d29ac7deccff65a730', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3469b778f89ac53a6f8db332c5e903b6', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '848eb8dfc17d1f04b100a0e79e144e50', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f0e15345312217165933b781f99b5bd5', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'af6f3d9698204e1fccb1755191f2cbdd', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '912dd7eb06219744904c2dc9da8e9089', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '55808873f294bce3747bd5c7efc41330', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '76a412e6f9a1c92a4af9d6f344da42f4', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8fe22d9d0862300d2335d4ca2a7d6b60', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '92944fc209cc935b261d34729582921a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6a707acd381089c8b03d6b17583825dc', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1a3d8f5df588ce7925dccefabccce994', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cf12e788991d70f6ee3251099dac8a6c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b56aa40814d18daf0a2d08aaef8be6c5', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9019f6b093255e5795b0beb7dc14bc51', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '50c1a3157587f406e00e6ee5db81dab7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '77ae38d63a144e15314cb4407e8cfecb', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c4f57e27abe7f70d1e2bfaa822fa9800', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '682d57d50c4784a3e132e28afc07792d', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6ebd485dc3dd7807fca8ca6d1906b81e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.2ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '84240776caf4cff6fd54533dbdcbdd16', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e690ebf8f3bac64abd52bcf92b220df7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '762c003fbd475651c76a6eb0bcdb59e4', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7a60d26fb65d0b98116003493f7fa68c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '948cb4b113415e9d4d47c6e49d28be59', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0cccbbe01320d6ef2265a5fad5c5d7a0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b95a1bae5eed00278ee7c6c5fdcfa4e3', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e9244495b02365d342a5f2850c8ce475', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f2b03c9d70a272f983bdf9503c3c2d02', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8568639aee99114c84b5675bbfc0940d', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb127d4dd8d45fb7dab0b14223bba2e9', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '07fa84a8faf25ad72025d02aadd998fb', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '46f18ae871330e7853733f8682f8b71f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01c034d2387dd6d952dd9af323d52d17', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '37128099f60d77f208b75ed3fe550c11', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '399c813bfb27f7e657c295601e61350d', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd180e24769162328538b035d29c77a64', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7bae284098277ef08f4ff315f261ee13', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b3617e6d2559b207d93657301a8f284b', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3791cab536c3701d02a13067c4d0a4f8', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '46c7331394356594742e475d11849fbf', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b706e777d3854e0bd5fd046a5fcda4be', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ea242a95bf95268297fd69ae4d1e44e7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '42fa70cd6f6812641865fad30c1882ae', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c14fd77a0e7d0173e4ffa8d596ab74e0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '081051e46ec9f0c31d95a22ebffc61ee', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '402db389b7ecd5802e5acb2644f310f7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eaf6c6f9c19ca5a94e7751ba6071819f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'de0d18e772dff07bd9c5ee9f44bf3091', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b7abf277731ec2d4b01b0a826f40d9a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a5e203e16eea91f7ed408f35a2d58b2c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3585dd4e59a998b26d00251d99403bef', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '663b12aaaf618418d283587c78323ed9', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a5e22acbeb29ff1f4134c7c7c9afc9d1', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '60e8f0df71204dd43e90ea063af5490c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e752b5c1ad9d79473ae82e2b82b1a8cb', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3735b7e7986d5622b559bcb3346c4e3c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4cf14c01d8577de937db6092dee8a4b0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6acb106224803bad81dbfe06fd55a2bf', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ce1986972f378b99e33979b0d57429a1', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9bd0c385aa5498ffc6178d4e517f2e11', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c5942d2578638b486f8a2101936da9f7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6d64495c10c0b622d4f77629faacdae0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0edadeead2512eba9f7f37034860333c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3f603b1fad11b4a82673aebb1ceabc56', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8e1f754238489f4d292881cc6390d16', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '446d754b5729f06f2ff676304e86e84e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b6cfffcea3d4ddde4a3a68505dceac3f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '103b079e8ca9b8f4f4d4dff5d9bbe2f2', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9815d34590bb709d864eb0a2760a47ce', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0e6103932f5993bfcc234c135df9449f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6e8eac8444edd72ac958883c5d764eef', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f4daca430bcb52f866156fd43f8a73d0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2e237111e83f468c1d90204137453174', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cc0fb01b650524bddf69646af5e9564d', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8c06b19e3b34d34d0018cb8a8154087b', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4cd8c21bbda6ee6ea367637e23457873', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6c7dc7a20020dab8625996863e363329', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b3bfda75cb712b06adb90adf266c3305', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8db52dcfb9469eff0923bffdfa0d588e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2c594d44c9142deca57a9185230eea39', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4ecebf21c85b1b58f9945809b62f0552', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fe540464943dcf85ce8ac4c1fb89b95a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5ad4cbe5c9eab7430e33723bb70c6231', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '262cd975238f038d8902959c199ee013', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2ca569c8ba5a95aefc42e5b726c90399', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9b2683d7c7b8e21e23a633c62af80e44', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '69a5da407719b350891e368cadd7751e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '653e1a4bf58fe4caafc53d631d109e02', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3f834066e6365cef707b3189d0a48452', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a4cd51eef620903de1608d9018030ac1', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '35823222b541b7b3b66a3e0fcad0c0a3', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9c52c8dcc04b238586fd7a9651ccfab0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '07be1b7506d896f082a68ebabd3dec36', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9500bd4c4f7c69bac1f474dacf1d664c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '67cdb3183ba18c29264377aae4f25e47', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd8dfd078c8399b1f8bfa42c16c727451', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2503ac9dd5fb9b618e96dca012f6a90c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'cea20af57e186d012be908c75fbf46b5', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '52293ec816d16ad36d43d22e30c6e643', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b06f26c8c17522513501927259bf0425', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aaa93ad8de24c8834286bbafe63d70be', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e5e16ed29b7dc8fd97fa57331001f5bb', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4ff4d57af3c9329264c94a6713db6d14', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a37db99c5395fccfee7dcf1fb10bd8a7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fb874b3e2c08918f72d9adcc5a89e5e2', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '707f96e383b23f60426f02e717732552', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '906c671cc7de069daba4d766294ca73a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1e2df7b44693cc579dbb4cef68a1c50c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ebb0e868fad605e7ae72c9bbe1768fc5', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e3a2856220784dd8d5d3a7d25e952af0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '71c2d7bc7f1b50178b75de2079d0d378', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5ee3bc3c7a008b0ad394be95d39ce82', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd732177c2430585f9017720e0107e257', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '186f46cacbf6ad7a47da12a1b4c0f349', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '11c3b1e775c73402e22f5353d026c86e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4287654e1a14bd1de772857d29d3d4b7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '70c842d372b05d9aaa7bdc57409eaf0b', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'aa2f0a897d4623b12f48a763fb2607ef', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f47e04e28d4f458909aa78f7dc5bc3b7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'da697f7a55fa45a0fc7d93cb41d688f0', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8c4dd8b4e68be10cd8f520f72670dbb3', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8cd21e6e3d607d271c167351932506f9', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '239eb95f53d3d8287941831c1e3f878b', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4387accb215d5b0774804e75ee554e5e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '037d1e69f6d57b6026e2446741a32f5a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '13f1050e7efab11bc4919e6eef1c2faf', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b07b09bd421acfa24fe7918f1d77372f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cc8b85de5a92eadf5f6f30beae8412bb', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9a7f132881e6ea6b6460dca28ad3fb97', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f6be1e3b3d9be524e9785967f2255ba', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ee20fb6f97824a7123c7b89f43f87926', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '21b087bcf133090272a6a2adb5ad9f6f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e1094d25b5fbb1e9a6db05085b53b466', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0c05317dad70176596b34b7781ec6c34', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2618ce30608e5f62e2516924ef5f9ff2', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '944d669a8a45ebb8a3510da43eb53951', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dec38c98380aee4c298b8385a45f7a6f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5b84abed64170a13cdc4c52620792946', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '714d219caec5fe8d65912fb7363028ff', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3f97b6bb72d23cd540f1efb0eb88b50f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f817a8e1a138a7baad9be4a0f1c4c34f', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0643120cbf187ceb8335a8844ba925a4', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '21ea376d951dcc60cd03c4ca7bd272cf', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'baa077bbbb54815020ee560f14365e30', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '89acb3bc1ff752bee6f7950839097408', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cef0eefd157ab5a12d6d91f7830d84b3', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '55cb8b074d1264fa2b2ce1a8ff392db9', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b356006bafccfc9b8635fb4ad95f96e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '877437fd14106ab3ccaf99519237bca8', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'baf2ac5ab093201159bf8f0f97f2a1b3', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '791fce1f6e140a735f796702412826ed', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '29f1ce6b9f25902c443117f4e72d1ecd', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0fcb45424e7902aed7e538984b80c314', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '697f6b754a7eac8da50aa559921a6647', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9e8e917ccc8c0f3e0e9f8049187a0e69', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fb68ec36e02258601fe78399c206fc1a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b08d92262ae16fd9ec00578cb8263084', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '61657ea47ee3c9f0e851600b64b88140', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4ac13d2d6f35636c4c7ed182cc765edc', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '97244ed177f5e00a31f247d169aeb03c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e7c0284cc8e6a4f779334be88a5b76e9', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e4b545731328f5ea96e7a804b9d6ec86', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '41f9df226c17f956a2e19a4278f11736', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '00a74d4ea6ce0f295a9f9b0803685731', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f5de735a9453df7400d4d439a8e6317b', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5f171f803a6b3f2579856530bbf61da6', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'abfa38d890c4bd3f069af7feed3ac167', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ba790e4e327c1cd50b970389632e6442', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f11437e173da5aa31f1a89fca5f1f547', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f40ef277785b450b3db0f541da04573d', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c6f4b52e11b85c13456cef05752186b6', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '305204bd21ca55f5fd29c1126c084180', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aa2fc488d0f642fdf3901f3ff8aa775e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7150c989ff28df0322375e49af25ba5b', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '03f0996ac145d642418dd103b54bf9b4', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0137f7c78d63e75e4235b4b29ba0619a', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be306189ce8991ea9d5fc2beaa54eb39', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '025e7b6b6732e9df4a550a649e0ffbce', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a38e5dc5d1c473e4c6f54fcd329f3984', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '37548466d2f738621202392335ca905e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'bf23da786672babe3716230da8c2458c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55c99f97cb34546961e822368edb81ac', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b88175aefdec864b03cdb66d023a27fb', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '53260d7a5d26b5a900ed70384d44d8b1', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '964c3fcc70cc06842f37ae69e42288b3', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4ea6266d4b4468b312ce9cfe7e2c668d', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '36c8f74c58adcd2b328720eae4d50a3b', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9a84b4af9c32d4913d5a8764da3c9262', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '899a9d8d48b40ec38077d0209a5d9677', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '024d478aedffad33ebed9aaee3a95d43', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '610f183d4531509a81755ac405b7e087', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '14373bb3799f3e2a316332cc3ff42dcb', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '780bf48307376295c362f09c13f5748c', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7d4ffa56fe987ae337e06012b9240648', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3641db53186420ef9453dc46ec57e6c8', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '05e4c77b4e317644d969539c106d9e6e', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2af62e04b7e996adee93516a4aec25f5', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '71192ce68ee208fc67ade624ef18f0cf', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'aa96a49252cdf913b4e781b916d8e1b7', '2015-02-20 21:40:53', '2015-02-20 21:40:53', 966629572)  (0.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (12.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (12.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150211224139)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224139"]]  (12.0ms) commit transaction Migrating to CreateTags (20150211224157)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.4ms) CREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id") SQL (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224157"]]  (17.4ms) commit transaction Migrating to CreatePhones (20150211224225)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "phoneable_id" integer, "phoneable_type" varchar(255), "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) CREATE INDEX "index_phones_on_phoneable_id_and_phoneable_type" ON "phones" ("phoneable_id", "phoneable_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224225"]]  (17.9ms) commit transaction Migrating to CreateAddresses (20150216092218)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_id" integer, "addressable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.3ms) CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type") SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092218"]]  (17.7ms) commit transaction Migrating to CreateProfiles (20150216092338)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "profileable_id" integer, "profileable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.3ms) CREATE INDEX "index_profiles_on_profileable_id_and_profileable_type" ON "profiles" ("profileable_id", "profileable_type") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092338"]]  (17.1ms) commit transaction Migrating to CreatePhotos (20150216092411)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photoable_id" integer, "photoable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.4ms) CREATE INDEX "index_photos_on_photoable_id_and_photoable_type" ON "photos" ("photoable_id", "photoable_type") SQL (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092411"]]  (12.9ms) commit transaction Migrating to CreateContacts (20150216092449)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092449"]]  (18.9ms) commit transaction Migrating to CreateSsns (20150216092519)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "ssns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.3ms) CREATE INDEX "index_ssns_on_user_id" ON "ssns" ("user_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092519"]]  (20.9ms) commit transaction Migrating to CreateGeoLocations (20150220213422)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "geo_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.4ms) CREATE INDEX "index_geo_locations_on_address_id" ON "geo_locations" ("address_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150220213422"]]  (12.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f6303e04d97841d5657a85697dfac98d', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e9fae6d14b5f131005864f4f4734e3fe', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5440ea3b8434ccf8f00de114fa29d524', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a73e0f594022af830ee0c40b02df1593', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd45abe5d717c04f573725bf654bfcb0f', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd893aaae7425604463a2f64fb357ac53', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fe19034d9293a4d7ce3ec10c21d1782a', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7549fa516876f04e29b50923f9568fef', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6a9e75a21520c973e708fc54615b1286', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'de0c059c6663ba6579b12706a1225d74', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ba0495e64ff5e75680ddb330bad95c4f', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b2246c15eb6a3bba3b150abd7d524f96', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b6a308326d1e2a312abb7c9c8330aec5', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2cb62ae3e81145ffc5a91a3ca2f27599', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 689259936) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '51e7b75911ce53c882b7f6e419339504', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:43:12', '2015-02-20 21:43:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:43:12', '2015-02-20 21:43:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:43:12', '2015-02-20 21:43:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fc5a8cca93ab00f443fa0a91a5f35a1d', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '935b3cefe85be5e8c1436c3d7808a3fe', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '678c196685a057d53636882f37a395a4', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1186139fcad5e17edfb017cf51394cb9', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'db8391b4da80b040055425b832f996c1', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5ce6a720e4aa1b9c7ae32b0703fd9a01', '2015-02-20 21:43:12', '2015-02-20 21:43:12', 410780858)  (14.3ms) commit transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:43:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:43:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:43:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 21:43:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:43:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:43:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '76a00fb9716987d4fb2d80f21188717f', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '66b6c53f2e9ab400fec5d6373ca64155', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '275f930f95f7d02e61527f9c45c6e7be', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8dbd4b455823e4a72d8c3524f4e05aa4', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4b846266c9fca20d97d0fe822f39aae7', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c7268eff2eb381a2ba85f4431a41c787', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8f302d4c8fab20661c5263e0e339564b', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 261299535) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '50cc074c9c10f90e8a7df9d89193bbd2', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2a1d51a8ae20017a81950f20590ad97e', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9ee629abc55881b487ff855746314463', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9575bdc40d0386c8f23dbfc325dab1c2', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c3a1f267c13d55ea8b6c1f0a1e9fb700', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7ba3039feeb00b0a0b6c72e42f8d89a2', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ca93236e64ecdb023c52e6494ae0098f', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4c8db8190ff2dfccfa69805b92d4be86', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:45:44', '2015-02-20 21:45:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:45:44', '2015-02-20 21:45:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:45:44', '2015-02-20 21:45:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a770c49103e109769557bd5e5c2186a7', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '31d2311aaa136e68203087ee0fc7f596', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7d5d97376209a2dd25ba64cb24dbfa83', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '24b36925d476f812d75281090e1c6a50', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9318e2a57c8dd2f2127d073a691c72ef', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f7a50d4d1f3af4a1660155acbb98d859', '2015-02-20 21:45:44', '2015-02-20 21:45:44', 410780858)  (15.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:45:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:45:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:45:44 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 21:45:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:45:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:45:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '413d8c53ae1c5371198e76645c18077e', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8b8cebc13af6807b2b9fe5476573aada', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '184e68361163704b956d8105430e15e8', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9ddeaeeeb56c879a32df3d8b450c667b', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ccc016fba1bdf6201f4a668b5ba673f8', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ee5a1601c232c9fbacb3a93653b8b711', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ca69ea7cef663c618c4acd8e37e11bba', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '75a16ca8eaf4f5740798642684a20fec', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3d67f4015f45fc3dab0dd4adb987849f', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ae4a2ce125ac15f9012cb6d8130ff72e', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2e9244b5b9fd89d3f14bcf2f1f25a47d', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3eef20177d819e43c3c397c69f6629ca', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '280e8f1181c254a3c3e0668362e32deb', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b302e538521ef9d78edd9edb66c4a7ad', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '93bc09ae35a9808a0036836f15c783ea', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:46:05', '2015-02-20 21:46:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:46:05', '2015-02-20 21:46:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:46:05', '2015-02-20 21:46:05', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '11dc3952b3697a81f4811d901de911e9', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b8d336e0938f52450b2cc1db32209f39', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1210be4953dd76f8f266234663fb9e6c', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1053971ab0a851493d3201e8a680ca80', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '94d39279a19ca964757e97f757d81f65', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '81596a710412bc0834fb05900677463f', '2015-02-20 21:46:05', '2015-02-20 21:46:05', 410780858)  (14.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:46:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:46:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:46:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 21:46:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:46:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:46:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aae8f71183c385c92e9cebb51d5125d5', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '805a2f3fe48241f5235dc75e5a04d76a', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'db6979d8bb31090e214597eee086fa28', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c1397e78cfe840f4f0e6723c8299d35d', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '72aa9e85a292742aff3bf253d63e8cf0', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0dc71e309cdd20ffe6850595f40f7705', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c7c65de1b5f177426612ea3fcb4a7f67', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8cabfc04cfe5034f66ac388e580a4ebc', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '273756b5681b0ce9dc6679033e7f274b', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '46577557de38bb6e887a908ace1967f3', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'eec232ebab3a86ed0b9319e525a9c502', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6052db7c36506223165eae0540b102ec', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd7522a94d29528a2345641ac13274328', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5a4b2cf3e38ef0dd3d16a20152565785', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '43ced1451882cf671581134d38e3ab28', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:49:43', '2015-02-20 21:49:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:49:43', '2015-02-20 21:49:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:49:43', '2015-02-20 21:49:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7db57684d8c88c9ec61c42634744efdf', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '14ecbf814f4c46f201f8c59ea4d05bdb', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a9310743a794d29fd39056c5a0cd9804', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '24e43769cd0bc45365571a8e358ba35f', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd7d23eaec5b897601abc913d41a11001', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2cba68adc2910b7f24e8f8770b085d81', '2015-02-20 21:49:43', '2015-02-20 21:49:43', 410780858)  (20.7ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:49:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:49:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:49:44 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 21:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:49:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ff4e47020a441f2d86a7be52bd30aa5e', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9dda86f9792179c6a599e3620e9b3cdc', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1bbf85f4c5079005e858d69aa68ad24f', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a709112ed813bf33c68ef5caa50ecdfb', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '34ef21d8d5c5071f4f3bff19eb12d8c8', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'daf90e0fe3bf5a54608c1686a6e53899', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7aa9826fe70e7ba6f4d2212b1fab63ac', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b373e160b24c13840cbffc583ba44613', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ecc69c8d02510b387084fbee909f2d08', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '78eefbc2be35cb1d7434cf30161daafa', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'bd12a983712a27403cd98c1c40f00ad2', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0ca3b99a48ae9f7aef8cb6ba4151db21', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '195a0088be468c6dc518b342fb7e2740', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cd5b526ee151c15ebccf8b1e13a851db', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 689259936) Fixture Insert (0.4ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a1c5ae9d3c30384ecef6c391200effee', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:51:38', '2015-02-20 21:51:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:51:38', '2015-02-20 21:51:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:51:38', '2015-02-20 21:51:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '598f8c4db20865a9d39d8287a6f73ba1', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '82bf33e1fb20b27f0638d19664bd981d', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b143bacc16a1621ced55502de54a13ba', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '21a700773affed861473901c495352de', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'df930adff5cd1ba7af458768008e45df', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '14ebe53ac1c6584aac75946a21b15eea', '2015-02-20 21:51:38', '2015-02-20 21:51:38', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:51:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:51:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:51:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 21:51:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:51:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:51:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a56058f0d78cc89c385bdf49aefb9fce', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e6bb909f0954a0cae6646abde3eab8b6', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '588d9474fec1a148bb3b4ba8c4bd7dcf', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '832e97059f55ff044406021e154dde57', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9ef25846aedad8391d67e4f764cded1e', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa30d9a5b93c4883494535ba89b70129', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9dd8c7fa679beb94ea987fff170520db', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a772620cb7921a73f79a2b1ade4fd783', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '087011670f539dc1f1de9d0773fad4d0', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7909fc2414757464cbf9e38567cb20d5', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dee9d823f0544ad8a1e59e7c135ce792', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b1a8ba81a142fc7768d8cd242169e999', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0f2013dd2ef775e82d6e818ee66d07c8', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1f578072c5bf0e1098629e10ecdb13ae', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5438eca621e6603c30fd109f3e93483', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:51:55', '2015-02-20 21:51:55', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:51:55', '2015-02-20 21:51:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:51:55', '2015-02-20 21:51:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '07c19df9addc0a144ed85176e0f01466', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ef4034b59420505256f1515de5712250', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '416b4ba3cead758a39aeac0c3a82e5ec', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '45c3526f9d2d4eb54ba73380fed46c23', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '798181b206abd702807cc2321e8d4d0e', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1d5e54c005587425be5171c9d35cd19a', '2015-02-20 21:51:55', '2015-02-20 21:51:55', 410780858)  (18.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:51:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:51:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:51:55 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 21:51:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:51:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:51:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e9ea55e6fb80ef210f2b940a81c73690', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fb315488895bbe588e08b2a01065d19c', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '59be5995b182785bb1f7c1b75ecdc438', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5989cdcdffafd9a44947295050434c9a', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a93658e938850c1c38b2a27959eace24', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9386d66533b314dacac2187c31645296', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b0cb353ad76b222864a718e8418e3cc6', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4dfecbb3777884e4b56a548e82c80448', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9a77b30fd8dff7e505b12d21d9e1cb2e', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5d1d34a5db0c63fff06eb6a37721c753', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9d290b5977eaadb75af26b764a293815', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '68908e71c9656b9087fd75e868e80ae8', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ed7cf5deaadd34c6589ef6c8ba3735f5', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc9844d7d91e3e2893dc86d29fc8dc9f', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6a542a643d7db84b61a2d688d694eb5c', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:53:41', '2015-02-20 21:53:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:53:41', '2015-02-20 21:53:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:53:41', '2015-02-20 21:53:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f8534e02084f623d4ac12b5bb6c75d0b', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c961630fd7dd2697df0951897ff32177', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '04724bec8228154959201278e68871bc', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cbef3403427b23cd89b80f24fe093ed5', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd92becd09d5d85b3b13a0d390fa58b23', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ffe4829adac5720827bd1b2620688d86', '2015-02-20 21:53:41', '2015-02-20 21:53:41', 410780858)  (23.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:53:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:53:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:53:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 21:53:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:53:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:53:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8f928ef3323e631eba359a9cdc31394d', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 761411935) Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7d7f2803c2d61eb9f5071fac9cf5dd72', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7f54c5d55e4fd506eab13b053e514c1c', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9ebcc98abe310349c2253c5e23e550fc', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '85ec9db61768ca85e0aaf8223221465c', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '20936e0d1fc1396faa687f4c8856c39e', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '96df2b4eff058f577d9193b9b3723f88', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '52c58e15b6b03cd8f37d3379dc12a1f2', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ad6c25987396cc41aa03844e86c1f05d', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '772071540448a9ffaa4f3e0ebf31e7f5', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '36699d09ae991db71540c3641bf56e32', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '37327bdb3c77e784c6fee0368054dcae', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '87c05d02b74d03eca77ec34b59a281ed', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c8a8a0eb9eec56c1ccbaed20e4f09bd8', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 689259936) Fixture Insert (0.4ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e7f99683e964f58e8ff3c8e27bf6015c', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:54:04', '2015-02-20 21:54:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:54:04', '2015-02-20 21:54:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:54:04', '2015-02-20 21:54:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5862da397bd771f3a77fe3a80b2b6b7c', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '62daf8d790968760f401be1c621ecf63', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f2e0b949cd5540435dc838d862d49e11', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4fc6300e2cef181eec2a07046a854069', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cb457ad3ee8f4183b80b1d5b2be5ed5f', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd87e53af7d7345182721abd380777354', '2015-02-20 21:54:04', '2015-02-20 21:54:04', 410780858)  (18.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:54:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:54:04 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:54:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 21:54:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:54:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:54:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e4e009c7a44078d7b658a4b14577abc8', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c9969810b1dab1082fd1278d6a7a25fd', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '312f410de773a3ef9787324d6b39be5f', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c979786fe159a09de59e38e50aea637c', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '984c8e4ab9ae15fe74ad4cdfe75af41d', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '045aa1a7e9e9cc7d50516368388e8ff0', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '34e37ae8c37c33971141ac337452f21d', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a0b645bf344ba4551139b00bfed3197c', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b218062f51fc1fe86b62623424bdc179', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.4ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0171dae98b15d4fd0c21286891a0253e', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4bbd9d883d73d9bcf6bfa8e07ecd3eae', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e5186889ecd358f5859778b632c3deef', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '54a7f221f8b4c310d7709d431db6230a', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '56d5741489b24f267ab915ade1ca4fec', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '13f238f55c49b8f204ef92adaa673851', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:55:12', '2015-02-20 21:55:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:55:12', '2015-02-20 21:55:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:55:12', '2015-02-20 21:55:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8c6de7070391ba896d835dd7d13531b2', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '62d60e3c8dad15b967d532dee8f2daee', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '048ec922170306540a7146b548dc4dfa', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 471587404) Fixture Delete (6.6ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7b6049a6208ddd07e52625e258b735b0', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '649ea9168fa52e5928e13ae8edbf77e9', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4f8f25b74a664119c80449750d0006e9', '2015-02-20 21:55:12', '2015-02-20 21:55:12', 410780858)  (17.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:55:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:55:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:55:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 21:55:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:55:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:55:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4ade871bcb3a42195683dfb79afdea86', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3df948c2c3e6941ebeac8dea23b60d92', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '103776dcbf18421167ce2f5bd9fa247d', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '594bbf10a5709dc8ed7e8acae7122c16', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8e9747693710d262026cd6fe0df24c7d', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa5f69b4da3b8cbf6797e8798665dddb', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '013004b47f59cf2fa4f2c5d166b53bf5', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '25ccb5114c96edcd6d8628a67d3fc726', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5e01dcd11d8bf2b2e731352c1c6752fb', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ba2a0c0faa6a17459b32c56ff4fa2be2', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '37e93ef92dcab01d24d9e1b7fad7b901', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a759cabe1b30d3c3bd7f2ff3faadb095', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e8f25170c751a29a94f2c454190d5181', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '004926dec58dc0ef2f5c141a629786d0', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6926165f3f7b843d369a6bb92285afb3', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:57:00', '2015-02-20 21:57:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:57:00', '2015-02-20 21:57:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 21:57:00', '2015-02-20 21:57:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7ea88d75cb1155c832d2d258319d1838', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8b2fe7a33d505bf676b8fdd594300512', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '477ccbfd23e56aaf2240b7cf8f69d5a9', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '31f78a2bfe66af7e433bce773bec747d', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '19dea4ac55156538a4c4801218bc58c7', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7d5ed2c02d51b0dc863a0907cbab8d51', '2015-02-20 21:57:00', '2015-02-20 21:57:00', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:57:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:57:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:57:00 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 21:57:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 21:57:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 21:57:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '26199d992f77b2ca6bb0557bf153882a', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd62f707b45332b7b0383ca53d6206fcb', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7b98571c4179ef5ff8f359aec783ceb9', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'de6b24334825a3d849f9c502a351a160', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '381b6c2dbc1a566b212b9d7eb1847f53', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '81f9e32c2f20eac6e08a6b59d2ee86ed', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd1b6c993d73a747ac23419bce67e47c6', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f7f6b4b008c46baa8c2b74b7d61e30b2', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9681dd05d03be470008fb96b582cf2f9', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8a8284febef2c7463d7e65824aa87c66', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '74ca67cd3828ee3f1a739a98d60eb609', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '23ef02840ad8910ec5b324f0327eb151', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f665b4715257102d3c37ef3bd2d25672', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5746735cf5047486de5d1d380e309b08', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fa04a8b7631a40b81d11e7fcd5220a23', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:02:04', '2015-02-20 22:02:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:02:04', '2015-02-20 22:02:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:02:04', '2015-02-20 22:02:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2b73b235a0de5d38e7e6949ff5ec6620', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0c7a54b99602963eb215b07c9ecdee13', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6c30c1d078678b1cf5cab9a02744a132', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0e7f42c6991a05ee3fb3930ad26b02fa', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1e0002bf6b712d4958f7790d04dfa1c7', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4499bb472b6ab886cbc1a47e32366eda', '2015-02-20 22:02:04', '2015-02-20 22:02:04', 410780858)  (14.1ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:02:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:02:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:02:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:02:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:02:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:02:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3d89030a4d220c5533f9f184de019e92', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ecac88fbf9096f81b3b1bb7f4d83f436', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8708b461038950da0953918e7f4c3cd4', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0dc9378cf486c4f5fcfdbfd016094bdb', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62b4abb6d57850d254c7f698926cce01', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '72c6637020fdaf425fa464daf0f6b5d4', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'cb47e912ad02f5f2e63e5e2b625d5a29', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2210cf4ffc62ed56295a0de1ad08b514', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '43c1b3ee4cd1b7edd8ca1edcf0cb3258', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '23285e6b5c8e08c0f4e55435420f04a0', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ebcbe8da6f6e4ab8ac53834ae6925c3e', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7a865a7897777e055ac4b3218b8c526d', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '13a0c31fbd2b801378422c88bbcc7036', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '38c73bc016379d547f64e3620ea9cf56', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a3c464959549f099ce66a4d3bd49846e', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:02:35', '2015-02-20 22:02:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:02:35', '2015-02-20 22:02:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:02:35', '2015-02-20 22:02:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6ccb191dcaeff912d94ae4e845268773', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '326e4cbdff93dfc4f3bf138817ec8c4d', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e2ec97b0a0cfabd8e480fb80409ff5d1', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0a2e795c21cb0a3f5a0de90687b349a9', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fbed067f006932bb5238cdab9935ff98', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '249ed3080eb52c0c67df1d30c40c0540', '2015-02-20 22:02:35', '2015-02-20 22:02:35', 410780858)  (12.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.4ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:02:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:02:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:02:35 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:02:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:02:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:02:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ce56e1cbfd4a076474e1d8eee12410f9', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5908ece2cde890466fa08917d3f478ed', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb67e0413e8f45acb63b9bc2ba769382', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aa1faa8186871a9d7cd6619f4c554973', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '82d7a803e181a44c30fe380053b0babc', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '62d03a089e997fd4135110f5d7a734e1', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '331448021c310f4e57c0bf87938c7211', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bf5cb318a863052444d0e2bece75787d', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b61a08a686cb902224d4f98d7020fe64', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9890f7987ad307ec04634e987470c2f4', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a905d2a2728d2dc85d1ee591ae9bcb60', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b0e55805285935e938b3a25201d18fb5', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '83326be5a33209582c4ac8eaa3da3c23', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1db5b0b02a2adb827adb64b06491be1e', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1dba29f4a7cadba364a4a1e8034de152', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:04:03', '2015-02-20 22:04:03', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:04:03', '2015-02-20 22:04:03', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:04:03', '2015-02-20 22:04:03', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1d953352e563ce6840b56211d801e885', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '727917822182956743db8233ee67f824', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7bd38a3496d379315837b58d08a70998', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a7aa2286288d39a2aeecd55b8a2da34c', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8af5f1139c2eaa40627156e147250b19', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd43760c7235c95cfa8106c4890436f40', '2015-02-20 22:04:03', '2015-02-20 22:04:03', 410780858)  (22.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:04:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:04:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:04:03 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:04:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:04:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:04:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8ed46a2eb08441f570815600f6220f26', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e11790ea64a4252d484b78a5eaa12bca', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '38feb0f4e8e010f48a9b65f36244143b', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ae35fd21287f976b02c69bbe9a593d53', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a51c052bab8ee3a607140238a51f268d', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7b6214c6398b9976b7dc3856f10835a7', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7b55bde8977d2dc231681c335d8484be', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '73c6c9e8e5e31a0b648a88502c5f8d8f', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 478996145) Fixture Insert (0.4ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4b5bac82f42943bbc7cacf27b24751ba', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 966629572) Fixture Delete (0.2ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '59c03c4ee736692f4e225bcbe651efa7', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '72bb78338658f5b94f12492a8977a78b', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5338c009b46266099d11dcfcea070adc', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9556de37765e04c674be40619edac0f8', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b326cae95c0a2cc7d5589fc7e2756203', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '13e8637aba77d5905dd2450f7814fd92', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:05:38', '2015-02-20 22:05:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:05:38', '2015-02-20 22:05:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:05:38', '2015-02-20 22:05:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '21ca03f8a0459559baaaababc00360ce', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ee08fefd08adf70f504b5fa14c0d5dc0', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c883215a362c70a53d9370cc8064b5d0', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '63f8ab9d0fb0e77e0a6cd5ac31e3efd6', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f701e2cbe00249051d86d6f9ffcf3730', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a25dbfa4608a79d6c8cfecd68d76ef84', '2015-02-20 22:05:38', '2015-02-20 22:05:38', 410780858)  (20.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.4ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.3ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:05:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:05:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:05:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:05:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:05:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:05:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e45f3feaa5f10ce73ed016c10f73ff4f', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'db64cd283c67181636ca1fcfced375c2', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f4f7574e3f51e755e8ef090046ec92b0', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ff261e8aa7b4ce0e83b36f91d45c132b', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6e6bf4c272b680b8c37b94b7bc1b0b40', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '371af7835f8598139fdb37a64c8c2cac', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9d48d93ca599cb864746f2e54bad76d5', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c15123282d1361c0a15438d5d9acc8cf', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4fa8230d04a0be4fdfd23143e6a35c17', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '54680182afd6473d3d9ccf37a62e7634', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4aa4132f620eeba47abc8f693097be24', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '125203925ef050d6d517f89845f5f71a', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cb04eb71776869ab27c338f25af10828', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c1b28f5af187a3f36611fa36b83720c6', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '87ec02677f32d2c58d60c10352d1bc6b', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:07:23', '2015-02-20 22:07:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:07:23', '2015-02-20 22:07:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:07:23', '2015-02-20 22:07:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5dd83804e4c9b7ec367f40ac8653531f', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ead57bd3ade04977f56e4fa7e377e146', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9c22c314dd8d0c1d4d3c0e9495d38ff3', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '75e603083f6150de849d4c472d40234a', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8e549a0b5519c0ecf9dbfa1f7ab2692d', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '55035fde034c827b84af07eff79badfb', '2015-02-20 22:07:23', '2015-02-20 22:07:23', 410780858)  (21.1ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:07:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:07:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:07:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:07:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:07:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:07:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a945091e0929637813237d25816ffbc6', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d060ee52a37b94e87a3a2a35e59f1ce', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e74dc6a587e233c8ec1b916bb79c4289', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c1d797c38378174d847b2353abc82f27', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '054371cf2bcd1429acfc341ffdba2eb8', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1d887362ffd5d51ccf09b67be399c19e', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5847783a8b1c959676e295674153137e', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1337bc647eb27d677d333aa518c2de89', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9a096ee4ad5361448898fcb1031b6d06', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5ee0a9a6a35632c4358213019faf61be', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '45f945b7e78bb80d3361f29e5c025205', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e8f0fa752fbe49cfcb8ea797ef5508f3', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98149973911c46e0c208f97c87d4b45d', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8c4a7e8bcb89bb707774b42e40b9a93b', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5ca1adb1c11931e46035861028aa2d2d', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:07:51', '2015-02-20 22:07:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:07:51', '2015-02-20 22:07:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:07:51', '2015-02-20 22:07:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b80be5a17db1352d7e16000cf807c1f4', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b73bee8b6fb1598512c0d165eb96f7be', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '43132defff838e3d2b40f8306346cf95', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.2ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a4370c9ccd67efc993b03d34cfc31c7d', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b715cf4251d1b201f1e0ea64d7961d1d', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '075c62bc5d9a0cb3f7d13600af7a1edd', '2015-02-20 22:07:51', '2015-02-20 22:07:51', 410780858)  (13.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:07:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:07:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:07:51 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:07:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:07:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:07:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '87cd003e671f17a984aa9b5afb5c7b7d', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a15555add8b4daa5b9f277038912eed8', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '236dce3c4c190b64d59f14f6086a451d', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a001003bf07f3d4a9f06644ab2c0c24c', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '067d405d804483a7b1e37a6b8549417d', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5fd955bf7c05dfa6a56960c4aab8fc5e', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '76ac8c87ce6a3fb4ba92573f59204329', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '396bdcc624bf7df6a8fe68720c454024', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0c981ed3e5fe35956db1c57dcaf490f1', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cf7349af8ac9969256658bf70ce00bb1', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '255f218e417d2d8cd6c80188a75e376f', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '615920f701df55b3b1fd8adfe814ac15', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb6b669a8eab9674345146648a139f3d', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c905576ef43f797fdecc74161b1e985a', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a370631077e754a3bca61704679ee864', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:08:51', '2015-02-20 22:08:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:08:51', '2015-02-20 22:08:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:08:51', '2015-02-20 22:08:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3d5d9139b65a93765a47254fe6c16a5c', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '11962bfee34f00065bcf4d96e0a77402', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fb9266c01fe5a8b4ec61ce960c3536d2', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '15138f65f0cba424b0e0079589d0aa18', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f8bd938812d1e6756afeaa98801ba5b7', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '24bfd13c7d722fabc7b680f45f2c2757', '2015-02-20 22:08:51', '2015-02-20 22:08:51', 410780858)  (18.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:08:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:08:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:08:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:08:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:08:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:08:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8995842aef19dcbaa778d34a7ffac636', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '00332edfd665af13390031e357c7c334', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f8221a05196e9320b4e5223c1684188', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5213c1c1956aa709c98d01d20b9071af', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '33144664262c66b57a32155b349f2350', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6e76226e25ca8215b6dac473e1ae65e1', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '01620a7cf1d9fab3277975b253cda5b0', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '156c92579fedb9a6801c6147673b73c8', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'da3adbd0dd58f329a49c2179e1d39e7f', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8c6bd48e5d8339546bc8c9f47816ca7b', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5628214d73691d5d45490568cc1e795b', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fab1573fd207b5591a07bbae90438c8c', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a3fac6ec822fe9380ad5c24a0bf6e75d', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0c7df1fb3e4bb5eb155d2e039e6f4058', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9d35a56fa46b9a547dd421829f39f64b', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:09:22', '2015-02-20 22:09:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:09:22', '2015-02-20 22:09:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:09:22', '2015-02-20 22:09:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bf6a0bd48d4bbc72653b0e18fd57acb2', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '22ea1c7c95f4b824fd260d9730a24f8e', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '79f36fd11e73b18c6ce501c9e03bcd64', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '251dc0406c7f27ece388a2ce039e0750', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c328cc70a822678a921c5de0c94beaa9', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a2c3884431b626b5bdc33611de389530', '2015-02-20 22:09:22', '2015-02-20 22:09:22', 410780858)  (16.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:09:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:09:23 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:09:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:09:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:09:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:09:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e9a4354445d6c2bef8160c76122aba53', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be0653571ac11305b918b17e0bdfe8c6', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '53923918e600351f25ca57cbf9b8616c', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6d974b6dacac87f63b5bc57ac6ab3a10', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5cf8700e7319eb630f790b699e4280b6', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '12b4b796d198df9dc61982a9b249f3da', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '24a7e64a913a1ca3eab6e0ee69ccb9f1', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7fd4f644912b46e3676cdfe2368ff39f', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9e6b63ab62da9ce1f5e566570c8969da', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6817faeee990236a4ebb18b141cd158c', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b1f83b0dd23bf8b18b86b549d954cdb4', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7395662c4267dd018509d24d0a54619a', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6d2438380becfd5a721b8f4d560cdc98', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1001c14c72242c86ce16649a46295828', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b0ea2a9374be5b4f644f93af5294860d', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:09:55', '2015-02-20 22:09:55', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:09:55', '2015-02-20 22:09:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:09:55', '2015-02-20 22:09:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6f3d906b0b16df8506d478d5d4d39bf5', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8803c2088a2d61dba3c42e7afb4f78c6', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b8d27a152fc688cf39c46a2f9f6b375b', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '93f92da16794c92dea109b2d52c7df86', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9b649add9a68b7e568902b4fbcb622fc', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '17a05ff986d9f780fb9fd1abecb24f1f', '2015-02-20 22:09:55', '2015-02-20 22:09:55', 410780858)  (26.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:09:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:09:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:09:55 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:09:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:09:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:09:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e52a53bb06633275860209cd309dba5e', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '02377413bb4ad523d53fe35d9340c661', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '47a0f63d66f4b344b46e4b49d2d6a83c', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9ab917d0556e0a705f8ecfc764db923e', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0bb29d1df10b7611c16a4af3fb03f9a0', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '54ca6f9383c0997a9032a3d5708d1fad', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'de9e326d959abde81e7951bd597485d8', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e6d5b685fd01496f55e3e491f70754b3', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '547527df85d27780f33443bd3995cb0e', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f74163c7280558014b23c927fa7ae5f4', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6f793ab93f659a80e10894ac1a2eb31b', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f3fd2f1e5c3529b876238455dbc9f0c0', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ab7041eaccff1e5b606b032a12652a0e', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '808d38c9e17c8b393221ba1ad80223cb', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '978c6910b69f6d13d005a99ad82e84c4', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:22:37', '2015-02-20 22:22:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:22:37', '2015-02-20 22:22:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:22:37', '2015-02-20 22:22:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '06afeddf4c94ccfdca7fd2b78b5f6750', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9dea790b5a84d69e35560a657c1fe517', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4f439653eb04c625fc41af6715ad831c', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '933db59e071ed11770acb30c86e21b36', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '59dd94734593e8176bfb2216e2a4d6aa', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '26f22e50d7c1a3675465be8580a56b01', '2015-02-20 22:22:37', '2015-02-20 22:22:37', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:22:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:22:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:22:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:22:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:22:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:22:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c58308fd0afdd4736042efb2d031d957', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7ec6182b683c9a7bc377034f83819580', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7792e2e25e83272a08efef3009988a9e', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '03db7fb012b7626314170c6e1a043686', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '923374885edd468b918b89bfda922797', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '752b0e4be3dc224ec2b37d0333f624d1', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0e77dfce7358034608091e7e1c1f8f55', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '012dd022387c6c4b9d8ba734556caf24', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0150977a452db468eff1b3cae9a12522', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0635e75cdcef59ecee4a1b19ee4a5c5f', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9e13cf3a39de5fd8799e9a4ff893de04', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '73b458372a2c0aa29e23a54d5b42b7d4', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1146505c10901f5e21265b17dc2f0261', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '770e60a5d856b6aeb831a85bb71bc4d4', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ef6283ae9b6f8bceda2d488afc5f1921', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:23:15', '2015-02-20 22:23:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:23:15', '2015-02-20 22:23:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:23:15', '2015-02-20 22:23:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd84371a1853bf4a38274db1cd9a635c0', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5b04e252822d0735b3ad26a3bdcc5c67', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4cc79238e9fd9f19fd1b4f41dfa2ce7f', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3fb8bd4e02861bb52d019540048fda93', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f58fc981742222c843d03d104f456734', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cf26752367bf448ae66ed1fbb819b11f', '2015-02-20 22:23:15', '2015-02-20 22:23:15', 410780858)  (13.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:23:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:23:15 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:23:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:23:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:23:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:23:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7c150af9256c6c1d28a5a4d5371e94da', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '484dbde844ae73482eb764e63d56c585', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'be7ee713ad21c8e34d46153a34531ca6', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd0cef4b921d7716f937c7b9ee0e0589f', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '27d79075e0cc5b7325d504a753933366', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b31556304759e39530ac856d099f9065', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ed442c7838dce1f5dc6485ad118b6b2b', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cf2ed829cb8f8a2a241b2c6ee0d04c62', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7929f183c65078492ef1491660049c58', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9c3d605074359b636a6264567fd96e14', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '527e8983d8b820c3169277a87154e74f', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ac96406797caa2fd2439b6c35073cd23', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bf9a8d1ab7ca70d0ec4bfce48e06f5d9', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0f963cf8d91e3ac64c6d32e66ca9ee01', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8b9785a49af695dde47301aac052c994', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:27:44', '2015-02-20 22:27:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:27:44', '2015-02-20 22:27:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:27:44', '2015-02-20 22:27:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '55e2e710ad990cdef8d389160f2a30c9', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f21a7961e0ef789f6513cf25a0a42c5c', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '90e13255ed161a650600a17179d36f73', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd0643092f051daf6ddc2ba62a6a836d7', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2db883e67a0c3ad6d37b55af1f793e0a', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5aee00fa249f586d1b02a1e2e88cc717', '2015-02-20 22:27:44', '2015-02-20 22:27:44', 410780858)  (28.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:27:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:27:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:27:45 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:27:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:27:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:27:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '87e64b760a9da5eedeaa0f85c518ed96', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '98b4c74351adcd5a59a6cc2584ed3b74', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '63529348ee765e73d6bb55e013605c35', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '18188448b619a87de51c2bd7d35087e3', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd1941f6765265b97a87a4d3522ad92bf', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '95b9ac58788696ed141e4ae40ddb2c9c', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'adc74c6419e026f4fb069be3ad7aeb69', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e21b6f2abbcd9bb014146064b42a3a68', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e1c30a63131d8d4581e839fa63f36283', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '99f7eeab0e0a13d838ac69710a408fe3', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6c4f08c544a153e3492bbf403321547e', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dc8a7431d37f210c188578f50252d709', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a49c7edf1b5338aaa7be7df78913a10d', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0334168cfd86e2f212d26a62b196832c', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a2fdc39ea3aaed93d7940b40e6cb0eb', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:28:20', '2015-02-20 22:28:20', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:28:20', '2015-02-20 22:28:20', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:28:20', '2015-02-20 22:28:20', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4856900ea4e90819000f3a8ce696836e', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fc19a11913de2d02fb674026faa14798', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '84c3b4aadd56776246af48a5e4218935', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '94c74d2bc48cb2f8695b5e4cdb9157c3', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '20f012b21fca7d91478eb8aebebd1cbe', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3be0856c5cb1c970c033a15927a5173a', '2015-02-20 22:28:20', '2015-02-20 22:28:20', 410780858)  (26.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:28:20 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:28:20 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:28:20 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:28:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:28:20 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:28:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7d00b444a32645a1116f937bb08237cf', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '35ef8559bf33f6535b41cef2a48e2de5', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1ed17fbf50b69ecf2d2c6341ab6dedf1', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a04a4f8e40b6f831465277126bd3bc58', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b70d0e84b2c99c15c96651818719236c', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4a62e2095b1d726684b76587306f273e', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a4581e24b9046ee7c4268b4ecd014143', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '45defce9c2a2dd5ada848ef286cc3a30', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '250cfc7a7b06114027558731521321cd', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b7f4d9b27973b94fb9abe9cfd153e693', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a6d4cf5a39b1121c068f326d3d706409', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7da3f88e3291a8ad0ccd9cefa4fa86f5', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f6d9477eaf1a84f340912ab87c838d16', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '64b1a9e36110841861472cc9871f4d02', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a372a27b150ccccc97ff5e086b0b04f5', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:29:47', '2015-02-20 22:29:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:29:47', '2015-02-20 22:29:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:29:47', '2015-02-20 22:29:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '583feabdfa05aa68e2e781e33ca2d120', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '93391a0b6bcc397ad1e1307e89a4e625', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '27d067a6ba225ab1d52ecf4e825763bd', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '96aef835f485cc607174ee795ad126b7', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b4846c2f0685f4ece36609365d830278', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '63d6c20937219e889190c0d688101e28', '2015-02-20 22:29:47', '2015-02-20 22:29:47', 410780858)  (13.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:29:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:29:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:29:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:29:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:29:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:29:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cce306a8d17eb687ae3753480941afc7', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3e62fc3e209110870db8b1cb453f9adc', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9e90bcefa1126cd0c850f24c155e3c1c', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9b8d80f2c5b29fa1f6f6d60844ba215d', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1b77fea3680506f57dcd6cca6babf7ab', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '95e9954cdfed5d1c8c0db0ebd5e6d89a', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c67010fc8fa51efce539df6311d3ade8', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '68a0daee1195f28497f4870cd572c939', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c07d5d361fbdbcf64ef0c21975aa0b64', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bdfaceef48e7432938623c170e5ca856', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4c5e8a7cb3622c078ad5357bc5c9c8cf', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5df3325ae3da5fc9cf8a1a0125a28ac3', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ebd5e20ec2285b54a6a0bb427bb13747', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '28a4d420a61a0f96a6b0452e4e9e8c71', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd6c05b3d46f94bcdbffd69a75b21b081', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:32:04', '2015-02-20 22:32:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:32:04', '2015-02-20 22:32:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:32:04', '2015-02-20 22:32:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0427e7b801994c0f72d70a8221620762', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9f72130b3e8ce963200f1f8835129e01', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c4e2eac15c943a01891aaccf6014d095', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1ccc92f127ce256590a4c524503f6102', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4365ee2aae68d4cdde4a7f8ad4c65fd9', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b324b1a5b30257aa15d0fa13efa33928', '2015-02-20 22:32:04', '2015-02-20 22:32:04', 410780858)  (13.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:32:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:32:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:32:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:32:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:32:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e661fa0b48d2921eb03379966a913f8a', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '646292a8bf45086555d312eaf0f1578d', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3235d6d0fc9432a0e22351d4edf3f5cf', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '356423daef49bfeaab35030ff8bc264f', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb94fe39d7b973f39901719caa95d5c9', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '634e3aac7f22d81d296e64b17684e7d4', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a73765187fd7ca3a224936874c8c799a', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '45e4f40853f8a3eff6707cfacacbc98a', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '56806affebcd0dde7475acd2ca952214', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '33c79662bc09336f326d3f7f1e58e6b3', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd21c0cc4184ab35e9ac3694b82ea8908', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '39c1347209358433c419a27acbf93650', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3ea89843e4cdd45ba1f8df265c04db4b', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b364e3a94618782adcb2be6edded5c32', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0457171576f0e071d7b7e84f421054d4', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:32:18', '2015-02-20 22:32:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:32:18', '2015-02-20 22:32:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:32:18', '2015-02-20 22:32:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f2d5e73be904e7df812839ab48d67959', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e3b5f02ed1bd12bf7f8802804455b524', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '13c5f033aba88efbf66b949edc3b3d1e', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '455e07c579beb94c296e66cefb916271', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '24faa9d5832af2dd824cec8be079e6b8', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ae79d41e6d8a844f573790197c1bae61', '2015-02-20 22:32:18', '2015-02-20 22:32:18', 410780858)  (30.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:32:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:32:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:32:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:32:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:32:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:32:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '14133f4fd87ca445d62fdbd4eaa95b5a', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a9cf2ca7540fa98151e12672af66e3cb', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bac2cd8c972481907e76c702ebe07e4b', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4a28e8acfc5df6eef7d71cb6c16fd02d', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5c7cf07947b9f89b987e9c48ffe375dc', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c54a610e564c25ef9631995fc3eb8c1', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a6f5ec0bab87b46e08f50eeb8a6a2336', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b52328c42fca31845b70552965090906', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1c41769c3d5e2f262a5bbfdc3ccd2e12', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7dc24315a6916725cba50091d08580d7', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '23a37d614e12eb49db2de3c696a0e5a0', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9dcfa4936010800e7eb309e8f487f748', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6796236c77ad8b99b2166558928dd0c1', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fb16b88982ecba99862cf1fed099a7c6', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '82a7f7d3dff30e652db1a41dca2d8e4c', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:33:49', '2015-02-20 22:33:49', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:33:49', '2015-02-20 22:33:49', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:33:49', '2015-02-20 22:33:49', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '31cd969a2e62033dd01df87056cbf932', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f706cc17d1670afe0f5856cf567b2f23', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '981c1234fe439e36c6a0b2bfdb8f262c', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '07eaf8992848d39abd17a3a946558f47', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5cff479f2ef4bc62fed5f5969f584a44', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2aab3c24c147db36cbef423e93c43480', '2015-02-20 22:33:49', '2015-02-20 22:33:49', 410780858)  (34.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (3.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:33:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:33:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:33:49 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:33:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:33:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:33:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8a70f380a26a4d0f25736505f7ba315d', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b54eb97a28de41da67c443bd80645ece', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7df7dc9b7fe8b18f235856e83435f5e4', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4ceeedb1146a25c4d3228401e7fc2b14', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '31925d78fcfd7d86ad21adf38026805f', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d7d7595a3a06300653cc24ce1baa1a9', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4ff30a566c595554d9f8deeba207d3d9', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '56800cb53ad8e71ba040236214441aba', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '597d4507798a1e676d964c3ec8cfb855', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2318950ca91a159303458fb511fc3a8b', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b7a23be1595bfdb08b2c9e142be43d01', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f3614276118af7dd263ce300d2ebe3a3', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '05a9c6b209ec1d2091e8aaec20df08fd', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd41fa87d674f9c7b6697a2d135aebb9c', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2d348a4bc30240f26126c5da737833ae', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:35:01', '2015-02-20 22:35:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:35:01', '2015-02-20 22:35:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:35:01', '2015-02-20 22:35:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3cdb21850f5ef254ba730e5f291741b6', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd4a784881887cefd95ed3860d2692fcd', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b581f064fe9001b2ede277155a03893c', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '09b580788754fc227469321add46a279', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '22affd2096246c248941df32996d0dd5', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9750c55050792437e7ce7f4fc12c5ddb', '2015-02-20 22:35:01', '2015-02-20 22:35:01', 410780858)  (19.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:35:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:35:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:35:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:35:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:35:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:35:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5968bf9bee2f85b1d007f5030d72cc28', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '004f9b130bb8360bcb4258ba3bec40c3', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '11ad78e890931b8b04aa96082c51b83c', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3d1127576dcceaeaa8a59278ab4a6a1a', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee4f05366a04f587ba533e29948e8418', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cd5a7f6bcb717b489d68a2737ef3f9da', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f61a50998aad40639d6f3ffdd88c6b10', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7406fa11c7bb542573962e8b1670fa1e', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c686271dfa316d0e94d9a9b101fde594', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c31cd040c7b17f1eee7f746820a2a175', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fb3838fcabe455a90d212854a013f7f5', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b99085398c355b659b13f6a769c5bcdc', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8d577bb15da2295393069bcdb93719e8', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '378b5facc4a21de63cc46b9fa1e55a65', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'adb02836f91dd72839bb1424e9886f71', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:35:19', '2015-02-20 22:35:19', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:35:19', '2015-02-20 22:35:19', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:35:19', '2015-02-20 22:35:19', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f25a3bd8099c4da138e5fe63b2f8cf80', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5cf26d3d92a10df0b22184a1ea03904b', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8f3e1b738165482a611696682cb14b9c', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7453a707754573c736c748f5345ef11c', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ee857bd655732842789eab19c0148529', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '673c8f12e50a8ece84a66a1a0765ea6b', '2015-02-20 22:35:19', '2015-02-20 22:35:19', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:35:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:35:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:35:19 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:35:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:35:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:35:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (18.5ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_id" integer, "addressable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (12.4ms) CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type")  (22.9ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (28.7ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")  (29.2ms) CREATE TABLE "geo_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (22.9ms) CREATE INDEX "index_geo_locations_on_address_id" ON "geo_locations" ("address_id")  (12.4ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "phoneable_id" integer, "phoneable_type" varchar(255), "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (20.2ms) CREATE INDEX "index_phones_on_phoneable_id_and_phoneable_type" ON "phones" ("phoneable_id", "phoneable_type")  (17.5ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photoable_id" integer, "photoable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (13.3ms) CREATE INDEX "index_photos_on_photoable_id_and_photoable_type" ON "photos" ("photoable_id", "photoable_type")  (13.7ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "profileable_id" integer, "profileable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (13.6ms) CREATE INDEX "index_profiles_on_profileable_id_and_profileable_type" ON "profiles" ("profileable_id", "profileable_type")  (27.0ms) CREATE TABLE "ssns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (17.9ms) CREATE INDEX "index_ssns_on_user_id" ON "ssns" ("user_id")  (13.7ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (13.2ms) CREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id")  (18.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (12.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (13.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (12.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150220213422')  (12.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092449')  (17.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092218')  (12.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224225')  (13.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092519')  (12.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224157')  (12.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224139')  (12.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092338')  (22.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092411') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0b9f70b67b7d3e058bd4703466fa548d', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fc376a77a15f517fea263c3cd364fc2c', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f7f650f26258095d1073dd8570cdc37', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '063836128e483a905467df7c8d6886e2', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '71a96d302a87d8df87f06722ceebf911', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dd0124e45711da44b16ac15814e644f3', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '47b783915bf3e61b877e2ece97988266', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2e2abccf179b977ee656b42be2f9fcf3', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'edf87cf003e38c2cdd9f5323a1388d81', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '64c6c0ff359d49dacfff933158835f34', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7ff86bf49173ae726de1eaf8602f7136', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fd2e10f4203365eb284aefad18f3045a', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3cd571a04bd060ce1949c3785916a50f', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '68afd06b280beeb98933c08de69dccc8', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a2ed2562e6cd941480683bdc6a94c02d', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:37:43', '2015-02-20 22:37:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:37:43', '2015-02-20 22:37:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 22:37:43', '2015-02-20 22:37:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8cc8c7ee89140d7d765c7ced713c3bbf', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4f63e87b7608f0c328a73efa597aa10a', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '881bdee08b77326e23a14fe5b898c06a', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5c149018791bdb52dcc5689a40a81c57', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8e7f9ffd816e7a144e5400b9a7461b36', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e3d5ffceaf09e69102dcf7ac53c3bcbe', '2015-02-20 22:37:43', '2015-02-20 22:37:43', 410780858)  (19.7ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:37:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:37:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:37:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 22:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 22:37:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 22:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateMetadata (20150220224147)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "metadata" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "metadataable_id" integer, "metadataable_type" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) CREATE INDEX "index_metadata_on_metadataable_id_and_metadataable_type" ON "metadata" ("metadataable_id", "metadataable_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150220224147"]]  (13.3ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:6:in `' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:5:in `' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
'  (0.6ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:6:in `' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:5:in `' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
'  (0.5ms) begin transaction Fixture Delete (0.8ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" Fixture Insert (0.2ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" Fixture Insert (0.1ms) INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)') SQLite3::SQLException: table metadata has no column named metadataable: INSERT INTO "metadata" ("content", "metadataable") VALUES ('MyString', 'bob_address(Address)')  (0.1ms) rollback transaction Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:6:in `' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:5:in `' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
'  (0.3ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:6:in `' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:5:in `' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
'  (0.3ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:6:in `' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:5:in `' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
'  (0.3ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:6:in `' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:5:in `' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
'  (0.3ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (12.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (12.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150211224139)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224139"]]  (12.3ms) commit transaction Migrating to CreateTags (20150211224157)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (1.0ms) CREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224157"]]  (25.3ms) commit transaction Migrating to CreatePhones (20150211224225)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "phoneable_id" integer, "phoneable_type" varchar(255), "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) CREATE INDEX "index_phones_on_phoneable_id_and_phoneable_type" ON "phones" ("phoneable_id", "phoneable_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224225"]]  (22.2ms) commit transaction Migrating to CreateAddresses (20150216092218)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_id" integer, "addressable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.4ms) CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092218"]]  (12.2ms) commit transaction Migrating to CreateProfiles (20150216092338)  (0.2ms) begin transaction  (0.7ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "profileable_id" integer, "profileable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.3ms) CREATE INDEX "index_profiles_on_profileable_id_and_profileable_type" ON "profiles" ("profileable_id", "profileable_type") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092338"]]  (18.2ms) commit transaction Migrating to CreatePhotos (20150216092411)  (0.2ms) begin transaction  (0.7ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photoable_id" integer, "photoable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.5ms) CREATE INDEX "index_photos_on_photoable_id_and_photoable_type" ON "photos" ("photoable_id", "photoable_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092411"]]  (12.3ms) commit transaction Migrating to CreateContacts (20150216092449)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.4ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092449"]]  (18.4ms) commit transaction Migrating to CreateSsns (20150216092519)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "ssns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.3ms) CREATE INDEX "index_ssns_on_user_id" ON "ssns" ("user_id") SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092519"]]  (12.4ms) commit transaction Migrating to CreateGeoLocations (20150220213422)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "geo_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.4ms) CREATE INDEX "index_geo_locations_on_address_id" ON "geo_locations" ("address_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150220213422"]]  (13.2ms) commit transaction Migrating to CreateMetadata (20150220224147)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "metadatas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "metadataable_id" integer, "metadataable_type" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.4ms) CREATE INDEX "index_metadatas_on_metadataable_id_and_metadataable_type" ON "metadatas" ("metadataable_id", "metadataable_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150220224147"]]  (18.4ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:6:in `' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:5:in `' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadatum, underlying cause No such file to load -- metadatum /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
'  (0.8ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "metadata" SQLite3::SQLException: no such table: metadata: DELETE FROM "metadata"  (0.0ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '47399bec3f8dc6d76b413cde7d6deeb5', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '59a2fbfcd67b4ab95221881a5a31937c', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e11991a2f9d205c460be6a66fc43f122', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bdc7508719fc6c7941684e910fde852e', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7886b4a852252814bf0c3d1d37bfc9c3', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f42790a26d7cb09148e4bc3e55936b2', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0a635aa57fa028b12837943ff6862e17', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0f51a124d77df52cf70b62c0232c5bd8', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '911e6cd2987b0a3d287b035f56f5d478', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9664ca9d8a95b207933bd6adb073a9a3', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dfae6801cddecf26fff5f4523ebd3aba', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '05944a3640de5a47ab426b8b53a5659f', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0e0741d01dce576bcb3427fc3528a0c6', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bb2662fec590a0bad1eb2cf5c57db7c9', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a274e97cd43d63e660f27b022eea1a94', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'daedf2a51c06e5f4616f228bf107bda2', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e75d80effbd0da70feb116c7d34ec93c', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cbfda24c16b2c84aacaa2c56646b8a83', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7308c029e260ff5c8446fcc7d2db2f45', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '83dddaf0c4258d3313be44c6caeb8d54', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '23fc1409e48e5d6ee968059ac1a47c25', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '05d80212ac4b3ea896eca4eac6fef2aa', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0c9df97eca959fda1d4f97ab463cd6aa', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '99af94c2b175c25b91a67faf454d38c7', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6123335ce52b5c8f186ff55032dff9b9', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eb2d1226f0538762ca6992f316e2bf9f', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ca61d8c78f7e54aef674f1a03f7f4c35', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f5ecc85cf1f1398dff74393134e95834', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7abcbbb4d71cb0c9105be8284d05320f', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '034535cc78f625dc02776c702e359a6c', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'efe7e8576bdca0d9ffd400870d7ba2d8', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3c4f064e5ff37e42779962d2fad42c51', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3be98f5974160116e15106396f31790c', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6e1a06b0dc0cd2697bb0fefb037f4c93', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0f08f82265f07205f50bad9997d1f20e', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '25d304214189a817a54343f6e984e081', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8dbc85d27c4bbec5f3942bf0e108a19f', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc442b8eae8ee8471f9132b5b899819c', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '34d26c95ce28e7f2c8048794e125ac30', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '295a343007a105c33a2730a6b342fe9f', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7cc8deec3a5b230da645e934f231c45b', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f8d7740adc67a8844a881e23e20cc517', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'de9d878d22d5d79ff6d458422637a8a3', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e5413824aeaa74d87d8f8e66f41d29cd', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e8778a17c880b216abdfcf05e074c32f', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9bfcb1a1dd77c15648e01aa1fa22389c', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a472e8f7a3359109be1b77e00fe38c19', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b48517a94b4f0853ca5390450b1b1118', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3bc02a0efdd8a7529dde4cb355a4dece', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'acc17391d7c15be0c7f77df9297da17f', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '786c94eef114a2a7af0da8b751a3f9ba', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '653932637f5448b8bedbf0c0611991e5', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b98926a59bc337ffc213bf073cd6c4e3', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ff1fda539ead08bf919d98c31553dbc0', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a664c652e9f23edaf924689b54034fab', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c4e72b35ae428dc21908117613488cb2', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5f8ea4ec4ad38ecd323a0973afa983e1', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '341783923dd6763fcfe5231b9852d73b', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '73b63d0c2923fee1e0d22baeed08f00b', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c95f083e84fc7223a3bcbef66cd770d6', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '242343a47e184c5642325a63e411fa99', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '85bedb251904e4c55aa0c3db0da149c6', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e42d7bfd8290cab6d9e3c54342f42f12', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bac2f6b4592bd52a70c0d2d1f7e128f0', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '20471f19da4633c40e6765ff32ed74df', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '85c9d0f9e22bfa61aaa85ca3f70b7c23', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '31c5da6e268822d7137bcfb2d1915d8f', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '26fdbfb621100a9685d197c5417094d8', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '694825ee091976e6b984cfb82f3b1f99', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '57c0fed817fd9bc624bd595c63e613de', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5abbffeaa83ad5b17c9b13f7046988cf', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5d7d79973bba619d4751f210b3e818ee', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f994ba1215ce3edfd8a6b8ae5185c9ad', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a9c05b2f6dee486cae1586eb836dcd55', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8933e440a9be8159fc3c2f4b309e0e56', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f09a0a40751281fcf6e3d4deb17833d7', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3ef52992f25f38939116731e74596c4d', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '846e8074960a76f989718d302213898d', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '53bfdabfa7b64204d725f748e7b39a6f', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4c575b601165359ac9e6530568ac5878', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bdc9d3ef4e3e9b728da1a811769f0321', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '65177142fe1dca927bf92527cb995972', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1fccd650b6a9b9cfcb9299a2a688a35e', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '35729a1d13d7e1c7120761be2f61cac3', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1abb9ba500b143d4568a56c291c77376', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '59a09ee2e8aefada31cd23adfcb9a518', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2237403f1c6cd8013bb7670a262f704c', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '51917faf9f0cf8212bf7507c3413ed93', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c5ecc6eebaafb4c981a120f513cc146c', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f3bc9b1acce05b0fac54c2f51bcdcb5c', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a2e561cae8da8253f251636abf170a29', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '65fcf27c1ce2bed1d13854ed12c13dad', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f2b1da881c94c12743ed2879626e81ff', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '10d1ad8e2a490c14aaa10bfb9227f8a4', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e95c8c4ba290a93aad3302d40b60291f', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2ec7a78f3ca5bba259ed267b6e86fe57', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5ec2889b8964e4922c6f1dc9b37f2c6d', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'db6eeded59c0276a69b8476ba1004404', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '05e095dfa53cf05ee71b7e85042cb35b', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4f665812a0aecc79ec7eedc69bd96961', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '199baf84573136e9398bffd62c102dc3', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b2f464659dfe00e389f8700a0ffaeba', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c2d2f979a7228e5db36aaae6088007ad', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c5b3ed2c97cddc0e73b6700b2a171db8', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c0682b02252e3ca63bc3fbdd932cbe08', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6ab9fed27e408b7e7555a499dc8a029e', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0685193e1e87db2e48f36f36a2da01c3', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aefe4922cb0c535c5b9ee69abed70b29', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '42f24a6f37edecdf166e9a7d2b25cb65', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dd0d9df9861c7dd117b411d16b5eaed1', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ba432c3ee59e25ce38afc6bc183ab2d9', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ac1ef30a9e93a844ad3bbe176ad5c645', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fc5e793d552283277ef7d05fe2682739', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '83a262618a77ed42f0d8b0a47af15dc4', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6331a42ad32a6d4318139059bb24071d', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7720f27d0b5063485a10383b88790b81', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3578b132057c6e86c162efc4852515fc', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3aff6a6eedf9ab4558ab7cd512d97439', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'df7fd3b58d4b054de7d51aef876fbc53', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fa9a901293716f8b318d117ca44a02ac', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c430e74c24dfb82a6a529eeb89ac8d66', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c6c7df3c5f42a7bc2b3b8c9b1ddbcab9', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9fc9a44ded74cef63a15096669a94ca2', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b47975fb5b1ee5c56d894f58d2f62f02', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bd0c107bc8b05e4cfdb131759cd5c3f4', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b15460e01aca53ba05c885f83b1fbf8d', '2015-02-20 22:59:18', '2015-02-20 22:59:18', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e5066b1c33c93345d12549586305d8f5', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f621b6dfa2af2bbe4bb73dee954d844', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '322f68c6fed6ef0e320035177fb62ea4', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '398c47be0109da602f861c314d82e3b3', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e02dd990913c91150fa5ef2b161582c9', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c9dae40cc57ef073dfa9b081cd1a6085', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '18b34248ce45eb2799db0594a456aa13', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0708f032d11991bce76afa9e2fffaf11', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '982d173fad31928d85fd0b53b1cab024', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '311575b71c7ef13b1e69bae05327045a', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0cfc93b8a3b3b1be7e6a01c73e7b0feb', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b98afcc3cbc8b25065f65333ad988f7', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '71bd9fbb8051d98022865018ab0709b3', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5b387f3ec31ed24c3fe6cb617051c215', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '17a3badd6df4abc066f7b077fd7e0d6f', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75b79a6ffedadf041a6e53cd549cf3da', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ddc5e26c133b8f7dd8bfdbbecb546ba9', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dc232e9084dd019cbde26f1c781fd61c', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5ee7bdbd1d64bcd05b4da8b6dba387fd', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2efbc42a79bff90e6723fe52f6e70fb2', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd995e41d572c13a53225301ba11a5f2b', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2b30e1c9a4a2fbb133e691f349bd113b', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d6ad954bc3f6a57b04731c5cebbdac2', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e8de1e7d297f468460ddba2042ba2031', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3ac7498d1a498688f7cd23cae7098cb5', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '559200da9ca3ceb0c9e9acf704a0054f', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ddd7875690634984e5fe8a95feeb9a93', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5ff203a17ee14b114217b9cc56ab34f4', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '22ad6185b27aad26035ca2504a20aa58', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6dc0990a688b036b7cc27a994145917e', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '10040126977a90dbe5ed15a0ad5b2b02', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1207d85f5cfad6b44d6b38e68f8f6a24', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '118bb5d40876b71583b0841d76f81231', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b0cb6bbe40010026c5d9ef71720893a8', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5fc5f04d40f7566112e9c9527dcfb126', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '54f2c8dd9f45c8a417a9c85a449efbe9', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '86e0ed14e779b3b6e8af1536834b941e', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f33251637d22126095e843ad5bfb39f4', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '42539cecacf5233eb116539b6e1ea8a6', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '869230d57d0fee29da749d925efdf1d2', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9d2747997715e0e19d60268a03373346', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '16710fea5c30ac0954d2192b90ec743f', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.2ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '106e237395f0dcdda13b28c2c57160c5', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '24890c523d89259e6f472ef5243fd45e', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '36ebf1fba98327e6717c67f96d43e5de', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4622639580db56c53e9534623167c4bd', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '80ebb74296ade461849d9e9f275f0551', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d112d256aadab85dd814aedf8e1d69a', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '07f73a07aa162dc86a90ce8927d5a389', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5956bd6dcf5dcc08008593f9405f1e0d', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5d6a741bae1d887a6a6e09c5a1b7a17d', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fc8e7a1a3cd9bef62b54284cd87a9a3b', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '232031ec4749263f9f4310043027d619', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '078f8876de3ff5417f6ce6e4cbef2b5b', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '567468c1a29d054456a757f9d25e3e68', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '36d151d70e27ba7990ff7cc4d541bbcf', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '31dd4ac98b2f776767f5c999e420e949', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2d2460b32a625b2dafed52a944b3de51', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5cc6f7c110d75253da9043082f812dba', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '776af55dabbc8a715b62eafaddc454c5', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1a329982ad1e4d78bf1760dc0f7bba0f', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '416ad8fa489797ca5f6b6f9bb1c28314', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3c9e458adb542043ac1c398cff9a45aa', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ecf7c8af7364ad26088462fad7bb11ca', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '18df6140fb462c0d6c60da453e29e35d', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '711b7fbf27e089be3415eb7a5443b394', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6697d1562bebb4c8b8d9378827515f4d', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e6c09a1c2d042ac91da319a24937d7e5', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f29ce18beb5d6f5ee439b4a8dc797ad', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e0c44fe276241525d14da55386d5ee22', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6cdca3ec7026340121ef82da69f204ae', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7950640805949575f0f218184f411218', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '12832855286951c8864995be51e26b29', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7d185abdf6e68e7efcba7d82105504f8', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd9985efa5596d3df609f1ea2895ba179', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2980295a98867a7e3a8950ad8aabf782', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2dea97ef5414ebab68aa808e662e1f89', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c389eff4a437772e6b2afea10f612b41', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '698c7df436360cdae3029593522749ff', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a593e644f10ba42e04b0e867863cd154', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1fcf4e295e8414829f7972a9c23e324b', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '11e03455ed1593a69106c9407e7bf130', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a5ad45eccb331adf82b3aa9c75dd4272', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a65d68919f7bd23d7abd407b652b8d83', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '767baf312b80782e7a5f36807ac1b592', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '91478f6f7c52a956b077bc8037a625f8', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '382c0361239df0cbf92d90a6ff79039c', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7fa6a64f82e9618bc2380768e32f6a94', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e18df6e700c60922840c5d1ba24c10f4', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '77536c2d9d61a3d578ac282b3f8610c5', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3734cb4f18c55886da88560930d22563', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '150b536b99dfd908906634fc3f0bcf62', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb07bc6d9440c934871fae46c83ea71d', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9f303fb98fa8cdfee76ba64334281df1', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '553a34fe750c43289d08d718fcd6ad6e', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '75dba9b2b37447d273ee1488254db819', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6f1bfdd430b0e1e4bef67c6c63753ce8', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0703a780182b7ba512fc120c238a64da', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd18cfe8eee37229f81572c48624a8336', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '660a4493cfc3b44d5317573e38dd0d10', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c18bde483580879b8fa3c2f2b4a173cb', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5a03de9581c38c26304370ce4f847bf7', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.2ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75b9a535762459e564843b0bfe9dd9ca', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cdd5157b70d3df2f62fe2b7be7f848e4', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e7e2191a0335d68dc5a90c09ddf8dbd3', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '59fa74198650f72b860d31a2abd736dd', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3c1bb46cd3e9b27e91a3e5d4c0f9446c', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'af89e0e5a919718b19a0b53191ce250f', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9376b2cd2e8e91356bc92bca7f146ef7', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '789ad81a34b488af12fe24801ae5d7b7', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eb3d3996599c2653148c83da9866da6c', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b4ab0ffe1c0af7971ead22d357bee15f', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f50f0e9bcf2543c19340b90393972db', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '388d58c325d28279d64309e7e5d3d552', '2015-02-20 22:59:19', '2015-02-20 22:59:19', 1032612456)  (0.1ms) rollback transaction  (14.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (12.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsers (20150211224139)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224139"]]  (12.6ms) commit transaction Migrating to CreateTags (20150211224157)  (0.1ms) begin transaction  (0.2ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) CREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224157"]]  (11.6ms) commit transaction Migrating to CreatePhones (20150211224225)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "phoneable_id" integer, "phoneable_type" varchar(255), "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) CREATE INDEX "index_phones_on_phoneable_id_and_phoneable_type" ON "phones" ("phoneable_id", "phoneable_type") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150211224225"]]  (12.6ms) commit transaction Migrating to CreateAddresses (20150216092218)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_id" integer, "addressable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092218"]]  (20.1ms) commit transaction Migrating to CreateProfiles (20150216092338)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "profileable_id" integer, "profileable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_profiles_on_profileable_id_and_profileable_type" ON "profiles" ("profileable_id", "profileable_type") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092338"]]  (12.0ms) commit transaction Migrating to CreatePhotos (20150216092411)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photoable_id" integer, "photoable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.5ms) CREATE INDEX "index_photos_on_photoable_id_and_photoable_type" ON "photos" ("photoable_id", "photoable_type") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092411"]]  (12.6ms) commit transaction Migrating to CreateContacts (20150216092449)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092449"]]  (12.9ms) commit transaction Migrating to CreateSsns (20150216092519)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "ssns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.3ms) CREATE INDEX "index_ssns_on_user_id" ON "ssns" ("user_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150216092519"]]  (24.7ms) commit transaction Migrating to CreateGeoLocations (20150220213422)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "geo_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.4ms) CREATE INDEX "index_geo_locations_on_address_id" ON "geo_locations" ("address_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150220213422"]]  (17.5ms) commit transaction Migrating to CreateSquishies (20150220230146)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "squishies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "squishable_id" integer, "squishable_type" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) CREATE INDEX "index_squishies_on_squishable_id_and_squishable_type" ON "squishies" ("squishable_id", "squishable_type") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150220230146"]]  (34.5ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Unable to load metadata, underlying cause No such file to load -- metadata /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:6:in `' /home/danielpclark/dev/PolyBelongsTo/test/dup_test.rb:5:in `' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadata, underlying cause No such file to load -- metadata /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/pbt_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
' Unable to load metadata, underlying cause No such file to load -- metadata /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:330:in `require_or_load' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:289:in `depend_on' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:207:in `require_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:773:in `try_to_load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:792:in `block in require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `each' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:790:in `require_fixture_classes' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activerecord-4.0.13/lib/active_record/fixtures.rb:768:in `fixtures' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:5:in `' /home/danielpclark/dev/PolyBelongsTo/test/poly_belongs_to_test.rb:4:in `' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency' /home/danielpclark/.rvm/gems/ruby-2.2.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:10:in `block (2 levels) in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `each' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:9:in `block in
' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select' /home/danielpclark/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `
'  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a45f25e99f670c61cb83e8eb38b74139', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f5be30dc7188e2bc95f880ca1e2ef936', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '64366b7659b1cfb56c6626d8930e8628', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '27a706e68f1d611d4fbba18d6c1c955f', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7138c9519d2cdc2e2beb76a022b2d4bd', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7e75c0543a729d8b121d47c5abeaf5d8', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1032612456) Fixture Delete (0.2ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b1026ab12c374ebc1852febeb0a6719', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ba481e7a7639f596121bdfb74597b081', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '816ae35a115e2de95f30e040bb7fe3d9', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '71f4fdc9f45c23e16f5d2c62d532f605', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '801a6a12cab656dcead8cdfb0878677f', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '95edcd6814eb3ca6b778fc21c79fb0a7', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1032612456) Fixture Delete (0.2ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f5a4259291b28968b9dfad334bc6f727', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee5a39928507e6ed5893cd4e62f2d4d6', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c02aea370f0614bc02cdead9be44fa00', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b85bc6fa3efb9e55e72f7c55ab098824', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fb61f1ab2cd79cbbc9231d0b527bccde', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b2fadd106181b2352b4ac1b9b712c84e', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '21794d886e582e3a06a0d066173b6f98', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7199c10d7583f457ea7bb74d989437fa', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'daa234ab0c47bad17a38ae4364ed0687', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '300ca8ebb9fd26de541ac5ad40231338', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c9a41aac4618bc18d7263cfbdd88a7c7', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bc6f3b420cb3468f1734a7fcdb88f97c', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0086bcb5b40772d0bd65172fdd475969', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'adf5bda6abf832e83354f9a3037f0188', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3fcd8502bb762cf4f7f2333ffcf10ea0', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0a7cd57b7ca357d710b65e4f52b10203', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd2e8dcdd000aec02227bc5f988f28ab2', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e84d1c7e65b56a6432439fb9c80ca24a', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b02376f4a0c58e92b275ee1fe3595b1a', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4f26c3de8f3cc978d1cf6ba0742a1d39', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '76d33392b22b4862da6f469ab988d292', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ba671510f0aa453703ed447b61d07ae6', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '367ea791fcee7c8943a838d10283f03c', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e49b2207f82731e08cac0ebd252cc6a6', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb3de737bb22968b27c33ee706aaabf7', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '75c813d2a3fa3d42ae4422cee8c721c6', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ff37c415ab0cf490489fced3ae4eda47', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7112c5d7a5393653bc68bd158ea2697d', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b61fd8ab743eb8c22e6a0984299dfa97', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2534a4e4f0218a3de0e2454b1dfdfc3f', '2015-02-20 23:13:17', '2015-02-20 23:13:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5a8918d1fb7cdfe5d8642e82a1baddaf', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6f7737373db0c9922a3d5d54fdebca7d', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd13172fab99bf7baa39bfbc7242db276', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '59786b309cb610e67e65ca2e7ee2a6ad', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7a20e73f32381c6a9ce30e95f738ab61', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '39c01c8f61a25b75f7884397da0a3b54', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8e4f67b3617e40d2f3154b4b079324e8', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'abccdc2610da8d8034ab75e72fae4d90', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd53f3918a62dc7b600f8224339897f08', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '546e616216ab8c31532126b286ddbec5', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a4b904911536f4739f4440aab91ba4ac', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '860dd1a7b084d074e5f9b43eedfb841d', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b3acdc2af73a3091c40901b3c4bf9c01', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1573cc03f9f19e145682158046a31a40', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7b6104cb7adfc6d2da18fa5f28a1f429', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '139b79fa40f28f9d6295d302f11e4846', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee3c358e35a2160c37b6b17cb6599e0a', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '02e35ab58e5b06c03cb4523467e20e14', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'edf01329dc683b5f65754d9c62849dfd', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '479163ea43f668d833c1ca0ceffbd613', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c6ff1dd59e4e24039e0064eed4f14d88', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '46659d1cb45bb160425367d48078e406', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f41f1df6abbf840771bd4f80363a99d9', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a354a38acee1540fb9d238592b633ee2', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4f12af50cdd7c14a611d483a7186ac8b', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '56752f2a8fab04a81e42a225193771a7', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '23c832d4e8f2867dea30433c3163761f', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cd754b77b752fbc1e3dbbbd69f8a66f2', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1945aeca96531fb96e92922d40d07c9d', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a800e22f5047bfe22c5e6cd4fd838d6', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '73eb47fd099a1c468cf0e4fa6511563a', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6a0fb13e15df93214ff773665ee1ccd9', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4cf70a018e9b1a4ce26f19c02872b774', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd3e4a23fd88095bcf899958192d45632', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e4ebab1edd0283dc294fccb4d0c1d11a', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3e58708b4feeda12d81ca2be66cc62e1', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '61cd2b1aa35b6690bedb06219c8e59ad', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd3213db1a41698f8cd16e9ddeebff389', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '82812b759554e38761948b744650fa2c', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f700381221f2607208a363f95537088c', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd61d58c5fde329dced44986070dfa17e', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d7af44913cb413f7771edb46034a8db', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '72b9b30790d6a70b4128e6901d2157bc', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e424f42eeec362aa39af83bb218e11d6', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0b1de6a8488f67888bd151796cee31fe', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '93463a7292950cbb0c2f1a368fbfdf1e', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b2e5ebe317f7df4a02c681a12b1461a2', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6710a4f1baea6013fbc291bb20091fba', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.2ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '178688fdb0c7bf6578f1935cb4be3290', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fbe8c0ec2ab10a2bdaaadf68cfe0cc25', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '210d5127d8a183a18870cb41475e941e', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '15b0f8d6d1834cb64068aa80aa4d7cfb', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9419d24f57c759d5d21328bdf186a7fe', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8b15a9a69304359551bf4bdf9c1d3eb9', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '192607cf54d9fb4415f55aca13c1ab06', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c851fd0cd989ecf4e962c072f2cf3865', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cfae845fedfbd963e203b84fab6d4689', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e41b81d6810be7dfcf97f28ae4c8a8a8', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e358a2dc24545779bcc78e4f34acccd0', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3db83c49a5945e373e39d86adae20b30', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a599b4c5fd012a8f73f5656b5c9a082e', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bc6857cd27806a7f8807086592208b23', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a2e8161e339491b8138141f9cb67660a', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '29bd550e9db494ee9bb51bf92109efea', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fca5ed75359350c2c605fe040bb37f57', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '374add63ffe276b366a8102cc9a64b80', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5d35eba7acbf7c25bcbf07288ee13029', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '341923a80d6f54fd8b6a06e649e1b395', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '831784d0b8d16a4a48c8c54b3c392365', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bae95225dbecfa89bcc392b01dd9c2dd', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be209b3506f2f15112615fb63fb05b5c', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e4b9736fe4a4b4791c4fe78b41741923', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '67cf9fff436c4fd652f882aaf2e01874', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2dd9c4c2e195974eeb69dc70d8fd1ea4', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a802a197e3f825aebc564a20e103cf3c', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd3800224e279557150c94df953afe863', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c8c8eed4456f8ae7fb268177c372c139', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '278a2b7bc32326eac8bfddf942ade467', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b4a1967ed04ddf15ed9991fb8b873a8b', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7fbdce30963d8bb120f14c1ad9caf2f3', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '790c94b58a31635a9101497af31b42ed', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'df12bed681f741b38b4c882c780cc6a4', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8733c1b8ee1f3efc59483dd17732b5e7', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '248346d863ad6e4b1c5801bafb21e79f', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '48de38dc2e495fb0bcbba02f9c7439f3', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9a04b32f1ae2d2c80e4f845f5175e8f9', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f05e87fa4f27a8d2c12c1bd0594f23f3', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '45229124154d5f1625910b81039342c4', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '34bcf341a54ef79639e70438a0285404', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6c13ba45e4012e7518caac025941e47f', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '84d71fd7c0ffee9ab2757667784473c7', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'de78fbbd4e98ab6fa35803745bb0d071', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0ec61ed49f6ab339c74c4f7297d8edd8', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1205e9086b8261950e0f48dd20018541', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5ab8760765bca608a8f17ae547e94be2', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6d905edaa7d343656d12f67c0aa60ce4', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8e24633f4fb4ba9a0e3aa340ce7e5654', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a12f396cd0daeddab92be045d2e68309', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '28a2cd1abe92f1d2274054bf63b3ea0b', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '35c53915bf2ce663a21f64e6f41c79f2', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3d9e777c745215e7fc102ddd1c6c5cf8', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5e0d4bf4dcd765cedfc37e78971cc3bf', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '09ea42c1c082d40bf8befbebffdecb3f', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd12ab6d6c24038e13f32bca7eccca79f', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cbcbc4b82ebc314a5044e853eb3419df', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f4ad38523a90bff7f09a79ff47986ea8', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2a9f8e2a81fe089dd5a553645e7e47d9', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a1cf775b8314034d913f96bb990199b1', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ae6c54bf5df0d9b4d56bfdc98414cc23', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '292ef645a6b51844816db87fa3831f06', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd652a2d6287db1ba777c7dd0f5f016ec', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b13e6b1d70f906783c45aefea67910a', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b40d3af77bfec166bdc10b2d070c6610', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ba1e402c255f937ff76972f24e9f0f6c', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2a05d81dd788a13ac52818561f98879e', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '63b2f51597469c0a5cc172eadf5e6c47', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd883779837489c5c783eaef09ce9db59', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1eda64fbda5a5865855d89964b151f7b', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '49cbefdb177b79eac90ec339c9b18313', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f59b77d390e97fb0c21d5539903f9cfc', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e203cb767974615d8274250a5151a215', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f70fd297e251b171b098f1be6ada6902', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8ba34c45513ab4bb447387aa9556aea0', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '851d0e11af74dc601204859529bf2569', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '034f26c4bcd40a50cb1ab2457594fcc5', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1ea39274a31789feffe69b39fc33bb82', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6eb2682f6c273cc55ab4ddf7550d9971', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f98596f3394930544efd916e12739526', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '019e84f879c4497ee6f570fc6b55ec6b', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '73afe145e10553b7ca34f446c0c50585', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '70888249f4dbcc306c8b4acf8ab32c6e', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '775d195e1c9e105403c6cf19b037c993', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6db4ef7372a736e45d878fa92fa4409b', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f1176946533d0fc05d3378675b907b7f', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cad4cdd626f67e026794b6c2296924cd', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '021e0b34ed9809702f86c8ba2dae8512', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4f7e24d74044d20418addf38a1bb3290', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '07ae20c19127988bb5c3b4bcf7c51638', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'acef23df26d4ea89ffaba0adcb9f5865', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f9476423e17b45dc36c6efb4322b2625', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bf7616011c17a99324a264011b25e819', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bfed50f3d8fee717865d9d04ba562baf', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4032ba8e2ba97e03e5717d3c0997dec9', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4561601b3cfc881b2b31a535468d2fc6', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c03eb1a98b65a6cef0d041d73d957f14', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e32b67969f42de47282a4aa4df129224', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3f98035e3ea5b8eb370d489d922c0b3c', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9136a4b84c9ed6a52c3d46b97f69e98a', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7553d4208c0ca495e9ba8c9eace906e6', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '119c2db3397cb9f8e8d293eae5fdcb00', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1e657afa77f6c289799ccb158459072f', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '812ffaa3dc331e9f0fbd91a76c57df5f', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c52f6b8dbcb01e930a51070b91f13140', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '27cb9d60272a879d350ff88679d6e516', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7dd92d0fef718f95bb1a5f81bfc6f07f', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c6f0992b63080dbc4c87fda65ea59626', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dbf281e4ccd7e5db5a7eacec6b558156', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '56350b1e63d6b4a5b8db00fab20118b7', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '87f27e0ec1f0418185936c21505c077a', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c5371af6254b78c147e81ac6791ce445', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0a6790bcf3ec95b1bfb7497d50378fdd', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '894e9777595ede08f628f5e5c88fe406', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9e0229c99b0092376aabc23866fce9c4', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '621ddfceb1e1c7833bb683d720b7e5d6', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '22ad0c00e5b663d1ca18b6524a3b306c', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6d881923ea655d3cae33727bf08d759b', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '49e33ab9043003754de48bad0b54f143', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '56240fa2db5ed4f9f33e2c8a9ea2e8b7', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4cf247f6263147ce7bbaf6ce9157146e', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0298c62ddee350ec7539b73941999547', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '42b8763b64527593fa22974da082b472', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '374d491411503d7388853c128947e264', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '905e8c1ba6dec651eb77eb216c16e907', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6761ef3256846fe603ce84f9534fedb2', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '90930b164aa39ba5fe12a665b2932f32', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '05919d24b01612ccfbc01bcb9c42af6f', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3e73cf742342c6ac0fbbfcb1a8f874f2', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '28cdf51a759e39cfe1d5f8758c4afecc', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '350756fd8c62cf2adb40af6ef4b6c60f', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '19009426e10d2f57209fe914f372b5f2', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '71b01d31251769a0a77479e28c0de3fd', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '693ae309eb456888810424affe3a47ac', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'da40fcffaf02b1dc43c7ee15f82a20de', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '00201d2e8e5081657b956ef489f9558d', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bfd605384ed7c910155007d2f604cd28', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '334d7de9ff216d3748c68f86ae2d517f', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '283290b971644829b741e99480f8ec1b', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c386475575ba75f5fd1e92c075093e56', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd9cfadc550bfcb33aa57a3aa57143294', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '610d35caf5c328e921858eb8e79e8d27', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6f38297f112e264d9f954c8415783bac', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0c5e894997bded20e16b2873e65a1552', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '46cdf2c9eb41b9c5af7a12a3df694afd', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '30855fa972fdfede27a34df720ca619b', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a5c6fe99012134cc56960d88451e2b94', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cb44bd5ed26d1b89f4d999bf3268748b', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9930f1388322e1b1751c4adb68533fa1', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '29d06922bc3418fd1949d9e320957918', '2015-02-20 23:13:18', '2015-02-20 23:13:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "metadatas" SQLite3::SQLException: no such table: metadatas: DELETE FROM "metadatas"  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 980190962) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 298486374) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fd6df4cf71d50757db75cba369097931', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '12891f4cee5b4293b2a56ebcbdefd8b9', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '64889d689db019a6dc6da73005762762', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '37e5327f491b29d06c3f0a36485ccdbd', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '141469c1f97ea3b42cd7eddacbd22eba', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b0880d60bd725f32493377da6a54b8de', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f40b35380d388b36f56b4f1de8e85752', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bab7463ae0fb195bce0a90babb41dfa4', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '87d2616f51e76d1f5f6548d516faba39', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c36c3fa427396cf61590f7fca26b9975', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '213cc1e19e2e8094459f7f64688049a9', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3b50e4a8c3f13fe9370d70b5a3e469a2', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'db6e939a511bdfc20f0e4ea8280e8dfb', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd54f986ad471a46c5ef36045eded559c', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f0bcd7cbb015e064a13732daf02bfb06', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:13:40', '2015-02-20 23:13:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:13:40', '2015-02-20 23:13:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:13:40', '2015-02-20 23:13:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f6656e1960a028ed998a75798913ceb4', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '965c01724fda28c2e4246e0be2a93387', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '36a900883b1036d595155a38a791dfbd', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4aa942c9a02152620bbcc37cd5818418', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '260b3205adccc264f5a27589bf571a62', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7d122afb54163219bad942eea1dfd09c', '2015-02-20 23:13:40', '2015-02-20 23:13:40', 410780858)  (29.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:13:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:13:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:13:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 23:13:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:13:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:13:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd62aa0124d45c692f2d6c4f884e30537', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6ddd3cdfca9b5368900ecae423d895a2', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f2fbb73072021349587df0efaa33a7b', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '76f7300d744986ed0018a269cdb361a3', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '769f16fc217724e0c36eccd02453207c', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8b6faac8a4cecd567ea92993b6353812', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6350ace88dd72f7250f7769090b4ba97', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '21a6ef55e71e9d18a2d86737637ec91d', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '62cb1d3de08abec089260cdbe6011c2e', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f18c3d5349fc8fa0daada016f0ed5ba7', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '660560c8cd0eda4510b43d01246a0323', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '385beef43517b3c72fd9b1f17077f4ab', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '35a156c64ca4bda049be88fffbce5c5f', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fa99c14193a11c41bd5a9bbaf8d772dd', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a2fa6232bc4080a3ffa900dd28f6a3e3', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:31:04', '2015-02-20 23:31:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:31:04', '2015-02-20 23:31:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:31:04', '2015-02-20 23:31:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '03dbc96d0310113a0da884fa41f2b24c', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fd715c47fde9fd10a75f9c6996ce3780', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9fc8d3ae2fce7ae602bd62f5a3a3c894', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'eec84cde73b851881cff7c8cc9b9e562', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0daf736ca1e17a2a34cacb317987277a', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '319f5d68eb50570fb93cc48f33c00831', '2015-02-20 23:31:04', '2015-02-20 23:31:04', 410780858)  (17.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:31:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:31:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:31:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 23:31:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:31:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:31:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2e7d2e87d5ba3568eb2f8c5ba669ae05', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5f0da72280fbf1c5242d1386af5235e1', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ceee0dd0eb2d909e80ca81027e04303e', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bd090e00d259bd4d04fb3270ee0d7cf8', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a53f0c0854e346bbba7fad2538ba29a6', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f17b5025e2d98c5a3338d12b117d7ddb', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3c752366643a2e1321199b7f3f1628fe', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6a88a9680790f3a9032d00156a51c091', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd530ae500a9243c3d325010e9988017f', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fdcc3ebc273f8bfd1afb78fd9af43bd5', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7bb91396a59bc3f5367f7a907a8a2cbc', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4ec4cb92f9d592afdc21c9f9179c66b4', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c7b5f229004eabebd3f22ae169fa6d9a', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c05a4a53141222e64fb6aa7af038ea11', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dce24dcca0d1cf0ab01e86beec08375b', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:34:15', '2015-02-20 23:34:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:34:15', '2015-02-20 23:34:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:34:15', '2015-02-20 23:34:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd01e9a58b752c7ea7539cbd54300ae77', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f482050a510a2324cb29f1a0a93c95e0', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2248eb17407d2a8c24be999c1b326d3b', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2257eb275e409b5982357eb1ee4c64c9', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '52490dfc2828f1124a47257ed091c3dc', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ef6391753f62bb65b6d45f70e10e3f07', '2015-02-20 23:34:15', '2015-02-20 23:34:15', 410780858)  (23.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:34:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:34:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:34:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 23:34:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:34:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:34:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd606c5ba07c7ab54e8c626168efaf526', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ea122312f13dd94b1f1b80d68222fbc0', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e576e0dc0afcc1a59537c0347ecfa056', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '18b59ff45fdfebe4c3287999802329bb', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4f25aad201cddf96abc023a364e2fca1', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3b91638d66b914c4993afdffb2fa92e6', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '293fb792ce52401b6d309f15d2dd3a9c', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b242bb42742826476ff7d95f0554bd3f', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e92edaf5aefbbd37272fbbea1d7c6066', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cf98ae63141cd55f64802e8bd3d5852a', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '000d0fd5633079e45d08765229b7787f', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bc5bfd09b7286827843f3c2013774d5c', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '50c4f6b00ef8496441bab4effa83b438', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '97d08524e468d08e2ab888b8eaf65f63', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b5ea998ac2211f9b5ea2917d3bf5e7ee', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:34:52', '2015-02-20 23:34:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:34:52', '2015-02-20 23:34:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:34:52', '2015-02-20 23:34:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd5f1a9cf4c8dfb146e1f480c011a16ba', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1ddc0bd878fc3ba0b3bbe4fc8728e5f4', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7a23f8290df9f0f96b002a1156bc8878', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '20e3cdc65077914be2150e2cd54de2d9', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7d88e472be8a10071e4e485da17af3ac', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9b87c3f9d4ef3ba6cf1d293ee2d4958e', '2015-02-20 23:34:52', '2015-02-20 23:34:52', 410780858)  (23.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:34:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:34:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:34:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 23:34:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:34:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:34:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5c5c35c4f86e721a51de33e6ac4fcf2e', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '928c85392c9e313c4816181180eb7e83', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2795b0c107443fcb29000ccde8c4ab99', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c1f1c7dae93d4bfe6b17c688aeae4e74', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2c1458ca89327933f7b05c4e553fdd73', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '039c056158b749a9b8c0655c285f9029', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 1032612456) Fixture Delete (0.2ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6cd7b32bc6ff558e67363063d179042d', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5b0f81474a522ee8d92e59d3394ad3c9', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '92357dda96ff2a6baadf382ea41e0f3b', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '331d71fb843eb35e4b7c6d1c6eddb7a2', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '422e056da8567a68f20fdf2768689721', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '08faad928e857114b56a9d829ec56f3c', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8536794b5d20ff2f76a248d4b6621da', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '93fe7b50e435a3687a4bb2b8428bbd43', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6bef06e21ebe5e3c15013f5203ece694', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:35:31', '2015-02-20 23:35:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:35:31', '2015-02-20 23:35:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:35:31', '2015-02-20 23:35:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8c80e8451e97b9b2ff3a08b27c69c174', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6297a397162dc00973d34e60feae3ad6', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8214f0e918cddc62f785ce1f4c3ab707', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'edb6ba23342a83ac7c25ba8fce95aeaa', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6471f3d350e40d87fb1f674b26828fcd', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f97c1c47e7311031bfb8cd116a02d534', '2015-02-20 23:35:31', '2015-02-20 23:35:31', 410780858)  (32.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:35:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:35:32 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:35:32 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 23:35:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:35:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:35:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ce7f0d30caef1c2e0de4bc59e286c23c', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fde9c836056f810581a89b978d90b5d2', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bebeed40c06a35c159c1349019cfd1c0', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b5a91ff92923bfb738608180010de04c', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8b1bf4d67fe9a9ace03da6d16b8a9053', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8e4b8a77e821b619b74460e7fd1ee735', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 1032612456) Fixture Delete (0.2ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1d04cd1fd4f567f1a6e8d70aec081fa9', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '791ecb48030d2db12355ed7fe436f960', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2e70547f55013e8c0101e8efd8cfcdb9', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '06876c271c3e54a4f9fdcd9069fea59b', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a6204854d50b2cbb02e52f33de50a696', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b0d5663d99375406aeaeaaadf78ee3f3', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '44e7c15e46bc4d8c16b587f6c37f733a', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '950f02dbf953653ebfb454a23ab550b4', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dae6acaac8241c06f5653c2ad7286dc0', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:36:34', '2015-02-20 23:36:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:36:34', '2015-02-20 23:36:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:36:34', '2015-02-20 23:36:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '79b4395440486e7482dfd670557b67ab', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '16bac8808261ddc6db11b4bb02d6e609', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4716f64c0b23f5a4020c9cb093a21004', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ed27287888b7c357d3e0a8ce8ecc956f', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a5d33b7352e5c75d003de271df1ae9a1', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5cc8576250a0461a3d802e1a72048ce0', '2015-02-20 23:36:34', '2015-02-20 23:36:34', 410780858)  (15.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:36:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:36:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:36:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 23:36:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:36:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:36:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '01cc5e6375af85e049cb2c9746c8a643', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dfeeb1a3a8794cdc0c1db7d86fa3002f', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '531b1e834a7065b9ecdf1c4685d2ce18', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '45ae4964d9efac5d0f62975a0d8c16f6', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8b467a48d9462c5176aa0eaea78fdce9', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '837d17a101b6aeec233c0e2291221dba', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd92dea5b58c56d13252bf26e72b1cb12', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1a06af6319f38ffcdf62b91a750bb4b0', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7e63e1f09afb5467ef7ad2c0eed2726c', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6a205558a4304f22b0124f673f249979', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '970902c59c403cbe56a75b7463355b58', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '73bc7a6d66ce820285ba6dcbe2d878f0', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7792a9618c81a2dbca9eac348defae6f', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2ff50b83e1ffd6f2f0133e7e947aea67', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dfb322284dafdacf0740c83ad096f2f8', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:41:02', '2015-02-20 23:41:02', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:41:02', '2015-02-20 23:41:02', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:41:02', '2015-02-20 23:41:02', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b1a450b79a8563b5022f072bef0fa037', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '92375c9e26bdc20b52ba4e2a3b289d53', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ee5b68004be4e9e41fba1d5dd7bd82a5', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b1da85e0b8b1938ba75a6dd0ba052c12', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9c933a36422e07eed4d1b1e8f9e6e304', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8f1764b3934c530864954a4598d80bf5', '2015-02-20 23:41:02', '2015-02-20 23:41:02', 410780858)  (13.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:41:02 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:41:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:41:02 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 23:41:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:41:02 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:41:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd2242f00cf45d262927e4f44bb04c844', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a57343ab48354858158deaa0f95e4211', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '97221038e6eea013c0285edbbe198f00', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '713e70c0fd45044a7f821e3647cbc510', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9dcb1ce639d681afccb12a8012681d42', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e0f75187f6a0d26cc066ff0ce724fdca', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5a18384fcc29b5f84cdc818ca3659532', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '51acfdbc0e1c1b9836b3d07a1ad2d1a9', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'bc59498afca51f2779fb96b0a5ecbdf8', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0d50d90554f83d3dcb5f622baebd75a2', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '65a7e2907edc4ef12635c01716550955', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5aa18d797c3589a379135e2aa83399c0', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8bd027763f816c705b93cf7bdc56842d', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a0f61ecb2a559370acd9c9b8422e7ce6', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '89661214ff14e3ef9319687913e0a75c', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:43:39', '2015-02-20 23:43:39', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:43:39', '2015-02-20 23:43:39', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:43:39', '2015-02-20 23:43:39', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a3d8cc8fd474280f1eec5530c6c834ef', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '197c8bad21075a1fd686763335b136ed', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6b2f5dd64e5dd1f6606e8881adafe78f', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8ad827ac0b69d8a8eafc6527e045737d', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b73c87c5d76ef85b04ebaf3cda821d0c', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '65dd1ab3fc591a49f3d2e9ae4cb31a46', '2015-02-20 23:43:39', '2015-02-20 23:43:39', 410780858)  (23.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:43:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:43:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:43:39 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 23:43:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:43:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:43:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b697f4fe46217d49c170370acea2e86', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1fe1e08a9d2e052a1624a61c5cb35200', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'da63aa45d0f9df46ae9cd8e9a1ca2dec', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3cd31617ac81075eff09951ada1d0668', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6a53a364579ade47b22acb7f31264c4a', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e8f67d75a1c7f2149a33a727fcfae7eb', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c245ae3b6fb5a15249c169212fae3b31', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f6abf0f2485e2caf7f3543e2740bb4f9', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9f516007adcfaa3efb6c1dc73845cd9a', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 966629572) Fixture Delete (7.0ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '322d4e37a0c7fb04081ed8314de39fde', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'bf04e26fd7ae2440e14f26f2cd255e30', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3ff7a256d09467f96d35e17da8729e91', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4725570df8a6ce8d702ad3bd92065aad', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '46bc5404bdf695991fe21bcd1c80d909', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ac207fc3c45215acc89dfa15e61e0124', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:48:08', '2015-02-20 23:48:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:48:08', '2015-02-20 23:48:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-20 23:48:08', '2015-02-20 23:48:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a02c6220b079f4770705b206aef99d4f', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd817b238ca36ec9fa28f80118fe0301a', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eafafd7c27ede8b402e718d4d7bbc7ed', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '64cdf1577fe1c315cab5850e4058418f', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '156c40f2d2aeba4b44829a667ce3afb1', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4e81768c40efb75032057fceb7cf518f', '2015-02-20 23:48:08', '2015-02-20 23:48:08', 410780858)  (12.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (3.4ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:48:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:48:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:48:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Fri, 20 Feb 2015 23:48:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Fri, 20 Feb 2015 23:48:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Fri, 20 Feb 2015 23:48:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '24f44f9e46372fde78e094c7b80f2430', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '70104ca0e3d66a018ed6d36970834a87', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '60c13b28161a63ae6a961b90e6b0137f', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '66b53a8326e174feb679746e04b89ae2', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6bf53af1100d819d5e94a44a84ec2230', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9433ed6833b4d47c2649821f60856683', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e7c3a6c5dccfb43b3e74a6abac517332', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e3b0845b8c5ee78ee3066e1072df2b18', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e0bd825fd8b5360fcfacf432819d44fd', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c8da6327010f3e096823fb6d95176a3e', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ae93d53ee0b8d296ed9e5268de89face', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '71b42f24a14cfe0c65fe281f8795923f', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a6707aebc44e5793ebf4672bac64a176', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ade2e7943a0298e51a9dd5ac930e7af5', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'da01d89ad6db1263c915832de84c996e', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 00:54:47', '2015-02-21 00:54:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 00:54:47', '2015-02-21 00:54:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 00:54:47', '2015-02-21 00:54:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5aa76ff9224cc7bcfbb4f5c48e6511ff', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd069f50a8a01d595ca33029f859a8527', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b6fbc8dda21e391053ead5bdb028a811', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '984102b197228f2f80bb154e0da5ab7e', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4b90e9bda1adea715de2de3e721d5ed9', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9e0708e9dbcd54c7a36d931d6c40b6f2', '2015-02-21 00:54:47', '2015-02-21 00:54:47', 410780858)  (26.8ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 00:54:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 00:54:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 00:54:47 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 00:54:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 00:54:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 00:54:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0a7b96090aa5de2b9db499bf82400e5b', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ff169d530fd38f6083e64c5b737e635a', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd4d86a015813ac15548b3fb657293959', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '700aa14eae4113800b6a3edc145447c9', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '641a53b97a06d2018c89acb22ffb1eb9', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0246d967aed51431c7286e7719898314', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 1032612456) Fixture Delete (0.2ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8323152ea21dd85b70477f2eb39ebae3', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c4d2e261adee09e858262be1976f3628', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c7d42ad599413cb384cba45c56e07bb8', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '610480794c71795180b40ca36503a7e4', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '15ab5ed5eebf4e90463192b0a936703b', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ca6de633e26e5ab24837858910d55c0f', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4aa8cd286cee85726013af2dd6c04f0a', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7c5a59a04844f2c04f6ec4468c420b47', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a377d99a4c4eb8a9de237e8b8118f27', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:07:13', '2015-02-21 01:07:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:07:13', '2015-02-21 01:07:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:07:13', '2015-02-21 01:07:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c78e06ba9fb67f2b2a0e35b4dc49cc4c', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4857bbd48c75e869ef9ad4b8adea800c', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ca8b8e2e47a92096cba329a411ccbb4a', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '55c57df142ae0f805482d1228fe79e45', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ded81468dfc63986b1ea89745eae470a', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e0565c2780eb9b9005a5bd32a9364d0b', '2015-02-21 01:07:13', '2015-02-21 01:07:13', 410780858)  (15.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural respongs for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:07:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:07:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:07:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:07:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a22f78983016c92412a464a51db5fe04', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f1449c31a595d15535de8c7ebae1d27', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c44ff4d5a2558d40ac2ce0033b1bf388', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ea28fbc320d00468df455b79a1551cf4', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a57e20fb7e6505851879c6a9332b3769', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '238a6f58bc6293b7d1efb33d147b8a12', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2ba93534c1f6b2d99b428f15dc9c0925', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '55142a89df1befa50594081e437d1852', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'be73d366e140b41d49a904110a2370b0', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b97e29c1caf7781b292620474bf0f6ec', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '655f662272ebd4ceb5bc445f05df829b', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5db44b2c0288ef95b7408f82d35645f6', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dbd0dd6df6fc84d364882f8adf62184e', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '333b693a0f188f330424bff474bf1166', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4d5a21fc4d314aa1cd2c2de1331567d9', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:09:00', '2015-02-21 01:09:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:09:00', '2015-02-21 01:09:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:09:00', '2015-02-21 01:09:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e504ef180bec540963570dd4f8e35e24', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c6f0e276cac18b3b16f80165ec548eb8', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'db1c3b494e86d465de1f9d6e13cb5c1c', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a44d4a5fb27296943e31e9a0a900be0f', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ef0ca911a91f668415553e483724cc05', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7a97644dea33b5e7260dbdccc9353fbd', '2015-02-21 01:09:00', '2015-02-21 01:09:00', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:09:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:09:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:09:00 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:09:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:09:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:09:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0b0e70bc39fd0fa4619f74de616d93b2', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '31a2300e4b881aea59c10bc32c7283ae', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e0b28123d2a11fb00de00ec8f0ff1ad0', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1c12f6be21077473842a73d5583846f1', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6834fc2e8e307ca2e7843bbe18c45589', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '95d71cece9ac010a98ea9960119494d1', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2084c8433b22f533047af7943a268cac', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9d19d089f23fe4e984c241ffbee05fbe', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c9e4a825799363d4e41c71adbfc4d1ab', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ca9489fb158ace5134f11f71b756ade4', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '627c27ff96ba5c730b46cc1d7be8da93', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2c52bf5c20c2a99285a79020e433c7fb', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ba363bf94dc062d52932a05f9a4e360a', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0d9c532cdf873c3dc88d6642f2f7a07b', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '992f8fbfeec64c3bb4b89fd75d220d9e', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:09:21', '2015-02-21 01:09:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:09:21', '2015-02-21 01:09:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:09:21', '2015-02-21 01:09:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ba629680b4b63d4c7781726763846fce', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e1dfd533d752ab99ab7939fc6bc1e198', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '843848c23bfcf4f97a920986d4187ddc', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '14872dc21200eeb1ac087bc73962bd35', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7a7383f4ffa9d7888d751575433eaedf', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9c1cd6b2d3b4a8d800570f888dcb5f7d', '2015-02-21 01:09:21', '2015-02-21 01:09:21', 410780858)  (14.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:09:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:09:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:09:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:09:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8c7f6a1805301e72243ac5515a56ff1', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '48e134af772cb6b9eb48924d8dd6428f', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4df5a15638ee023e08303ad0d9f41db0', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '58365f55b85af7db41f8a74d05e0a055', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c122a0cb813e69037c6722181fa03f4f', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7d7709c8b371de1eae7539013819e802', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3a71e3fa5b8703c4140c63fba7cc1520', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '842743a2af95151961517c80ef724a9b', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '59c0547c4843eb760ae2ec712e2ec3d1', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bb438c1837b74790f1d16d6a80ea83d7', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3d5f3b2718e54b33be9091f43cf75a05', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '196d5e4f92449d4b8018120bcbea758b', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '342bb6e8db0da6ba418021aa401dfc53', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '57f746ebf6b8e8d8ecf26b3d4155bb02', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '72e3b84c5e80ad913329840d5bd89c2e', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:09:28', '2015-02-21 01:09:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:09:28', '2015-02-21 01:09:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:09:28', '2015-02-21 01:09:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '281d82a98d813e0749cb6c88a3491432', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2b848ae43e2222dd9531d34f19153431', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '23f4a286064b1c590d5db88cf71f1fe4', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '413cb57185bd22089d0fe83873cdc101', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '55a00680f3597c836de9d2f801499278', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9abd467a85cc8f8ceda52fe074db353a', '2015-02-21 01:09:28', '2015-02-21 01:09:28', 410780858)  (25.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:09:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:09:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:09:28 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:09:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:09:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:09:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd61e3c4396189bb184b29236ee17ab81', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2b09f982b0104b62de89e22a16c9dc44', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '614be418c1e3daa1acf03f2e0512995b', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5c4730384d762b99824390821a670aed', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '59dcac854af180986057e8db8c11bb82', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '43e1517ce5bfb93c1f7c3258f005a166', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f3dad269b074426128b5c58a262d9c2f', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2e15e0ab7457c4f06a7d4b54395ca521', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ef2d261df6f4fbd84b15e76411368cee', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cc7f60003248a6a2c93785d7b2d0743a', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '962395975238b03d80ca69cc36c59d0d', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c390cd5caa1c3e5de19889a13d74c953', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1ebfea03caec608175342c42d7256fc5', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c39ab3695ca1c7b4ce5ed8468fc565df', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd6bc736afbdc681b212d69a7bcea2b0f', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:10:18', '2015-02-21 01:10:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:10:18', '2015-02-21 01:10:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:10:18', '2015-02-21 01:10:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '237e6a115335a77f5fd22e7c15ad588c', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0837fe11d07b5de1703204eb7db5e67a', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bef892a9387aa3f785a6aa9c9e33704c', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '631f5f14401c811e4989f6527159397b', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '939982fd1ab68f824dcd4e2857d76707', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4f9e520a747f2822b73aa78d8e2fff3f', '2015-02-21 01:10:18', '2015-02-21 01:10:18', 410780858)  (13.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:10:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:10:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:10:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:10:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:10:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:10:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0ef5b1047932df309ad05e5812d4a095', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '390867f201f7a69b2b9be5925e5e7b16', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7d1d3e4b26bcd2467b7bb03b9ccba4e6', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '67d15a7efd468304bfcb6da890afc3fb', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6330a097fff8f402f961b345584dad7f', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd7d27239df8caa1b14dfcc439c962519', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3fac9ee91e2212782dca72b456d142ff', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '963aa6e08cd96d4aeaf556e78b7b4073', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cd30db9f004beabd66d801e4de355290', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6f953bd09e443e2e10a94f0189189ec2', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '77b3622a682f0d8de24864132b68c377', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f41e01e82c55bf12415ee7df069f64f0', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '30492b3488d2b0adacacec20d808ec7e', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a2f4b75bb0f7b1822a87b35a609ceda4', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5d982ed372060809a30f9aee24e26322', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:10:53', '2015-02-21 01:10:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:10:53', '2015-02-21 01:10:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:10:53', '2015-02-21 01:10:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '94fcfac32f4138d4ea6cd612b501a8d0', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7609c26af256533bd2e767eb53bcf56b', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '263fe66931a4f4ade8ab247e59010769', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '448ecde49fbbbccd80edb1a0c375584d', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c0b0ad8bf32fe5ed5ce6e3765a3a909c', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b0f92c3369f70b4c1608d2e92dc25e38', '2015-02-21 01:10:53', '2015-02-21 01:10:53', 410780858)  (19.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:10:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:10:53 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:10:53 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:10:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:10:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:10:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '42483fb3c472057d989de18d47234d09', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '001dc0a0b7268606044fd8385006c84f', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '99c6c82aee91dfaf9f77e07037cdabb8', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ca75a4e6c4e29763192e2356b86d0112', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bba074141d3ab5b773ecf8ddac5eda51', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e3f8bcef07c38cb7102dae164620d974', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9315a3508767b17cf8803c49e94d986b', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8895c1fccce2f56d3dff94485a8b58ad', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c26675712a384014ac11aee4bb178610', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f90f8b952fdd87ddbf099ec0bb30f348', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6efd27d378a542b7f657ad51ad093fd4', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b8796eba2dce1e8c4b2fe6487020fcb8', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a446c258c3994378c8705b4779469b5', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aa6e507a36586153d5973465fcca90dd', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c33a18471a23e89d10f91323c3dcea89', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:11:18', '2015-02-21 01:11:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:11:18', '2015-02-21 01:11:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:11:18', '2015-02-21 01:11:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd3fe7292ef7c28646f5dcb60f33a0eca', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0d317767d18994d6a9ff0c52f7087c05', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '29df8a90de4eafd41435a6601bd5e4cb', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e4aa2f7882dd171f6685e5da3074b2f5', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2998a8ac7c872a010a7c7ec5cba5a80a', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0311743f30f226d0762a8d28d1581e81', '2015-02-21 01:11:18', '2015-02-21 01:11:18', 410780858)  (21.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:11:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:11:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:11:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:11:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:11:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:11:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '82d039670d644afecc13d0c04c519656', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2cebb6e61e070e17dcee948a04e4f2e3', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '35d2a4e002add3d1377522b853ff34e6', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '329875199b6f38eea951d86a700a8ce6', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd868565b4606289e4993f64b29928bd3', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e13d3ce09ecf1cb7eb7993d48657240b', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '86c04ac980534d60355fd8b11eb735d7', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bd0bb6bbeb2603a4aee73281757f1aae', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a650c59bb6f8ee318f0d41322116195d', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd5e7c494b66c08eb4e3f761584f2477f', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '765acb2da5d6196dfc8065db1d88f46f', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e9e4feba2b9ec2984518577280dea741', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd5f27c2a4260ebe742a58311a62985bc', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd6e5d7a1df7dd3085ac5dec23923714d', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f480903ff4ca8b9fe87cf7f620049dfb', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:12:54', '2015-02-21 01:12:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:12:54', '2015-02-21 01:12:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:12:54', '2015-02-21 01:12:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a1634d8bf69605b0efe8ea73fc35e0dd', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a55dc427a7b77105b9b6e715323cbe0f', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '75a1e2560c4e1346151bf8c0f07bb53b', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '935d0b73f7e8e2863b497d466d7c83cc', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '47f381c1ec877b106cb28330340a3a5e', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7e140de13d4c78a008b8de271490074a', '2015-02-21 01:12:54', '2015-02-21 01:12:54', 410780858)  (19.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:12:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:12:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:12:54 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:12:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:12:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:12:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '440244ccff958137ebb49a108602c481', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5cca5d2bdb82b6d9cc6f3a6331be96dc', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fc55d849703eadfe9d20de8cc270bd0b', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ed8661d1869f67f8c44d76371d4cf037', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ed1bfc8b83fe8684fd6a5ecf6c12ef4b', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cec73570dcfa05f872a99ecea1384f68', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd3135c41bcda07bebd69a0e247dd2de6', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f3f1485dfdd3d0313accdf0111c3404c', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8142c1ddffe95ac90e63cd7e7c46f765', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 966629572) Fixture Delete (0.2ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '856fef93e1b6ea89628548c1c894d260', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '171e938ddda7a0fe133e6ee3ce22eb0f', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e28789e727bbb2de58a4db13b1b3ed80', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8f53b044b18872be0b97b6e223a80719', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '11b4aa701b4816e91f89d506bcd893c0', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ebce68bf28cede1bf587c0a4e0d9c9bb', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:14:30', '2015-02-21 01:14:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:14:30', '2015-02-21 01:14:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:14:30', '2015-02-21 01:14:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd0454df60eb3eeda0ad3507d768d5ade', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '58e7b7d7c1083427390f0d040dbec086', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '167796fd68113f71eb6174e080d1cc0c', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4c9f71c23a87d84a950820342c100146', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9b3b9bcb8bade25249c424a1e8f5aaa2', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2021d435c7438ec0701e380cfbcc9bd1', '2015-02-21 01:14:30', '2015-02-21 01:14:30', 410780858)  (15.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:14:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:14:30 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:14:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:14:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:14:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:14:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5d4dee28b57aa4e01fa8152e1bd56f1e', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a40d6e90ff79f606b4375b582e181760', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bd2a2616ab84a5ea92fec5dfa4558baa', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '94bb84fd7e2632ba8a4ff8300decf849', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '885fb0a824fc31376b772e175fbdc667', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fcbb5be28353f6ced839b8728f906915', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c143a0c9c38959e728c690a7f7c93e4b', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '97a719b60001023d8efcd0318733bf68', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f377e13fd4ab532a79c8a494c5ce067f', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '76b238efa9dadecb3fd56b3f93c4dfe3', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4fc6ee445ad3cb02d256c94833cf82d0', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2eba84d2f3b0c4a46c7be11fa62c58fe', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '807fd74f36e087787be04961923e58e9', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '260b56d9b171ac4383d5276701905a1a', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '95602e9d51009ea1897dc1d39d43f308', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:15:38', '2015-02-21 01:15:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:15:38', '2015-02-21 01:15:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:15:38', '2015-02-21 01:15:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '51bda3a72a2b21d276211de35611c32f', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '24a0ff85f747f1d58fd95645a11ae16b', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '32461d5450127dc346a229ee12fe3413', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f5444bf309ff7d2ce51d4577d0f76e75', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fae14f53872f2debbb86690e6690119d', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e3710df1673d1004174dfc14b3ea8b1a', '2015-02-21 01:15:38', '2015-02-21 01:15:38', 410780858)  (14.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:15:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:15:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:15:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:15:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:15:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:15:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4ee18aa2876c39b0f510800dbf0148ab', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3feb1d17b119f1f5f233d11a31ef1f15', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '24217feb79dfe311faa3833e96877b4a', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fc3f9fcf2be0bf61804a70933381cca7', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e3753f8ec23971a65a08f0ab86872555', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6e6c3956adac9b2ca8ca2dbc56bc310a', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '99b05e3d67744fbba405709ab9fdff84', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e916a7580c6074f7b1b6737408ed7485', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9e26d434b208386f5f446909bc575077', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '94e8c95b8ab34c2973e706679e838b47', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '330a0dcecd952fb67ec6deb43209e5fe', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0d18c0f76a424b5c8c6cd1f58c6577fe', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '85b240f89833dc8eb2919343473e3c9b', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '79962296e95f4f84ca6038e463bb86f2', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd917759a84468ab3ff7ec8276739815e', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:16:54', '2015-02-21 01:16:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:16:54', '2015-02-21 01:16:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:16:54', '2015-02-21 01:16:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bdf887d8d4559b33a050bfa887e994ae', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '76a82bf37d036a5804a9dd04111f7e77', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '925caea877f87270257091a16da0a669', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0d2b287f4c4faeb5774b63c3da6f0df7', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b4c9fea1de4ad50aa56a7f298e9159ef', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4c164125452646b1c9f898a879ae0562', '2015-02-21 01:16:54', '2015-02-21 01:16:54', 410780858)  (23.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:16:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:16:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:16:54 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:16:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:16:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:16:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7693c8bac37090227e4b9697926eef77', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 761411935) Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ad1649c541ee5420cd296defa7567af7', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6f8e47c8ef3d26e2edcefaf11848c94c', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c277b1d298dc94ceb812078f4c7ac2c2', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0ee2fbbcd382c77097f6778603623153', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6ddf67a63f875a781af01acc4f855513', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '944048d3559bedb7acde3217b017e0e9', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 261299535) Fixture Insert (7.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '21c5258ed77807327d6eedc60208d822', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '27702df1d43f5be2b5d90ea6405f5473', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '80c4f0826234bdb0dde8e713245afda5', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '70c2d30786eb7759f2eb2625d45dfe56', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e540e5cab167fbaf00ea15bb363d3f68', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fd7c0123ff263cf8b0fe330bdc608df6', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b244485b6dc7e76772646ffcae1fbbed', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '91f0c5b359ddf384c85781073f188ba4', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:18:03', '2015-02-21 01:18:03', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:18:03', '2015-02-21 01:18:03', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:18:03', '2015-02-21 01:18:03', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '67b65c1f89e6da159398c17909dad545', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f06f8e342b7e3bd652b75d338d342b21', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '112b32060d349926e00961798aa73783', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '156235d622bf7f473ff9dcc03eb1b72c', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8f93b7360ddea70545c310f1edd6c2dd', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e726463aa9274b0d7622dc8871ec531e', '2015-02-21 01:18:03', '2015-02-21 01:18:03', 410780858)  (14.8ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:18:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:18:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:18:03 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:18:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:18:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:18:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '92e650e83daef6726a2c4b5b6ba54cd8', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5a60a3aa0193b9f9554bb9c3624a6c37', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd55c62a060e0c91c80ed47a80fc8fa93', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dcc08a35c80d4fab08e3a80d88df4322', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '02d36b634b7eb28979c1ced242c0a500', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ec856c70071969125c185701ce8b7ed9', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '87303a480cc1487600d704ee7b28a5ea', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '66abb52b4bfae2e364edba05dce15028', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e61f4c0f1fbc86c3349c42201655898a', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '17e800e9c729f86c6cdfbc9e32195e4a', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '704a036374a72d9a0f208dbd6bdc7ef7', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '34502ed464ee1ecd59f3bc0271d39d5b', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4c167736af91fe1f37d81bfd192ee41a', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc66fac3a0edaf780221d0ce59fe7847', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3165a37b2529e4368e71bd9f8696a3cf', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:19:43', '2015-02-21 01:19:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:19:43', '2015-02-21 01:19:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:19:43', '2015-02-21 01:19:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '808741dc38b04ab4d3b4f9f7512556e3', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6d56f83e9b6484c6703b5844bea817ba', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fc3b88a2bc47c4eb6e7c9ab8f7dff417', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '64a833534a41ff29b8dc97e118f88f34', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f19c6611445974ee1d6976a2b120a255', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '13001e59d1bfc6c2bbb22bbf016e690f', '2015-02-21 01:19:43', '2015-02-21 01:19:43', 410780858)  (13.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:19:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:19:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:19:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:19:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:19:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:19:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dac92fd5c65136c43cfa1a9884338b76', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '53d8ef911af4212362d3ee32965e5284', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '00d21c4236468b7a5e9cf47433aa2e8b', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c9956564dc4a84452cab1056a31d5bf8', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5215db18ad9df25775254b7fb229de22', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5d6d73dd01693397ddc584ae0a274a9a', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '504d12f5b673e2a4337998897613a5ad', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b82eee3924a996cd3a294dbfed25b0f4', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '62e220b924100200a8b4f24f0db4a4f3', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '043b425880fb542e3ced90a50039102d', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9cee1bbdeb0c6ed4aca04336e2c71258', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '28e5c11548a3878343fcf97aa0564cc0', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fd744a4c3d3df86eb4568366ccdbc2a4', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c14863ac8fa699a9ef4df4363a58db44', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5400d93c022ab35a20a73f977ef06d7f', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:21:10', '2015-02-21 01:21:10', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:21:10', '2015-02-21 01:21:10', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-21 01:21:10', '2015-02-21 01:21:10', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2360ef75784dcdb43567b589acddf7f3', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8b77dd1eb5cd8fce53cb27cf7ffb2617', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e8bf0da5222e09ac8f57e38ff0b816a5', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f1c6a744788dc96e891de1918a870bff', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3f3f6b855992269b85ab985eaa2ec822', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '89ebce9f9fe309334b7662fdaaa19968', '2015-02-21 01:21:10', '2015-02-21 01:21:10', 410780858)  (26.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:21:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:21:10 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:21:10 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Feb 2015 01:21:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Feb 2015 01:21:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Feb 2015 01:21:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (1.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9deef3fb60130cb1b21b551354d02441', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8e7630c9b9318c01c946c237798bb7ee', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2d0cf5c29180968f7e76f1ba87d8b456', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '80e33aa189601ee5582b09a939e00489', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '55a028a475553c92a201efe6d9c87707', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b85a7f77d23b65373f1d3e05100470ee', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '71b4ad75d04480d000d472e68c3a5c61', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '85a9409da7f21318e5b0237d3514216f', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1fc82ded123d4a08661e6bfe282fba2c', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e5b51e9518d0f7fd2769180693532734', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dbfa582ce6c2779ac65d92231f4e7f61', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '667f6f12a61a04313a5680586b70f8a6', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd4eb1d65bd72b9134ef339996b485db1', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3dfa21a67d9bb50585e6de65452bfd31', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 689259936) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b6d1f7fba6dbeb72004bd67cc881d617', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 19:36:27', '2015-02-22 19:36:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 19:36:27', '2015-02-22 19:36:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 19:36:27', '2015-02-22 19:36:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3ddf635bda9422625d45bc6e50c570cd', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e8ce7d2cfcb52dfe4038ce31c012bb9d', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0900f99d17841ce27540ad1b1b5f1e44', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'faa50109c7e42021828932db7f645daa', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '122fef87d03aae85bbf1e1e4498aa2c6', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '17b9bd309b5307c70fa5830c9a95a755', '2015-02-22 19:36:27', '2015-02-22 19:36:27', 410780858)  (28.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: wraps has_one in emulated collectionproxy ------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 19:36:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 19:36:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 19:36:27 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 19:36:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 19:36:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 19:36:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4bd4778356f5a8a33ff2248bb55f398c', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7005a659403ede8f8ec55ffe72de6d27', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '94eae8e9e017a5420811a92961b92f42', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3db75d41b70ba00305a7d88faf0ee8de', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2294800d2f71e6f560172a0faeca8219', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe6e5791c5851b81a12f7db2bf7a014c', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '52838ce90cae313c1795f72f510ae18f', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3cdcc01d4e0485e2bde3ba100a206add', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ec74e051e5e6a7f122283afb627d3355', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b941493c90a6b138a8bd2fd9a2b60f91', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7c27b8bf8b7b566f7f44a876e5e51359', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0c6c54a16fbc1d3fa2719b8f65b93b6f', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '470944fdd303c590a5ee5cacebded07d', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd3ed681f725740b002451fb5d8de3192', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a318821afc9ec8828732349e4f444161', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:29:31', '2015-02-22 21:29:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:29:31', '2015-02-22 21:29:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:29:31', '2015-02-22 21:29:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0dc64254905061cb397adb4e9abf20ef', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '08a76ba55bc973dbee01d7c6b1f8975a', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '054ebe79ff9a7152ddef1288eb82cbb0', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '25d12500a4bf87386a622bdcedd4be35', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1cf4313dbc32c98ed179e363da29a361', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f302894e4b42334818e65afb6d33c810', '2015-02-22 21:29:31', '2015-02-22 21:29:31', 410780858)  (13.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: wraps has_one in emulated collectionproxy ------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:29:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 21:29:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:29:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 21:29:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:29:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 21:29:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bf131745f60b9bbee7f4527d1ca4f9ec', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1eed50725c89f98120c6e00bfd72bffd', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8c35a471ebfb4ec1fd3ef0bffad793cd', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '56854406bef9ed8c109a33d1ae5962ab', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6e113f678ba7d7d0075700f7ffd1a969', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '166da5cda28b889707581cf47b6f87eb', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '42b782a7dd7e3bee5d08e3bf07d90e82', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6693a25bedf901a4dddcf13c85ef2501', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'df985277b4b7b5ab2bf05542bbe67e25', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3edf6768d1b5ed13c54f9ff95318d863', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 343404421) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '10227cd3e3f5cee790871bf05ee14904', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '908bfdae0a7f5632250cafd605015fe2', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '95887ac72cca91d815088f5662a15d38', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2e1d5b28365c5adb64c9f2cfcddaf1e9', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '30ef801ee7c8f1d342440b9c2f0efa9d', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:30:15', '2015-02-22 21:30:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:30:15', '2015-02-22 21:30:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:30:15', '2015-02-22 21:30:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9581cf571915d5a27c5509acd43c7275', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e708fef86e69f5d1f772bf8ba7fcebcd', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '104367779454b3d70b842cda2df8c13e', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.4ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3790a913d4fd6fc898473ac64392e6f7', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ee7b435ebbea728f00c703d62da9e602', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3ca37bcb2085723ed195d0d749950444', '2015-02-22 21:30:15', '2015-02-22 21:30:15', 410780858)  (16.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: wraps has_one in emulated collectionproxy ------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:30:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 21:30:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:30:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 21:30:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:30:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 21:30:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7cfca0a0eab6a489f5e83aeefd7f7be0', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8c3f835b5f9a54d03fdfc0233da7a350', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b3a0a62c0f3d8a2b8a6377f1309c590d', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd1135e62e08e6b7e0bdb99715914bd4c', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '40fe0b7941a9b718b4dd11a1b6757ff5', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e43f97650e22221e340ef8ba775fd44f', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fef76717663fe9457a4ca82c99951863', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cabe952c15c3b80c7fd4b2a560bfb0dd', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e74b7e3337fb0f8eb223bc8795647323', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0d40d8c59ec2c71680348aa61eafb92b', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '86c950b218a1c2e6961dd3723969aa7e', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'daf0b94b3109e4005819f783605ecbee', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6125782b811c0a8849f23dd835ea1068', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ab96212968fd771716dce2142c843e95', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7dfcad1d5152ad09a437749eec24fd50', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:35:41', '2015-02-22 21:35:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:35:41', '2015-02-22 21:35:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:35:41', '2015-02-22 21:35:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0dc2f7588bb4404d2ff807a534788d3c', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a2249deb4387b5b6712c42f05f756a8a', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0f5c92e6aaa1a25b34ceab98992a70ee', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b7bc94d37ed6301a2ccf33dee452ffbb', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4ccd8d91b02e966e42a7f59157ccc77a', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3b1c362d5272bd6125bbcfac31c37813', '2015-02-22 21:35:41', '2015-02-22 21:35:41', 410780858)  (12.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: wraps has_one in emulated collectionproxy ------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:35:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 21:35:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:35:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 21:35:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:35:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 21:35:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '409179c7f67084c02ad22d398c2b34fe', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9cce7da5ce301bb60bd2a44c1e1b4396', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '22dc81237627d99b0683ad49368e9fa0', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8c5d73a5efc09ffef3cc24288f0ee7b5', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '248eb61f20ae6c80490aae3d47f9f0de', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '63e660ff5e63144d4d1c9e9f18d81e4c', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '15035db5bbcecd41a6b0b0cf9fa0e138', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd04d9a584ac6c2355edadfa2b5ccfe4e', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '039f3151f37e43bb9bbd8005c922f5f8', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7e04c793c7332098c3387fd56b8d6e75', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9491d43ab8088d64f87cf496a39ef592', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ee98864fb89a6be84baeb1c7beaeb4a9', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '60483fa81aae5da4175d322dd3d2eba4', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cd32ac6301cf1adb6aeba466b7a0ff56', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '24056abe519e4662863a4954cf75904f', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:50:07', '2015-02-22 21:50:07', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:50:07', '2015-02-22 21:50:07', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:50:07', '2015-02-22 21:50:07', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '49937909b9f6ec45da6cc63251c854fd', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'eecd8a5209414e9f17e5d07bd391a563', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cdc52976ffb5da1f4bec9125b0faf462', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7921ccf39ad687e63ca0b82521283c8b', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6193591fea24a5895cbc7d20b638d9f3', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '003fd6655fc622d79ae180319d00505f', '2015-02-22 21:50:07', '2015-02-22 21:50:07', 410780858)  (31.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: wraps has_one in emulated collectionproxy ------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:50:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 21:50:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:50:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 21:50:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:50:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 21:50:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd9ebe9853d74f18163a02d1ae6137997', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd328dc11782c3eefb33798a2d8597f36', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9e847f609d7b822e61909193a0ddab37', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75486025edb1371c80affe159ba05a0c', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0f835f9b3f06a27ddf186ee2cdf3af12', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6ff18f5750fac38858bd458fc3bc5d21', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0520ab88cee826c9fb09604e9c7ae837', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '365b6eb84f738ca0082baed289a9bd95', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd9d8fe8b47897636c0b8fd2564845d66', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5c667ae322e09a246707fd960080cf8f', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 343404421) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '65858c2d2fae51f5543aaa2a6dd497d7', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd26c4ce8d25cade6be59fb3930493800', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e0e295ed7b73ac0726373a846759d53d', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ae4bb0efb8548f9bfe260a360f367a74', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ac764b3de2a2ed61fa40a0d2e29f3b5b', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:54:32', '2015-02-22 21:54:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:54:32', '2015-02-22 21:54:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 21:54:32', '2015-02-22 21:54:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9cf604870a6ca88953d8c4bc078fcc04', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9302270df5cb4e5dc1a6a60b1ca84814', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ce6f996758670c1b472cb64205f7efa7', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd1aafbc1cae86322abdf73c180b8f3d2', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '680344ac8a0a9fddb76b3b5cb780bd16', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ba091a32fc28f19e6e63465505b6943a', '2015-02-22 21:54:32', '2015-02-22 21:54:32', 410780858)  (22.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: wraps has_one in emulated collectionproxy ------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:54:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 21:54:32 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:54:32 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 21:54:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 21:54:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 21:54:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'efcb4b9fc755357799991b948a2b83db', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eb58624ba7c24da939f5f18388f287ab', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f16b4655dd5a7afd170756fa92a78d5', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a34ebb66fb3a5df4a5f4064bce15e6d7', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b53e01890dcc3d858e6671413b2dd567', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '17265f44cb9aa1ce7597307486c63845', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f94ca4a3cac1ca125e1d69fb32ffc483', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e0d5489e2c6df57f77aa5cfe3b683b8c', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f3bd44cd9f5e756668b51e28061276b1', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5de8b44aeafa26278694951be4ce73af', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0ff214b3ae6eab07a29103e516c29b9e', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e1de59d40f928da8ed21131d7a4630d0', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd23be344e4b684bb91fbd4ae6087d17a', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '28680b81d9efd4985b742779f52bb1a5', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2eaa8b52aa3325f3e518c010ac54d178', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:14:53', '2015-02-22 22:14:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:14:53', '2015-02-22 22:14:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:14:53', '2015-02-22 22:14:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e783db3c8623a56efe3f392a18405eac', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '11f4786e53340e29459414ddcf2d7044', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8a7efb5f49abdd1af60381173e207d9f', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f937d440a2d7053a75ce69fd3ee2249b', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6c5675cde20ae051e0c2e8c7e25e24f2', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9dc2954694ba7ca083b749db835615ba', '2015-02-22 22:14:53', '2015-02-22 22:14:53', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: wraps has_one in emulated collectionproxy ------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:14:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:14:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:14:53 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 22:14:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:14:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:14:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f3cffeba549404f43f1b8260170f1274', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b8bfd27c2f0d4cd3c8f7db893ee5c30e', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f035b8ca83240b72f60eb4158f04b0c1', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '80d7739e1f8fd8008b76755791b22625', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1ce2ef99b34ea29d04565bd6ba227275', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b6c9a44c9daad2b0b7754a5b588059e6', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '408af2411a42952b0aff0877fe9af768', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'eab0d42a1587d77d41549d7f8015e1aa', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4289526efe104978b4a0da3310d0101e', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ab52ace07f99873b5011f55d194d0403', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '305869bc9fa6fc9c8b68e693e958c778', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 102195269) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5ec9a59cab78ae684d84d0fe720b4766', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '45d0198641df67a3a93de542c103e0d0', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f1b3cc81e2e8065451ae90dc052eb7f2', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '15db0f4bfd9d9a147e7ec093ded323aa', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:17:04', '2015-02-22 22:17:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:17:04', '2015-02-22 22:17:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:17:04', '2015-02-22 22:17:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2dea1e9f46dab521ea2f31435fa3b2d3', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'df7a35f7b6d7a280ece85c3cb6a399c0', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '00d7d070afbb48ed48be437e6eea83dc', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bbec7a3d177c9871f86ef12d0cb49d6f', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6d58d04843440afbddcc62aeb4b92f70', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '97a14bac7e9b818227e94644bfe075f9', '2015-02-22 22:17:04', '2015-02-22 22:17:04', 410780858)  (20.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: wraps has_one in emulated collectionproxy ------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:17:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:17:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:17:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 22:17:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:17:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:17:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3be899986710dc2d076c643548beaa3c', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7926e2a8e8b1704d78d520a515e876f5', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '62bc37cec7e82d0b987986354e712e08', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e820a3b5504866f76b4eb4488420b4df', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9685a3a2f5fc98071b63b8519d327ea4', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a9f1b8a47df645ed4607b1da2683c133', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2b20905cdca6506efeb8c373378398e8', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b004de4ac78690e9048440f938ce0cfe', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '17e05ef740b4477c1c659a28acf90bec', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c8af567d95a5823eab37311fe26113f3', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '35d10cd038db9045e5ea57e385b25bf9', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a25134e99e5a629ee067c094aa9cac55', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e428aa2513c97050bbcd165d1e2fd739', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2cef3d79db0ecc512db660686e41a045', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ef75aa2a3559a57c5bbc72989743f03a', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:17:52', '2015-02-22 22:17:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:17:52', '2015-02-22 22:17:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:17:52', '2015-02-22 22:17:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ba79730930a57e542e29e194a5e079de', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '71b13a948d09c05c2e0f98fe8b588f0d', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '60ed8823ece1b5b56b8797ad66a57907', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '22552a13430189f05e68dfd68a4abd5c', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e2c5d293e720e6e9c4f8be219e2690f9', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b90b6a1c49f4fb7ba74c1dcd7a708cb4', '2015-02-22 22:17:52', '2015-02-22 22:17:52', 410780858)  (14.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: wraps has_one in emulated collectionproxy ------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:17:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:17:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:17:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 22:17:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:17:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:17:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e6bd2ec560acf2422e6a990c385ec56f', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c75b888242e8d2e3dbfe6f6960920649', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5df5b4db9f45fa3cbb409fcfa5e93ef8', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '335e07ea4738bf23f7dc4b33054802e1', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9f31ddd3606f5b62574de44344a0b5dd', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4fec54d77918a1804e4c211bcb55dda3', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6cd3fb3254fb159e616fba212266bcea', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cca35d485092d8ad1adfbe392c2cde82', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c51aaf22cffd4306c36c79a1c398868b', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '26df7160604dfa5cce177e63bcd1ea40', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e61a4a06971f32ca62ed22d5053a93dd', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '03b88106c46dae65b2bd8509c33bfdba', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fae3ea52aa2fea9568088f4e9e87237c', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c42abb1597ab92505a7dc91df7ce8995', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6e20edd53f5660aa051e6d91b911b9c0', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:27:07', '2015-02-22 22:27:07', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:27:07', '2015-02-22 22:27:07', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:27:07', '2015-02-22 22:27:07', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3d7270c0710006b112d61b5b74e10190', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd557bbf19cd7ab03bbf1b669fde98ec6', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '227d7e6df61b86217458e37123028fae', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bf50de8f5ff3f1cd3a0d010d94b380e4', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b1cee4823fc464d17e23f5bfdef55e70', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '874e3ab65d7d3769896a6f499e069f95', '2015-02-22 22:27:07', '2015-02-22 22:27:07', 410780858)  (24.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many ActiveRecord's CollectionProxy ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:27:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:27:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:27:07 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 22:27:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:27:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:27:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '972b5c439c3b569380b5c5635e0d99eb', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ce4940942095ab28389f730ed86cc017', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '52ceed152e5603a41bf8e334ef1c0b74', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9ddde742688faf4a79ca8f218e10e694', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '128fbf8834ae2fc519a6d876b26f6676', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fa850bb3b4b6a2941389e0f6db919747', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0aff06cced016a6989e8f2807b5e1359', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c89dccb169caa52c1cc3d7b91f90e414', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd06ba7f409af9578486e886143e4d600', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6e88a694741f6f2b071630db86889b31', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a705d564217469e84d8c71c7834c3cc3', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e9673c4ad53d8506b8d46678675bf39e', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '82c4e7b5141684a02211bbbe2d50d5ad', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e43e717a4ce9d7081b59f43948684baa', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b12e3a3ea4e5d8c2c8a270da0390d8d6', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:28:01', '2015-02-22 22:28:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:28:01', '2015-02-22 22:28:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:28:01', '2015-02-22 22:28:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fa8ebaafab7fab938d00e5a6b3344847', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3bd71e57c050087146876f0836af2b69', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3f243d2533a8f328f249237073bc6a98', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a92e0bb40e6ef2ee27d0587ee5c9f3ba', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b5c60c2961ad37fd4c0a130f19bd634f', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fe38a4978203990fccfaa31daf130b6a', '2015-02-22 22:28:01', '2015-02-22 22:28:01', 410780858)  (23.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many ActiveRecord's CollectionProxy ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:28:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:28:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:28:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 22:28:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:28:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:28:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '500d642c711de5657bb0a145963c53ac', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8f66cf8cd8714b5714c677773dd71251', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e3ac14902e5178c689e2595a0ad2d35d', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '438998d65961b2e3adba8ec26941c4e3', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8018154c59bbd3a0d9e338fcefd462ea', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'edd67a8cdeaf74261b5298c647a219ba', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8e7f15680d64201dd42c563103ba583f', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'abf0bd0d22eb8738c58e397562a07671', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6ecc69919d817827a8c7bcbb010efaab', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'aafa53e54b8b07b15ce780a785b9e92f', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3dc78a6c7cfb062eeddfa67e3d426d11', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4f6e516c67618097b1d6f5cea1f26e5f', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd597a77fabfaa942f992f41ffa831d09', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2fdba40e13f9d96805b5d0ebeb9c6d29', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '867ae08a6764c090224832c9f362b15d', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:28:17', '2015-02-22 22:28:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:28:17', '2015-02-22 22:28:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:28:17', '2015-02-22 22:28:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7ee9417c21fef266f848f9ff4014de7c', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '05140c24c6a7bdbe7e834fcabb55768b', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e060e5ce9321d200b5ad8aab345c6a9b', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '916b2a468a154db0de89446e89543a1a', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2507a2cbc75d57e61b6730457cd195df', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '066f4bbcfb76072d0209bd491eb14cef', '2015-02-22 22:28:17', '2015-02-22 22:28:17', 410780858)  (18.4ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many ActiveRecord's CollectionProxy ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:28:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:28:17 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:28:17 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 22:28:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:28:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:28:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7f20ddbdb3b2e95ba33af8543a0582e6', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '143c635144b5fbf8f6357901169a4c02', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '52e02b7435b1dee87146ee6a65412a60', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8bebe5e7e938621f063e5b0d2b2cabb9', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '22ad7ce85fceb9d378996a1473fe5e46', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '192d555c6c40cd51e75aedc7cbaaa611', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e68c78ec876dbeff7493eb2fdf106837', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '918972f8df78d5f1f61046e395d46025', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6c494b9deca9ac021cb30683630a78bc', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '66d94b2d9c2ce947ce198440286a6f14', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e5b35abbf9a9457532aeebb18fed6e80', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ec984a143d44dabc8d082520cac82384', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd502fb41064535cef3364d694dacb351', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f29704b868bdf1fbf8115b629b4e035d', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c877793728715509395eaad000dd2e7b', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:29:42', '2015-02-22 22:29:42', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:29:42', '2015-02-22 22:29:42', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:29:42', '2015-02-22 22:29:42', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bd50e044c7984fc2d0c1574a166cda27', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '80685cb8457f382b32d9080bd89e21dc', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f6faaedf03e2e4322560021a5f60b0cb', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '61d07585db4a737656a11ffe72ab5c99', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '74f90fe9d6926fe7fc3abe5fd34426e6', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd926af394bc35e07bf9cdbf7c60aa884', '2015-02-22 22:29:42', '2015-02-22 22:29:42', 410780858)  (20.7ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many ActiveRecord's CollectionProxy ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:29:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:29:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:29:42 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 22:29:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:29:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:29:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a2baf34ab9c0d0fa9f587626a382006', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1661f0606afa4d33bd6405f78bb13932', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f28ef4eb8bfab1bfb8a0ae948cf1ab1a', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6bb48b0d3f0bcb494616c03bdf6fc497', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c44549f34a99c6ef1a6b1587b2b196f5', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e852c944b6b3b1fe92a0febebb86a688', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6ce955bc53eaffee3ff0d40f478d1a5d', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '97d6f87d867d90614d62f98628ae8de2', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5147fc31b2ed18cd4f99b25b9caf5a9a', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bd6a703e662bf34f5e73a30bb2f15726', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '763a2ad279513cd0f1e3103fefb83bbb', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2fea2a6512c40d8bcf4a144b9a3afb46', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3ee1a9a1ee1023f711416b6e0725a002', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e21b227ff2f71678039bcdeaeceda663', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bddb8f1f19fce01319b840b929f36fcc', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:30:33', '2015-02-22 22:30:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:30:33', '2015-02-22 22:30:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:30:33', '2015-02-22 22:30:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b9b5933a3ef9e0df75ff667c335a6539', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4d29d037c69205aaa2a3f36514abbb03', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0bd44d393d7adfdadc88f1f58f438137', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '93d4f47d2663be7ab5ecc9ed81aef5e6', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd582eb3474ef99f8a33ceff265d29aed', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '055cd990adc99976a24a482388cdfe8d', '2015-02-22 22:30:33', '2015-02-22 22:30:33', 410780858)  (18.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many ActiveRecord's CollectionProxy ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 902541635], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:30:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:30:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:30:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 22:30:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:30:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:30:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fba7b497f9acb6b953cf20373b9a4bab', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5b431d1d623475e932d1ce84eb682cf3', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '01973e44c1128e943737671343dc9b78', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '020924faba2752e21a83114987cafa01', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '20abcc88e474a52d1378e562ee32ec0c', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2551ac6e446776da6102232eaae2af95', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2f6f8cebfeafde204539f9045d02c7d4', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6987d58e05878a4147663dd7193fca82', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9abc630d6280707ee8084ad55c94d716', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5a19373536591e648478506adcf14092', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ce419e5fe695ef7d833348e4a2d24974', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b1ffcc3dc0363cf94830cca59036aa4e', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a26e127cc292a81203dd91f6c87a6f22', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e0edf88f76f49ca23509da191e0328e2', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c00e6459cfb5eecf90a43716aa339413', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:31:58', '2015-02-22 22:31:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:31:58', '2015-02-22 22:31:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:31:58', '2015-02-22 22:31:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '427395ce9afbe2be097ec75dbf7444a1', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '54c0bfaab4c22918adda1cf08975396c', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ebf05abaf4e1ca60eabe2e71afc5d2fc', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '227ab81e8b2006467625e020588b408d', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4394667ce7670247aab8e35656cb3eeb', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a67cd035b99e505659777d56d7fc95cc', '2015-02-22 22:31:58', '2015-02-22 22:31:58', 410780858)  (17.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many ActiveRecord's CollectionProxy ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:31:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:31:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:31:59 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 22:31:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:31:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:31:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4796ded9be1c5fcb4130ae73fb62b318', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '59bc80050542ea355bbcc57c391ceae9', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9a00ac33994d1b73ab4a68deb25a80ae', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1c039c3279faa2581baf59471775c662', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1540125eefdfcd55fa86b0b9ae3f8457', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4bf1eb4f8cc48112defe7adee441a69e', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0620b44e1b3d27a3421612166561e33d', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'edf3935c671deeeb7a3de0b5c3848be7', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '66e95847da2237f6f9abcd21ffedb945', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0cb99544459b56369e13e7b83a7c3227', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '94888ef6e725cbf50b6668d178ab2eea', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c90ced327053e20a67a37d1adfc26e7f', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '840b5d1b1a1c0a23cc158a6616dfa139', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0b0eecc6fce85f4a4652578c94d8eadb', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '735a78aa14b010b4bd135518e67a2e9b', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:32:30', '2015-02-22 22:32:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:32:30', '2015-02-22 22:32:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:32:30', '2015-02-22 22:32:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3c4ce30422fc39fc989f88f531665fea', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5db6c78bf2a0fad99d56d02c5c2832d4', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8a03ea82e4d9c69253a468ce30674c0c', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '666135224c82866d4ddbd4418a29586e', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1b29d0f5d1b67a1c1a9e27bfc5ccdbeb', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e653caa1a8aac635becf1ce950401d21', '2015-02-22 22:32:30', '2015-02-22 22:32:30', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses A.R's CollectionProxy ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:32:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:32:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:32:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 22:32:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:32:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:32:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '85bab7f4a49844dd7f2b99f2dd1f4341', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '548cb58161a3ea52154285d44af56414', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9a44ed054c10beec87571ff6759af588', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '801f80186aa6eeed71147d160835036a', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c77aa2b6accbc06c492840a8db1c7b93', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '313912e67221c6f81052070c56a44b9d', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2a426845f5920c73d0d874939ba4ddd3', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ac790d35569cd2ec827efd45876d2e71', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '40a9441551d3fcb4f2d9686fc6b901a9', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '13587f9df69aae516bb37f8fa3aa710b', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'acd17b5ebdc6baba954e2761f1f84f85', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd9fb7d3efed4bb98087c55c12419134a', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '14a54a17fd1a93c39f02d879ad38ae1d', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '35cdee6e27374f8af00b3c4d27f96ff0', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a298ca3d2ee245aa9e1851b476701f3', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:32:46', '2015-02-22 22:32:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:32:46', '2015-02-22 22:32:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:32:46', '2015-02-22 22:32:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6a4252b362378f905589284158e9a5c6', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bf441bbefebd736292d7f883fac9ac2b', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '222f14a50a278f522fca7f043327cc69', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4a8ecca98c18716fe2f2f3f408ea12ac', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fc51792804e8f316fc886152a50c7648', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3c4cb457ae1c65d9465ce1f7437e81b2', '2015-02-22 22:32:46', '2015-02-22 22:32:46', 410780858)  (16.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:32:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:32:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:32:46 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 22:32:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:32:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:32:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd62b2d5c1df866a1ea2bb51181d16b1f', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd8767b83a012d16c763abc6ebe4c6b76', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '82410f34574f2cd2e20455b59c5d2b91', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7ca00c30259c93ac2b6ed93dae83ee26', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c0ab3dd0b1a07dbb41d4f535714b946b', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '151d5fef6a4f5181f89629b809e2b9a2', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b77cd18fbad836a9451d7813972ffac1', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '80c9b7ae9b8a5b9d91469071ccc0ee4d', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '52f729264a33c0ec768295d6d7e7725d', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bc4b795e092573d0453aa061f838c9f7', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7e4da5e2a180a15b260b8f8dd5783d39', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b4e5f67a5d5e138059d9cda3de5a8df2', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0f8127600b6d74f9a10f889e8a56cb02', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e4b790ec3cd7ad8d34e586dd087d3a86', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a597a3dadfb53e3e0e1bfdf981f572d4', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:44:40', '2015-02-22 22:44:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:44:40', '2015-02-22 22:44:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 22:44:40', '2015-02-22 22:44:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e23ca799ffd2e1f9d2510e83475dbec9', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c6490f144a1e7883e1144d7b4136f726', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b3b268e668a6d2d633caace3e6e9617f', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fbdb466e038e3106ebeb6ec5ebc2979f', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c20de1d7c8fb2d530490aab88c81d493', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '17223a32cc5b4cb80212d2bbaf97b839', '2015-02-22 22:44:40', '2015-02-22 22:44:40', 410780858)  (21.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (3.3ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PbtTest: test_0013_FakedCollection: builds appropriately -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:44:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:44:40 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:44:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 22:44:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 22:44:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 22:44:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ff65bb058347886ab061127340e96cfd', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '755980f13c8f190dae9908651306d701', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e98afbdf3f309075a89f65bb88578713', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2b4310a191c1e8cff7f4e6405b0d46b7', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '16c8bac9a2a2f4509a419cfe09dd70cc', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6d8ace1221aaf82379496a444c544d25', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '285360a261ad571be7975d0dab0d27fb', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4effae8c4065fa0050b8aceda47f079b', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a620f651a4f43f31e06a7c2ef21dca4d', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cb983491632af7e41a6fb6aa92b9bb65', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd47af6aadd281b66c2f075d96ad418d2', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '78287b58f4e26341a4c66889d9e4a061', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e2587f56d39e20e0bb44d160b15c72a5', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7781b3a28d7699156c8c5d34a637e38b', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1dc7b7b5907167a192e4508fa37341a7', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 23:06:26', '2015-02-22 23:06:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 23:06:26', '2015-02-22 23:06:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 23:06:26', '2015-02-22 23:06:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'eb4bbaba4acbc14972a2b9212d1a97df', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e2443d8ace54a590c50cf92d1fff8391', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c4783df81c2a1659148a506426129419', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e016fc7a013fe437a4c40daca3433c35', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '71c83365517911c6f61330df53910d41', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e63a367523dacf6b0053f920d623ba47', '2015-02-22 23:06:26', '2015-02-22 23:06:26', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0001_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (3.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 23:06:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 23:06:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 23:06:26 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 23:06:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 23:06:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 23:06:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e6182b757b4f5500acc3aa97abdb7a4c', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc9ad8585f7fdee2ae552c4c00684e9b', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3df31960e6b3c0ee5acda2e236ae09d7', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2638aaf9e4be1af12c35484df14ec3a6', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7bb8348f67a0ed1470b45e66bbec91d2', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cac9ff9164223c531f47f575bb88b3e9', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd4094e37e5f1bfad0fce813c09aa94db', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bc08694c1b7e6bc787c9d2b23891e0b7', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '165b4b9e807f562edd38b56e2c7ad895', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '42d062c9de9573c817929f016245aa7d', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '44fd07261ba17f433e7e8dc9174d144f', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '05498a616d6f5eb7d2ad6478dcfe204a', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cbc8028a798bd3af1f68bd84f8fa004c', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '101977146f9b0cd5e7b6fb7f6848fed4', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '01b00dd2b3432c77daa82ecd18a03270', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 23:06:51', '2015-02-22 23:06:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 23:06:51', '2015-02-22 23:06:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 23:06:51', '2015-02-22 23:06:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '96822b261520e9cd9c993d18048e7367', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b260f1d3283900c5db2f6f6e703c144a', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3f322549b08e8efe775b9162253fd9d7', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1f74e7593a564eed37aa83384beb8c61', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b0d29721cc9d643b6f01a11ccaab56db', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'de09483c695eb2d03b67b76ca32f7298', '2015-02-22 23:06:51', '2015-02-22 23:06:51', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0001_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 23:06:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 23:06:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 23:06:51 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 23:06:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 23:06:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 23:06:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0d608fdd1cc27169c657736a7f654d86', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8753124224a31f2e4017c37db3910490', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4838452697526c3ad054b3b9a3554191', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '72ac93abbfd4275fc509793ae8278fcf', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aa606f52e35ae44acbdad7e1bc1214ca', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ad2ca71bb3d09fc19ccbe73373766e42', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '30c784f78b0735d489500cbc1b73b1fe', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1815d68ce45c8bb953937c9c11704c0e', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8cc34c478901c59869d48cf966d61443', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2f9cacaa3887171dbea900091f848cf6', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4e25cc61ab2606cc4524ec8c5d3f5092', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'aed98da8011e231f133adeb5f75e19e1', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b3809db12f9b65ec5839667eb301858', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a82cc3f26cb45f2b9af2c58005b88392', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4e300c5b686a8176727be6d632d7faa0', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 23:25:12', '2015-02-22 23:25:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 23:25:12', '2015-02-22 23:25:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-22 23:25:12', '2015-02-22 23:25:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '034d39be4181db6e2afa6801a4de18f7', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2ab6abb10b797b9dacfdaa703dd035a5', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '27a05a18532c0083567b968465943782', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '86f0a750bea4667be63ab3ef98f1dbf3', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '68487a33a8893c9d1122ae7204f60ff4', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c73c98f3db67f48e2c4dff4c9cc21567', '2015-02-22 23:25:12', '2015-02-22 23:25:12', 410780858)  (23.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0001_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 23:25:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 23:25:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 23:25:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Feb 2015 23:25:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Feb 2015 23:25:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Feb 2015 23:25:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c4a2b0060f356bc918c82bc72283b1c0', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f107900c15537b23d5f72445ebf5412c', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3a81f25a3b0cf21a5abc62f74069d793', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8104d019b817234c0f26cd37576ef899', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '648c146e54eddb66ca13beb449f92fde', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9a19fadabe0cc111eb447039bf4d216f', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '780911e299a51a834dc5e170a1a5ee7a', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f6aebbb7700c92512fd9f1229822381b', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 478996145) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1fdcd9e074e6a0720ca02069def95758', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4e4f819bf3789436645bb11a2607f192', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cd4fe504cfefbbd3d28ebe27153425c1', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '537931755e3b0615701b2cba66c31dd3', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c56c55d350b45ea7effd9e22fa72f981', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aa47ea110aac280c763d803923a5e53f', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd63c9216212452d1b99832cc771093b9', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:37:12', '2015-02-23 00:37:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:37:12', '2015-02-23 00:37:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:37:12', '2015-02-23 00:37:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '82aa9b6988ea61c35d0793d8f91b5057', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b7a6bbdecc6d6a216d95e60ce3143f32', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '073fd51d2943aa3630c26346f8f7bda6', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0fc5029c8b1dc42af1f7968209ef9bf3', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ed3f126d59b2c3cd0845ebe6d70560c6', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '179396fb5723f7a447c34a46f9ffd7c0', '2015-02-23 00:37:12', '2015-02-23 00:37:12', 410780858)  (32.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0001_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:37:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:37:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:37:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 00:37:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:37:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:37:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0cc7daf96e94843c477f6fcd3df0ad14', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '87b3ce97e2756eee347d4c2ea9c89d67', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd4ec2bcc69114ec12d3224b831593947', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9adc70b9776a35d6b583d49a3ce430bf', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '77378fc29eeaf62d6639dce5d5818bb5', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '753fee6e176ea04f5118022071827b94', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '74f99a4b00225461e1c40d55ed5bb5ba', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '69007f3ad4bb8bf430c558eeef62f6ed', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '72899f6c088d9630265057928e438461', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3958a80a30005a1763ec1c5fc12cc986', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e519278c4e9b562f305a6453bf9161b5', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2f5aa30cf4d14cdd04e514cf3bc46370', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '197722df0b43d71f263c937961c27c1e', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ace2a6836030de506de8d2b8bdc4e42d', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5604309212e918d39ea45db8bbd8ed61', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:37:54', '2015-02-23 00:37:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:37:54', '2015-02-23 00:37:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:37:54', '2015-02-23 00:37:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1ec286e4d158090fd7f43eb6495b3a43', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ec2643520b7380952f929aaccc6ec126', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f0a3a4dd230f702eef1f6a56451afbfb', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b33db6da0df90cacf33f52836e5de127', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '36c5f9a0f94419e4851f06c36a2567a6', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bc4559a374048ac06bea295a68b0321a', '2015-02-23 00:37:54', '2015-02-23 00:37:54', 410780858)  (18.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0001_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (3.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:37:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:37:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:37:54 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 00:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:37:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:37:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f239e4bd94222b99e8753b88e5069b9d', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bfb77dea0d768d98d925a4479ef1957e', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '93818816964f4410caf465ed10859b38', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '81eda1c239f48232b681d935b86ae78a', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a6f316997d3919ccf62ee757f92c914d', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5417ddf0cbe7abbca47bb82a1744075c', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '07be4311b1298c4f7393a289b3be20d1', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '888b2cf36a6f9b02ed5eddf6f1cb6d22', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '61bd42dab6e118c006ee885625906e72', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e4f991b1af6359a9833850bb39843a3d', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'df3be37ac6e544bb46c2a3539ec0f327', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd51d106dba06ef187d99ef8652327124', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cf64970735e104967b42bb42e46ebc5d', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '85c690377620fd55aa312363203821e3', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8adfb9d92b0ed4eb02bb024aff1cda53', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:38:13', '2015-02-23 00:38:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:38:13', '2015-02-23 00:38:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:38:13', '2015-02-23 00:38:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1befe4316ef9d5d7aa4da05e3fd6af13', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '11afae1bdb0fe872fca92cc97dbac578', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '21ad98aa18a99dbcebebf2f65453237c', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '43a4cc946a9ae1f44ecf7f9749801b80', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3e99e7b2b37d824507e86a0f1b6ff860', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '00435c529e8631ab2d1e652adce16055', '2015-02-23 00:38:13', '2015-02-23 00:38:13', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0001_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:38:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:38:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:38:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 00:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:38:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:38:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '246a7a56f036024b7be84196a6ac3c50', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '749b9c5d02a2f4570345b3476992b79d', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c5901d59817e77cee81d54bf5f588ea8', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e7b470786aff065b03af407d8d50c3c4', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8f0d77b2dc9f4008a2cc0644148d32a9', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7583297106ae1237f3de10f90ca4b67b', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '409d9b2d67dcbdc11b1c0475f67a27df', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ee4b0cd631d2acdf67c0664d9d8a0854', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cf46aea114865309580032d85c5ad59d', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd3be529e5117dc73393ba993d157afd0', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f873b1081943cb42c58e830f1bdab562', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '51b9e663c0085e4a2f1f79ac2f5fbedd', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd9ac51d19e6c6ee9512802e32afed7ff', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c0b5f73ed2f1c82f1b19e222a824d094', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e4b22638d09eceacec56e4f0544cca31', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:39:13', '2015-02-23 00:39:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:39:13', '2015-02-23 00:39:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:39:13', '2015-02-23 00:39:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '83163e862a56e59261cfc11db2c222dc', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ec8f3ec2e9dafff7a4b40c860c436fd4', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bf7bf43a9308d228f80a76e1a54bbdd4', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9d02ee203e5c3a8b3f49a3b91ef2c6a4', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '85b3b567971520653cac89d47118a757', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a4ccea536386fa4b57b4995c7dd8a7f1', '2015-02-23 00:39:13', '2015-02-23 00:39:13', 410780858)  (17.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0001_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:39:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:39:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:39:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 00:39:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:39:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:39:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f858ab7b7ed5e25e89007779ad7b2fcc', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '82d2b429904bbd0411b6ea7449062b56', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '81e1926bf6060f2464074d7fc2f1b07a', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '93bca133112b0550f1596ea854538668', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3a24922ec61697c84e78e61451613fc4', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '12bbdd6604a178c1a6ed9294cb52a265', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '04701e609b261ff5fc4003fc204b194d', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cef5f331294666ab51e96eca750340a6', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd9df3d3b07bfa289d378f6f78ac339b2', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fa2e9c7a41b3835e31a7a3bfcf33ab9b', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9cf987e7265bddaf83afc50cae8093fa', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3871ecdb14007d4cec44729150ee5fe9', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '03f6b82a84e6dcbc2fb4f926fda95e3b', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bc6c8f56a538f49c6005100a0226a305', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1c161acda60767dd976d7ed1fbb0ea32', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:41:10', '2015-02-23 00:41:10', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:41:10', '2015-02-23 00:41:10', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:41:10', '2015-02-23 00:41:10', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fe19ca86b4cb7f57de5a9b59474270d4', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e6cae378a94556458a22e86a02d90169', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2e55aa7d53c7521d2348725648f499c5', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f8d25b622e360afada5e90d26f727f42', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bc42dcfe7279ed202a59dadd8eddc2f7', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3fc84fa5a104c82cc794a19d674c1845', '2015-02-23 00:41:10', '2015-02-23 00:41:10', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0001_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:41:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:41:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:41:10 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 00:41:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:41:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:41:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e19c3e6dc189c58b5869923991b5009c', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '75fd2ae79384fd938238ac0a9a8016e5', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f2cdee8d7607b2d95e3759a474163476', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '463c9ed3e3e56bf71271beb5a03f41f3', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '53833ee5968ae06e6646fa77bd013f11', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a864394eac4f2dd0585ac33c7b5f9a86', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f6589716f0544661cb93f9d30847b090', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b8066f5abe053d954dc589bfa0f1d562', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8cbdc37beff22d7be2104c7c92e2fa63', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '66ea0bdff08a670279774246ea670586', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'be240d92168563a422d0319d45c05764', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'aa0f1d33e3f2da27b70f8fc862bb4f85', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5e8f205632ae1bc04c86f634f9ad955d', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9ad7d1301cafb1544e85c92285d02e4e', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a6f9bac5b22e5ec353c61e0a30f87add', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:41:47', '2015-02-23 00:41:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:41:47', '2015-02-23 00:41:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:41:47', '2015-02-23 00:41:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd88a7bafb6acf357fde6b1e7bbec50dd', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '216f814e542b35954275cae1123f46d9', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2b8d667f0d0a5ff30db0b2a1f5505b48', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '70f277087f6a0e5ee21da33a668bcbc7', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ee8bc5a9a986988ac346b1fbc5760fae', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '992c985d0ce012fd56fbcab552f85ad4', '2015-02-23 00:41:47', '2015-02-23 00:41:47', 410780858)  (21.3ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0001_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:41:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:41:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:41:47 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 00:41:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:41:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:41:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2cee71eeb6c342776c7c72ebc0738ba3', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '46664033e5b9e8d5397bb7249d2b7d09', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '86f9684f00b5549ab99a57b4ed997d3f', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6b44d3dc73f79bc64af75e8752015690', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d33c5c8e327fe3026470a48ed5f29c9', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '12d418b24c82fedcedd330ae09d80f1c', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8b2be5d273d606e9652ab290fefc866f', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7ca5017e2eaab5f1c846d09496179157', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9207dfc3a18883fd177089048d0086fd', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '550ecde4c8909b55c92e31c1ad892f35', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e3f2a785725312a28d6307af1f115da8', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5d09ebd679c3534a7d1e06662a381c1e', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '57c4ea1bf4de10a60e468a83230c0baa', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '305e0ed5a404015df36a852ec27ba454', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1901dd25e3174150a33ab063793370f3', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:48:36', '2015-02-23 00:48:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:48:36', '2015-02-23 00:48:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:48:36', '2015-02-23 00:48:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd2f6259a3b1043603bd62cf9f29d2ce2', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8f34b7ea45eadc70f79569828ad4b7fd', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8d536393f6f6e59dea865df5f37bb02d', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'eec013c4182b49aabc4da7b6638ec75e', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '40b31aefe198a7d876e2cfd6495867a0', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9e349241d2cb0891f70d5bbbe3034530', '2015-02-23 00:48:36', '2015-02-23 00:48:36', 410780858)  (12.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0001_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:48:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:48:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:48:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 00:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:48:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:48:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '21cc9cb4a3f9d7e3cbe084615a32fbc5', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0fb1a72dff247abec0b48f63bcef858e', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '467aba16545f914348125d5d3b84496a', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1ac75046a3342b85cf625c64178526a2', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'adf4268d686f929965de5a1f6c80130c', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b35a6d178121e63d9f510d5407fd9b40', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0b3a20e3e36e2b0c6f02a150d85d2985', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'aab814873f898f6b3bfd9c73b3331933', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b93cdff37687d1bbc008af96234d86a0', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4c03d61a1ad2abd89c8e66fc80e711a6', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f2c0a92fd0df8943a384d56f44576045', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7995b2e7788e7521e0061d596862de2a', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0c566c5e0b6c357311d419a26afdc0e0', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '77fb22abc26f9b427627fcbc9f810702', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '647c94af5078901f60fffd77473e5546', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:54:24', '2015-02-23 00:54:24', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:54:24', '2015-02-23 00:54:24', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:54:24', '2015-02-23 00:54:24', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7c5e484bbc5d1f99afa7c294ab499ffa', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cca6f6d5a0a19163cb6ec774dd7b18e9', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1fc6939d3197d9483b22375996fa2628', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3bb0cf3e498f47861d027798a49b462e', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '97a005aa35afa02edd95675a5dc7a621', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e431f9dfff9d909b10f1e43d1bf561ba', '2015-02-23 00:54:24', '2015-02-23 00:54:24', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0001_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:54:24 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:54:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:54:24 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 00:54:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:54:24 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:54:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9301a00cae204571130399b8d3c7b668', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bcfb4354a1ba64f56f8de95bd781af71', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b639b274ac748efb5537047945c787a1', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a023523e0bf7b9b61a598cb9ff8544b', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '95579106ef631a8a5ce4df42c3a839a0', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '26a089e70aec3ae7eba328798340ff72', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e4b1d54a3033d0020c1e7b0689253a7e', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3eb4d51f0f54974c08648b76367538ee', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '38d9cbf8ebdc2c32ffdc2f69e06f89b6', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '09370f9f4c4b113de31b41f23d37b101', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6b09b1e04347c81a1697930337f684d1', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ab5a20cd4316d88f06733ada0e6bde36', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c91e88ff8d9cc805d2f6177f066b950b', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '560232c949a5a379bc51eb90d6ca06e3', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b1ba0e551424c656b8de18aa84b732c2', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:55:33', '2015-02-23 00:55:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:55:33', '2015-02-23 00:55:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:55:33', '2015-02-23 00:55:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5d2af1a0e49d7a30baa098ddf3b8d2cb', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'dc25443b18b7951ea598ec079af78efe', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd947e4e252fe3df98a49ba929ba11da8', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2dd179a97d5781a472c1846dedf9e266', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cd5ef354ac7737bad7ae6b445ffba368', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bd8287a1dc60bde61d82d46e0a5828a1', '2015-02-23 00:55:33', '2015-02-23 00:55:33', 410780858)  (24.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0001_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:55:33 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:55:33 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:55:33 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 00:55:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:55:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:55:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '211e6d399ca7123c838cab719f99d13e', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a53e51ffafe572b358d6c9aa3dfcbbb6', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '73b92a724f0aa67bfa2719d616d54fb7', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9c3c01bf8c6ccda0672e54d173d99fe9', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '372a257a26b062a448645b79b988e588', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2c784c99c1fa6bb1d9a11953438c49bb', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '03d5ecbfc2f2aba9dcb8c0e4f2931203', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0096a8bd243f04bc0db866674699f0a8', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f30ceb7a9e2c1333e276baa35420c5b9', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8e6adbe80bc1fa611c5c753be105ad54', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c6f0144e017ee90798e0d9a280c13a82', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f1ad1cacad26b638bca5d251b5079680', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '63464863a833b417be71b663aa35f3d4', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '488e13a3c06a0469e602208d314423e3', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3ab2a2659474881c12ef970bda5465a7', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:57:10', '2015-02-23 00:57:10', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:57:10', '2015-02-23 00:57:10', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:57:10', '2015-02-23 00:57:10', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '82b23e8f5b8471ac73ee346ee8d19bc1', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e9cd5fe1de6591614e16c60394274fa4', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '33d1349f12d6c98696fa1730f3fb42e0', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '641d2c49b74f5ff5e4651256364cafef', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ae8fcfea06c63fcec96d35b164fda227', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '748ff8727c4ad86309e5e6126625e003', '2015-02-23 00:57:10', '2015-02-23 00:57:10', 410780858)  (12.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0001_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0002_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0003_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:57:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:57:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:57:10 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 00:57:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:57:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:57:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3626f1f84ab96d7c2dbc71021661049c', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f85cae8138c6e4ef12a8cc3d034414e7', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '80109d9a75612c12c3e616fae198e283', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a2e959c7e013d9caceba3cd3df353f08', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '533aaf6018827fea23048f8b3ac99234', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd309b0e4f0d7f46d189cbff651562ca2', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '32c0cd54c672c32113f64ba7fd375227', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8f881026d1e22cae0738fb5f4f0eafa8', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c27c88db65133136c6daee169b8e85f3', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '61842d37121e406cde1a3c2618c6c035', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2cacb3893de2fd94df341d425d6809d2', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bd633048c4b867cbbbac3499d37441f2', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ab5d9da9a7e7702952c50f891a20caa2', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c0d965bc990266ef1e73b02d6bb45e06', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ddc452f38149ecefee21600f22e87812', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:58:02', '2015-02-23 00:58:02', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:58:02', '2015-02-23 00:58:02', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:58:02', '2015-02-23 00:58:02', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '20de4fb1f0dad890df4c81feeb83131f', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e714093c8014cfc35009559a433f4063', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '914c514c2156af1e3663e8e7aad7bedd', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '20fc8ab53adca98148e9e3b4fa14d7bc', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ba710a823cc08270c137285324eebc05', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9446472b0170a0ae2d55683334d9ce81', '2015-02-23 00:58:02', '2015-02-23 00:58:02', 410780858)  (24.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0001_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0002_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0003_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.3ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:58:02 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:58:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:58:02 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 00:58:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:58:02 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:58:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e2a452abc4452ee2c988f3696a2abda2', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c2798c15d1530169309d416f0daf1541', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '98489c68a3fe22b4458bbffd7720d386', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c48f49ee1bbe968814c302016a6731bd', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8c58c80635fd594b1e5fa54d11913613', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3632c96faabc54be900cf8c4f9629ddd', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ffba02f9595ab9edb9b66fecb594594e', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6309cdab27760be939413aeddec18153', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '886084f1e615e2c1aa704220afbe9b12', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3f28329be2abb0cd509fa5e155759ea1', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '694f2b2ae5f6bea50369ccfc499a7b27', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e64ce3a8cdcb1f8c824a1fc0a8f8a0f9', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '36b6e40bf11178aeb9104a4b893e4446', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f6c82baecd1d1bdff22517e4f962668', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '39ea1d5c4a398b03bcdc7e3a21054e0b', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:59:37', '2015-02-23 00:59:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:59:37', '2015-02-23 00:59:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 00:59:37', '2015-02-23 00:59:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cd975fc67471be6c987a25cbc81664c0', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0a704b13e9140bb1a87b57783b7a4c60', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ab5bb22d1c218264d2c601e9f7a9ed0b', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '363ab183b64e43f495577955e7809aa6', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c6ffca7952c5bac2789b0a52e957209d', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a1c6ba8840f677b89dd00cfd81d2ff92', '2015-02-23 00:59:37', '2015-02-23 00:59:37', 410780858)  (23.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0001_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0002_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0003_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:59:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:59:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:59:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 00:59:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 00:59:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 00:59:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6fe34f2f7dbd1d2ec0b289345dc410e8', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '212f25f8b2a3513e66899643a9e2a1d5', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f7c7c5e1f28a3ebc9ca580cd232b0bd9', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f96090378619f055dba18952bc4e9660', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '506e56908d8492d952765bde69206191', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd540bd71a5c53d38a08894b9bc82c327', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '58eb20bfc23edb1a4833da0e7a98c883', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '031c3e1589d4cf5722c00cb08ee797a8', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0a67cf186de5fdf63ffa92bb5c23633b', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '04c464fe9938b0e84b0427fee70c8cd1', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7d3fbea22b91ae9ba6ac120a4aca9ffb', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'cab0e23029d30fe5f2ab74ccae0d353b', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '265f213bdfcfb3cdcacc1711ff4f2c25', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a6f2421fe4c3488e45e22d89ba8edc5e', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '755acedb5dcb3dd275db9016f0aeee51', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:11:53', '2015-02-23 01:11:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:11:53', '2015-02-23 01:11:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:11:53', '2015-02-23 01:11:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '580395267b9f04fe524e45cdc91d2616', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fb80c521b0dd871bf310eee8c00e2d03', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8b430232e3c70b1cd724add411c9d1ed', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '48106408f5e17c349314537bc5173c40', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '020632e2c7268f2a7bd9e3674519b01c', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1304d3d4cc6c225aa460b46806053dd8', '2015-02-23 01:11:53', '2015-02-23 01:11:53', 410780858)  (32.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0003_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0004_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0005_builds appropriately ---------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:11:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:11:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:11:53 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:11:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:11:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:11:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '294220710a57a7a0f21412e96a3ce608', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9fcef9f5784c1f8751bbe5bc1c5baacc', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'afb82cfd4b703dd90cb9c1fa02185e7c', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd5e9771c83d413ca43e7dba61ece0141', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '75f8d22d2d78630471dcc032bc2ec914', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'abe3af39b9d7fa17055225335ff8656c', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'faa7c348226c46a51aac1b52c009cc22', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1283a0649422cc11f3c025c216311540', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9b561827b0bb24cca72490616776806a', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0237d0bcf4a7d40e77c37a1cc350937a', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2be62000a60734c082a3ec19d0329729', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dd40541a9628bb4b40d46f7ef92dfd1b', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd86e503fc124b6a7426ae4398864a498', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bc51c9fa6414444aea86cf51e78be50b', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bd241c81c2c5d29b71f32261930ffc94', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:13:11', '2015-02-23 01:13:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:13:11', '2015-02-23 01:13:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:13:11', '2015-02-23 01:13:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '364345d100e2721a05d4b29282c37465', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f115fb11aeea95294cf14b3baaf65533', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0e661a8f2b0198f6374a6ef00ac92c42', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e9b2df12baa0cdd0974425f811842830', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '28f1bb61799f806ce1be9f69d2ae36b3', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b673e171604f49ea564a72fdf06a1486', '2015-02-23 01:13:11', '2015-02-23 01:13:11', 410780858)  (15.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0003_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0004_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0005_builds appropriately ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:13:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:13:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:13:11 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:13:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:13:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:13:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a1df1b8e509ef70e20114399f475b828', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7a83bfd7c031703a2b7bcd509e2e7eaa', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '77e9d0e717afe982f33beed3743c6577', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f969d894cb868689fe6a21a9fe4b1042', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb291f8a2db9e5b1cda3d354c5a4a53b', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '18da7c5401a506e1e06ea3ff9443b66c', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '01b5c6bb4869da5600b69dd523ff5d12', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '96e29dc333ccaa489795e4675dfc684a', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '10711d001df5a14d1e6caa0ecee6601b', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c2d8ae619765891748567cea5ebda766', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4e252d92c4d89c70dd2268e31f76c32f', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'aed23f62fde1f50b5b7842fdbffa92bd', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2516b5fadc9425001a7f1e933a619fb7', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0d76b84a3c9e9510c12727fb113a0111', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0e34b8fed5dcfe8677ddace975977ced', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:14:41', '2015-02-23 01:14:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:14:41', '2015-02-23 01:14:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:14:41', '2015-02-23 01:14:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '546864c061033f271c249669c97c0f77', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a6280a71497d41856634b7e9ff6048a2', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8a3f0aace3428c926fbec2a487ae01f9', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f8cb988df6c6ec9cdca03a4277250f3c', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '386472b20312f870caf23c4a784afc3b', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '80f128b3df1190a39fd1d79ebc581f2a', '2015-02-23 01:14:41', '2015-02-23 01:14:41', 410780858)  (12.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0003_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0004_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0005_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:14:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:14:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:14:42 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:14:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:14:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:14:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '045253384efddde1d49078a777473556', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7a79da2e35485296cff5090db54b69f3', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3a503bad848fe0e6bdb0b2a4e88c2564', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '03967e1f24a85be9e703745219fede18', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '09557e8a15a49aeab81498235dfd2f69', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6520aff36814ac8913852ded5b1dbe53', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4a52053213d3477c400f0f5a0aa199b2', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8aafeaa7ce2ca8e974a95c4748230ace', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '40affa0c810c2b50e27f21d8f29c5781', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9aab1dc8920b1e056143690d116d9fae', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'df0153176f4974dd6fa9fe8a253b18ac', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '46b824bdfc76ffe038fa6b18640b1783', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e11b522a737b2a41f86d91b167a75fea', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '716f263a107d45fc2631e3031d9fd52e', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '41efd40974b058dea687b6e205093fc8', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:16:36', '2015-02-23 01:16:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:16:36', '2015-02-23 01:16:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:16:36', '2015-02-23 01:16:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ec61c5d1e301e3c69243c4e4a4285f3b', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7246d8d1ff365653a95b6e9b7b009398', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd68a752f2f4cc5deb703abee80f7a482', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c65079f93f04b403a3491af98a371b8a', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '13bb86382d404a9bcc6261533707f7ca', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '341f72012548a4bf306d84b9d0d3933e', '2015-02-23 01:16:36', '2015-02-23 01:16:36', 410780858)  (25.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0003_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0004_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0005_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0006_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:16:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:16:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:16:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:16:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:16:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:16:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '02350921dae4730af26424dbfeb3c64a', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '144e25063f32597f48899ef45d1aa0db', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bd61cf432c937949b2a62acb167d1837', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cbf094c95b3284cd731bc44a9cdf0293', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7ead220d31de7d44c2c6566f1dc83cdb', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '99e7be0ced71ba69b7d1f697be8c5dcb', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '44614b352ef74562878fa027fd2efe57', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6fff5adc6df8515a02fe0f2b94e2a10f', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1226470002399260db77e2a059bcf880', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2e81aa2ff3953d454eade1a9c5bcb49d', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '849359536ce1fa926894dac007f9e71a', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '58d6ce399ea462f83db03204a18fddb8', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '02c2ce2c56afc9bb71ccd45313c09f91', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '098060242cbfde76e8e2b395e1c90b40', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '64b2249e6dc37f6a4b130c709a17aac1', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:17:32', '2015-02-23 01:17:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:17:32', '2015-02-23 01:17:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:17:32', '2015-02-23 01:17:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c0fccf384a4db650ed1a71f002e84ac1', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'df5a9489cf090d00fb1ba7fd3c0aaba1', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '48ee9fd533ea79520562e85c1b6c6fa7', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9d6bfbaea973fdca6d55e3574caa4ea1', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5da07f260ae6ac32c1572608d3689b49', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1293b4593e67726bbdfda4581bd7f6be', '2015-02-23 01:17:32', '2015-02-23 01:17:32', 410780858)  (25.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0003_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0004_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0005_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0006_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:17:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:17:32 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:17:32 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:17:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:17:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:17:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e509724b9a208e0b426f4fcae21a0b04', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '702345f7c18335aa9ca7c44f8277d61a', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f05bedf3d802ac00086c3910d6446b0', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '33829f29d0147fcea4bf5bc7624d357d', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '77d5e0769b8ed25a7bfcca71081b8f91', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e330c1f97736f5420a8e65e40377e2cf', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1e4d94461e5bdcdc7fc97ad673efe4ee', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8cdeb893f75e9f04012056e515860ce4', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a81260f41659e6ffc5b33349b77dbb10', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e939ad3a6f30456b37616a8f7dcdf8cd', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '80c6a4396e1d655557e88c30fc7c0c2f', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '31265ae6bd71fe98cbef02d98bd234d6', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e0e8d9003bd35dea74ac3448dc2a1da7', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd38eb05165ba0364564fb8fedfa72dfb', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '290f67a07c8bcb1a9a8ded72b7e0bb12', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:18:23', '2015-02-23 01:18:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:18:23', '2015-02-23 01:18:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:18:23', '2015-02-23 01:18:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '67ee0142641f2fa8c5ab41f5d4934705', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '46ce4a57d8e39149f15f56d1506cf3a3', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'da7ce8c3731fa954e9295ec2968d2096', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '23bf90e91780e0491b235c07a0a82536', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6c9a3350634537be72159fc9f906a91f', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '16f5d9e30ebb8177b6f5e901d2d135b2', '2015-02-23 01:18:23', '2015-02-23 01:18:23', 410780858)  (26.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0004_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0005_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0006_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0007_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:18:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:18:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:18:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:18:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:18:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:18:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f83115c433c47066659848e445de287f', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f774ed4ec452e607e9d40e615355b866', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f0f3ebce5cca43388d696693b1d6c94a', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '69ee496e944e7f34f0e640c21946ee3f', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '251c7549c2435bbd18a0992d903b333d', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1c78e0a8500de20d9143d25ef4d177d3', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1b38a6506f22bbb46eb597f6130aeb96', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'de155d507b4863be865fee4e105e8d99', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9abf5760d357da356d53f62c6c40bb3b', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '687fb291552db71444a8ab462af18b83', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2383668e85c2c89bf577c3a3fe8dd671', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '925fab965c57c30da45dcfc84f83f33b', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '80745d5a6410bba89927a04b1aa77798', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '491bb4d8e1b15dda3e4c0bce5a79d6e9', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '437de94466fef060d98d99b7be3c82d1', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:19:57', '2015-02-23 01:19:57', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:19:57', '2015-02-23 01:19:57', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:19:57', '2015-02-23 01:19:57', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6449aeb049e205d9345f8930ad891b7f', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '337bd03a015bf6a6e3c06182f45c847c', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd88deeab91903f24529ff7de1a3ff9ab', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '60b3a42705636d58e86a839ae849e4cf', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e0f04df7d0af211f2e79073bdf9db983', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b5865ecd5caf96cc1c76e42d1b754cd3', '2015-02-23 01:19:57', '2015-02-23 01:19:57', 410780858)  (18.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:19:57 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:19:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:19:57 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:19:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:19:57 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:19:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '325851e043b61afa8d7a4b6f0afe4721', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6ae7cbd84371f320624541205cdfb9ec', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd18f93ad4c01b73a1976d0fb319cba74', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e0d14e1d1046f5c134e149ce4ee1a6bb', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8fc113119312065c44a42f48b57c9844', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4bc5f912f9eb686f90d708611c38a231', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3c3c5da83f2a40e0ccd601a3fd4cd3c3', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ed69422a7a69868d884260b238fe3238', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '039149a41fbbe2f04bf802815961e15c', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8f4fc67d13303b4fd8e0cb04228cb675', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1217394432e37789087dab2df29f31ce', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f4dab294c400cb2f7bf4a7af5d1816a0', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c261f541030badc5915847ee37aecd88', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '04037739fb344f4ca671c57ca2bd50e5', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '17eef22a7b22058b99e2d9f44471bde2', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:25:11', '2015-02-23 01:25:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:25:11', '2015-02-23 01:25:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:25:11', '2015-02-23 01:25:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2bf116dbc687dd7d270ff1145bd472a4', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'be817ee6c849184bb15bc99ebb16063e', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '395843a5625c32ad916f6966cacddfb0', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0e91e593ef80cb203d4bcbc32916b477', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bd45b3e3b28611c7e75d0afa9a9e6749', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8601802abe4d7cb7ee0e6b6c083e4cd1', '2015-02-23 01:25:11', '2015-02-23 01:25:11', 410780858)  (18.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.6ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:25:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:25:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:25:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:25:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:25:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:25:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '33687b257f24528f5db8b5521989e96a', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e6d7a140ee39755f8b459c1fa6666152', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '985c7dc235feeffbb6ba028b91acbca4', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '68f884d5c502331e17232ac5f7c17d91', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4303c0e43c9ce19ba716c2dfeba2bb4d', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '63fcb314b9f1ba7768ec841b9720561b', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b798a01724add2c8f89c0a893a4ecf60', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1e3c9802cf14d3ddeeb1888be63973eb', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'de31dc5ea8e7157f5e84e8bd9cf24238', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '524d6e5c6f3ca9b5e00de2bb32952a4d', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f4bc40da36a8b1aafa4e53e144239920', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c9ff88f7398f6d8a764f688ba91d20ab', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '542d7e5568280c1e193f5c8148152e40', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '111acb2f4edd0c4c10fde16d5fd5205a', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9a3bac92ffe9204a9187331a0aae07b5', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:30:00', '2015-02-23 01:30:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:30:00', '2015-02-23 01:30:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:30:00', '2015-02-23 01:30:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'de39ed04c1a08df087b925ef9012d2ef', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '64a83c8bfb85b9367712ec6e36802c6e', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '634d31bca5b9f76ea9d0eb66d614efbb', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '636c3f1ead9f0ee5d8a3df1a14f34b7f', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7708e1c0ae0f24e1b88c2aa9cac2377d', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7476dfbd0eff4e09f568ae5d6b603f06', '2015-02-23 01:30:00', '2015-02-23 01:30:00', 410780858)  (30.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0011_responds_to? :first and :last ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:30:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:30:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:30:00 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:30:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:30:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:30:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7c324ec3bc533bc6222c0349d74bb76c', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a92a20fda0c048464453ce484c1a6964', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '436534f3aa0194ae66fcefb277fff96f', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '43fdaea85e2e8f70a67f429c8aac6702', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4da417d73146c57df01172f610aab5cd', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe2acd782486bfd604a1439c3ff503d1', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '846c7b56c7c9c51e8042e48b1d15263d', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '108c1d764a87a7a891c358a149d03084', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7c6b5239d5f235462d29511a63719ef3', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '706df0f964ec1443713637f11e939f21', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd23f767ed2492575cf42067e5da8e812', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9114a6a7e792806d095d2919ff2d369d', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2b115b8147b31cc8d4b0f0042477f242', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '134b565c2ac3b34d627c3463d31040c4', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fd7e00b9ab98372943160bbca6aba27d', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:30:36', '2015-02-23 01:30:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:30:36', '2015-02-23 01:30:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:30:36', '2015-02-23 01:30:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bc12e0dc0732de9a1507900102036d5e', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0d2c70deb7a22e4f94d6bba2bcbd3dcb', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9fe4450737e9bff6555ffb2d0dbd7d7a', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f4c831a56f9ad1889d58816d8e87114b', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3560d60fb65f2eef9260dc140382f04b', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '49cc774d8a9114b8a0e86d022cca3008', '2015-02-23 01:30:36', '2015-02-23 01:30:36', 410780858)  (22.3ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:30:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:30:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:30:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:30:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:30:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:30:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8fb12be43bcd65301c3b450e7d4931e', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e93bc216b99ef42f18dc51b48abd55f7', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb82e5cc27ead99a6f5b3a4f6567e831', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c26b380a6ce3838555b88a5a283442a3', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '45d6e55ed556ce80579c15a1bdb84451', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5a097cd69b4ad4ecc513a8876ee66b68', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '79f228522d0e6aa6e2769e940ed676c5', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7ccfd2ff2e462a84f2c7a8dd12f661df', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '04baf145bf92f04373b4a863beca6a75', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '58bd4c433b3b3989736634cbd1cd0e77', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '52d4eba0efcaf0e661717ba1ec2e20ad', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '31f1aac861e14447db055ecd960d5255', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0897f6c8ed1fe09d7f318a0feda195fa', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b2e8b0fc974793a6c047f4997d0d2e96', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dcdd4875b4ec473df64ba7872bcbc377', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:34:06', '2015-02-23 01:34:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:34:06', '2015-02-23 01:34:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:34:06', '2015-02-23 01:34:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'da9dd006b1a35ff204c32336f1a92c40', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a9ad9642ef3655a0f6304e06d0a2e851', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8f207a2b01a6e257e308632325d783b4', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'adefec35b6f53c977c3c5046019d74a2', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '21fd9e2b9b0da43416068ae7d765dbbd', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e3f829d49200e04db3c9bf6fe5a4f037', '2015-02-23 01:34:06', '2015-02-23 01:34:06', 410780858)  (30.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (3.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:34:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:34:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:34:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:34:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:34:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:34:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5eede97d90670f38e48edd349faa5d45', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '325248cc45e16fe75fd3cf39e7f87e34', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b4f873959a2aba942315be0799d75691', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '883478a6cd0b640b68fa4c1ae6b67462', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3892ee27702ac2d9c1d7de2932b3e024', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '68c980c53d7b369af658eff09f8f78da', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b50970bb4c0a8013cbff3ee00edacab7', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '95798653f3003d4eebfad1bb574d164b', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b123760c7a084cb3eb4ee50f6c037e85', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '918777a4ec3980019d75acd97cc354b5', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cb0ab701c2af47811122828698b5af9b', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bc5126e9c41bb5a62ab2293c2afa2256', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '13f0dfd4c81fcc7edd55e7dc2c153ee9', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0711d2e85eadd2eab75dc9e3773d935b', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0769563466ba26076e762431329a1feb', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:37:53', '2015-02-23 01:37:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:37:53', '2015-02-23 01:37:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:37:53', '2015-02-23 01:37:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '572f70316dee8b5e3ecf3f2241631d8a', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a3311161b2e87ad08efb146e21445bfd', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c787ec1775a2fbcc2d0937e2c185e5a5', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2b933bf4b8a4549b804c7a344378e231', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1901047cab41fc2036a61f194d43bd8f', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0288f1c0bff5b195f435709cb1534f6c', '2015-02-23 01:37:53', '2015-02-23 01:37:53', 410780858)  (23.5ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:37:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:37:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:37:53 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:37:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:37:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:37:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ca17000792af3d337915120f8a53d8ae', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '64b964eb1dd84ee73988d368ae323ab0', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bc2f2117fb394046e48190ff2f535758', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e3fff5db4acf297588776009abde5922', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dc8b5544e6ca30d3fa3cf08b9a52a179', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8a23a203babf4876d5db2de5e89005a7', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7f4012201ba03f4b5ff20513c2e2c2b6', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '688b8eca47871a84cc28a055668d6859', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '65eaa5097ba151602c5b777f1383be61', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '88430929922857e226d8e1e7d3be8fe0', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6937003714ca5afebea53f2a564c1030', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e2f0d07c814f8a9faad537a713ddbae9', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ad6ce77be361aa0f7807e6d6d221fa29', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '221a05d3fc58f9784e549716156cff62', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1da8ac46827af2a72dae6aa39af51fec', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:40:37', '2015-02-23 01:40:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:40:37', '2015-02-23 01:40:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:40:37', '2015-02-23 01:40:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cfb00ef4267eb2d018d98c205e69b0de', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5cfbacb56c965a7448b98b4a8ae7bbee', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd3c5b8165b892feb87251d3dfce8c164', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dca85134298369ac68296d283380c637', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '309f9fd5815daa59906a4391d46c3602', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0dac2fa71849779c0f65f45b6bfa6fc2', '2015-02-23 01:40:37', '2015-02-23 01:40:37', 410780858)  (18.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:40:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:40:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:40:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:40:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2dc1102a3a8c12dc70a4d8b6081373c1', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '18300cc1a3fcca938f33f7ff153781b8', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '12cb015efb7057da7b0a57b41c9f3b40', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9bc9bcbab99e19bb4b9787ea3cd414d8', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '19b40a7f749aecb6a91ddeeb6bb2e87a', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '877b5dc300af3c9d073844716fdd016b', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1660c300baa8848a6e2ace883b8ec64e', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8c470ab755afc6140dcc08ff0bca5777', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '08d3699ecdbe3056eba98cb5e1bcd8df', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1475caabfb0590578232700c61fa24e5', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dc7d4156113e5cba8bebe687206ace88', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '35fcc92c46c0c07f975b48805685e5a2', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7460574274956c5ad33609b86535b9a2', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '345966b9d5aa1649f12f106c83bd87aa', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a30065c2ad3a5e75412571bfabe9ca83', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:45:04', '2015-02-23 01:45:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:45:04', '2015-02-23 01:45:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:45:04', '2015-02-23 01:45:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1aed6e3bf5fb6c1c64611077ab12e235', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '56a2b3583be2bc3ff979b28eab6248af', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a8b2e24bc33fb8ecd5880095d0991f3f', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e790363f33237916b5b02246a673134e', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a797bd50c31324701a7564bf1440c6bd', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e832d92dedb11f47c12b0070f6aac114', '2015-02-23 01:45:04', '2015-02-23 01:45:04', 410780858)  (18.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:45:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:45:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:45:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:45:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:45:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:45:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0cf08a4e0a5c9f41b7ed1cea39d34e0d', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '799be42b074a1bf7f92a268abfb3f57d', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '53e6fe60dce7cd8c02c33f683d6270a7', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2ba592751a2317a09a79f7eb8b5e5098', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ffcff876d56a2acec2595aef7b17be8c', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '250cc524dc5827a7436cf7015a740ed9', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a3b88b2f721cb3fac15f7eb63b1f3362', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 261299535) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'be4abc77636bd2900b94669eeeb53020', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6fdd6c7de019294ed69cc5a2a144da6d', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c8dab84bd87a5ff5ff3011e6d1a394c0', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0e309a9169c3545253a7e7e8466fb918', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b7adc2da49facf7ee38dc3bb06b51024', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '08eb4b0c17b2bd2f64f27820ed55e93d', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1ac1d87cdb9570b5aa0ef7f0fd802037', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b8188b61ff06443ed80453785f783485', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:46:15', '2015-02-23 01:46:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:46:15', '2015-02-23 01:46:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:46:15', '2015-02-23 01:46:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '63cb0e4136f34e70941e92760f771aec', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8441c83e6263afd621bdc287a8354b06', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '076f65a2c4030657dca5dc2a18a5dc20', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1dbd1bd9944a0b1f7fd640a315e66102', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5b38cb3822913064cf5c5df1adb4c08a', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7d1762248f54ff50c944fe617070d98e', '2015-02-23 01:46:15', '2015-02-23 01:46:15', 410780858)  (18.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (3.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:46:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:46:15 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:46:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:46:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:46:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1e93d1478b950e5781864e4ae0f16004', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4b9d175ecc0c56f75b547fc58ca442fb', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dba87f3bb282aa3186aff712737e2014', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b5cb033d64c745a99170f96054e3c795', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '072655f6cdf23200699eb6650ee51ab9', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3b10528c413b68a0e1236340a343c8d8', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ca22b45db598ca4f269f885704ebba6f', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '290900aa7dd34f43acd16d21b76bd4d3', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cb5e2304bac3abcea367f888fda6ec44', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd03501bf7b047c90157a070f69abee52', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'db4254c2424bdb9c63345ed52867e4b5', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f5e8397c9617c33b5a45706196626f0e', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5e3b07395d276227ceabfe80de51cd38', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4f9f8704934f9723db085866e4ed1bf2', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6d56ae42feac9fcacaea921e2cf78f5f', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:50:25', '2015-02-23 01:50:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:50:25', '2015-02-23 01:50:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 01:50:25', '2015-02-23 01:50:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4825ca2a5d9aa3ff4d0b61df7db7c043', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'eaaddbe16e363eaf963ef5ba80e27e25', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9d6500d21177127ecc6f3f0c09964315', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ba96eaf0b13242a36e4d1b9f97a1ce29', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f2abbb0cae79bf19b065d440cd954c9f', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a659e600b01afb4a2cb115d1b32b2170', '2015-02-23 01:50:25', '2015-02-23 01:50:25', 410780858)  (20.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:50:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:50:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:50:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 01:50:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 01:50:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 01:50:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6961a97024969fc0d3f4dbd6abf30f23', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c4a603ac9c58cbdc91cec488539ad711', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b9a547a6b04f625e798106f42a95e9c1', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98999c8528900ead64c7d42b58705512', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cdf72498451ce59a5659ced3af3195b8', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b3f6fb092be43fa584216d30d61845b', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '767c2de72e56ae6d8ab171245a342f45', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'aec6703e5f69c4c9e2c42743f88dbb61', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4ab268a21b19fc91eaf52daf91662a66', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fc19cce99fe88382bab7587557d99144', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2f20c760615e6b668d199e6d5f9cda18', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7a3ef444f6b5c89930d568d4b3cff066', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0cd75ca672cadff37563007ea5355810', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9749199eee176c60202f39af85f3aeac', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '524cd8a4755a113571d5254bbe1eac72', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 02:06:49', '2015-02-23 02:06:49', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 02:06:49', '2015-02-23 02:06:49', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 02:06:49', '2015-02-23 02:06:49', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c3b0451962beec2e5598dffed7572e65', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a7fff4a3218e5999092f30545b527b5f', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b18861e2e389b8bf9d0e3fca76c5d4c5', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e4896ab0c4230f50ef1ad007662aec73', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0d074f5a51fc206e16ba71970b3fd6b8', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '80c103733094d79ed5fa66c71dfd3dfc', '2015-02-23 02:06:49', '2015-02-23 02:06:49', 410780858)  (14.2ms) commit transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (3.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 02:06:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 02:06:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 02:06:49 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 02:06:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 02:06:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 02:06:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ee6ca9fa73601cf1bc7cdd2d6bd52a65', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b53edf188d5492656914a3ae40d0b49', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '41a6ac0a3c0ca129c20e0a779cb09a00', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6234a1df1209edab6fe8607fef6ac156', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6e6f4f9f6e9c3dc25e1ecad2cacea839', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7d56f3abb54c781db919ef63f28efa80', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e0e58183b0c67d45e116c76d94480eff', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c983f8426e1d3916ee699f54f6a07d11', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fbd17a73fc72584fc5514936862eff87', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'adb78d793835895cce7a8fa0d3a676d7', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3ecb2a3c7cd150a8350df248791c08ee', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e86acf2234524a1264d47db87e03a27b', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f5018f7e83428c510a9ccbeead4f73a9', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '728101be8b7d6e43ae11e59a510787f3', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '261f68b1596815fbe51af2df6edbd448', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 02:08:51', '2015-02-23 02:08:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 02:08:51', '2015-02-23 02:08:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 02:08:51', '2015-02-23 02:08:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9f2e1f5499e020595badae2931b3b2d5', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '80e011c516f3fedb651a531f453b37b4', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3f8a851b477c96f12940510db2c20b63', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9c74e63877a70c0a57d315540de5585b', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0cace3a251850f41fd03e31eab964494', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '66ebf813da480a71ebc1e7cc6d0f8e98', '2015-02-23 02:08:51', '2015-02-23 02:08:51', 410780858)  (12.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 02:08:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 02:08:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 02:08:51 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 02:08:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 02:08:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 02:08:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'afa76b75ecf94494243b12503ef6b993', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ebe1b7a017a4809f05ad7628f816d06a', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7e213f651ab7c5364bffd6f34025b087', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '215300617e5f7fea06808df59e321346', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '24b643bd4d4d45c610a7d42312913716', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6278b165acebb3b20e06ef99e4d358eb', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a7d5117dec5de300a2babf6911f7c685', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2f28d44cc5884e1264e6aa9ebe9d5b5b', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b5430161decfeecd2cceedd5ab4ab0b2', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '134f8fadb546922644c5b342a90e1c37', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '80a2bd97dc39ecb7f25e0a3842643035', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '35edd0d6a729be40ee52aaa83f74ad46', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '314ccb6724077a129445c0d44ccdbece', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '38b5e110587db6b86afdff1d14c42024', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '66faa4e97243b98acec06ecb3a0b35e0', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 02:47:21', '2015-02-23 02:47:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 02:47:21', '2015-02-23 02:47:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 02:47:21', '2015-02-23 02:47:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f73c5097fae54a59b6c65f6e76bfdf5b', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c53160f940be3a1af7d2e976f8d6e353', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '04c06960610f5d16fa4525a5621fa511', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '06f14480f42d4ee34852f2e2fb6aa5ac', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ca0c0823d7b45e8ec90cbb99974e1868', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7fd8ac94187b023c9b96d2690da3a7ff', '2015-02-23 02:47:21', '2015-02-23 02:47:21', 410780858)  (29.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 02:47:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 02:47:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 02:47:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 02:47:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 02:47:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 02:47:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '896c5265c0926e55ae3a36857b5c5bdc', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b95bc6514a90a54268c28ee4851c52c7', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '042195e34e46b3034b7443a759a14ef2', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '53b0d99ac3e18200c2839b1391b20f6e', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9f9728844ad2686799edb4dc332ee0a8', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bf9243660f862774dcf487132f614e3a', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '77e46df821b6ffdb1f07e3a09f23886a', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ef5ed9a8e0df6a998c6bc2a99a97ee04', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '73b4b5c9ec622f074c172e7104190556', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a9653e5058932f2a127c3ebc119dd1ce', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '96538450592801853d545383a94a9c6a', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '58e3d77d6a1b9e68feb331817adb7737', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2ec62e29774d71ef3f3833ae59c28a3c', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dfd94006a85b326d3cc30d311e2bf371', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7f7a7214de09ffdb613f8d94dae0fe63', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:18:35', '2015-02-23 05:18:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:18:35', '2015-02-23 05:18:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:18:35', '2015-02-23 05:18:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '21379ca13756d6f301698f0fafca409f', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2322a7a764efaa48f7b71ab663792ae2', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ac55ecfdd2c5de6716caba61fa0bc37e', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '57dd69f2938993e4f6adcd9322e4d8fe', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '16e3652a22b21f2c4eb97052291819f4', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e9140009f15605c2196198433b5239a4', '2015-02-23 05:18:35', '2015-02-23 05:18:35', 410780858)  (12.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:18:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:18:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:18:35 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 05:18:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:18:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:18:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '80187999275cc0d22a157deb48cfc989', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6338c253b831210a6b072707fcb4489c', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '812685345ea66422b2a0db77edc6a5b0', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '148e0031f6485af6cf7b5344765fc384', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0a14955ff43ee8903b5bf47012393802', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f06785a39603edc7f5e5814bc978270f', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'bf4b54b9d04573b777b2ba92b75a4a27', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c07bfd19596219ac6dcd5f7b0c1c8063', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '401797b87a90314b9490c85f6fd9e11f', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e084f9994b67a265581192aba992d451', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd0d69e634f7348b4c4e7fbe74a2923d0', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ae7856e511318a24f5f006131158f4c3', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0d430242853a63b7d66a89c6767fdc74', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'df1b2c8b348e52cf6ccf530cc84af8f0', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5172c70ba964cd030ead46784466140f', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:22:20', '2015-02-23 05:22:20', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:22:20', '2015-02-23 05:22:20', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:22:20', '2015-02-23 05:22:20', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fe46cc081ff3484b3ac0231d00f51395', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fef63a3136d737b355d2093adba78966', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8c0d9a1273c95fa28803210d5d765ad6', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '48710dae3450e76c17d89618e6f43980', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c1b9f1bf38960bb0e1e45bd19ce2c928', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '69648d26c2e301066877fa0579805c75', '2015-02-23 05:22:20', '2015-02-23 05:22:20', 410780858)  (19.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Address Load (0.1ms) 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"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:22:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:22:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:22:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 05:22:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:22:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:22:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a29a6bdd3e3abd5e86ac0c2643cf7fd4', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '373649e96e0a87b18524b8febd4a8b95', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e31b273e2821fe0246102bf884ff552b', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7b572d1b1095cd55a71c156b71d542b1', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '65d036a31fc0056939097268599aa87c', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8c51470c0e0ec523373ab2212e2ba587', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a8eb98dcd8145033004822dcb5d8b647', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ea41bf3e22bb1b22a101ae9ed44033bb', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8594216c07b898ea7489fd4a887ac7b1', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '895f9c59bcd7328420c389ee58c6d5d0', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ca49f4b50754f4440419a8afbafc7471', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f5094801ab2747e1c7548a34b33d2679', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c221d22519a44a4987788b6f728c1d48', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd5798a9e4ca851522635f9a235e02f18', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7ee49ba00d4e5672be59d55f884fa61c', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:22:56', '2015-02-23 05:22:56', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:22:56', '2015-02-23 05:22:56', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:22:56', '2015-02-23 05:22:56', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f6100803f9ceb1f5d1a79c2c204993c4', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e75987c55bd7ddaac455a35ce5b423eb', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2070ba6d5dd7ecf1701042926678194f', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'de5d0bcf42e59430a3541ee421976791', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '486b1f3f60191475d1292c1e1414e7f7', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ea3cc33e1ea5deeb00f55136d77a4d5a', '2015-02-23 05:22:56', '2015-02-23 05:22:56', 410780858)  (25.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Address Load (0.1ms) 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"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:22:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:22:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:22:56 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 05:22:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:22:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:22:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3a58aff59d006b65e740577b82ccb835', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bea5a78e9ff4dc889f0ca6da5f387276', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a1824f8288e67c1761865c6c061a05e2', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5fc65f9c2c563c4f023f5c2c2320c3af', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee54b58dac01ce9e28adf5fcd16df1f4', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c3e595699fc990b6b9be1a24db325fca', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f515e9ebae5bd770077f9ca42c78dbe6', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2fdbe2d940a392fd9bc86ac7b95fa966', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'bbdb4df022a93675e24209133b457671', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3496c311e7dc0b3045652dbd4eb5eb50', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1004aef3691fd2c87097e09392e41d43', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ee33033fb5581164f3400b0de2b3ef18', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9a77f5ae858ae1873a48080dd085c520', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7b92a9f2c12e3ec247504bc4cfe04d0f', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f304e75e6f746a0abf2a5a49c7b121cf', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:24:06', '2015-02-23 05:24:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:24:06', '2015-02-23 05:24:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:24:06', '2015-02-23 05:24:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '18023e89ccd629202445e66b932fd0c8', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd4e6fdfbfa7ccf6326593c5745cc3a3e', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '31c5b0963438532bb425dbd83e956e74', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '22f1e0b96c465bd694d10acfc4d9deb1', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a36770f499d418012486ad0d0a897800', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b4a5ffcd050dc20eab75e0515ee371ee', '2015-02-23 05:24:06', '2015-02-23 05:24:06', 410780858)  (16.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:24:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:24:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:24:07 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 05:24:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:24:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:24:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eed2f0c542b133ed608da7534e6af431', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '300317cedae881cf3ad0becef28812e3', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0ab02f24dd7f2f1ffc47f8b10ceb5246', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ad0aea5b5b546bbeebf5e4f4d4ba2feb', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '38786038d5eae12b823a964e66337951', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2d23347f1984f2e6804cc90c9933535c', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4d341594389598400328ad2d8ee9fc1c', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f271328606c196d039efb1c252572dbe', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '12b7a4ffe17555780d7d7ae70ab2b282', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e03f42883c0abb4b385a8ed36507f93b', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd959b17dd835ec67a4be229f36517379', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8f215ac4edf058f5674e036430e262a7', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0cd749ded0d8cdb18118b46113532ace', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '67f0b5d6aabb200a56aa5c3c98fc21eb', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5561258d9b171faa32cacda85d5cf002', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:24:46', '2015-02-23 05:24:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:24:46', '2015-02-23 05:24:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:24:46', '2015-02-23 05:24:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd6fc49a9bb38f7e6c8d8cb27656f90c5', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6975644f302f10afe9b141c0928be25a', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a7054ceda7920450680d5340511dc8c0', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8a799251d885be740ae170f6028ffd58', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6ad15ce7d1ea8b681588538f84aeb5b1', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '07fb57656d9309149416081d532d312b', '2015-02-23 05:24:46', '2015-02-23 05:24:46', 410780858)  (32.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:24:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:24:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:24:46 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 05:24:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:24:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:24:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '15e0cbb42fb8c04743f5e4c5df459e6f', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '047c9bd8dd64a3e53673abdd9e952d2c', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ee56c5a4711a662fb686314edbed1dc0', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cff81bb3823a86e4b7b159ad38d47137', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cfeaeafe72e51cfdaf9f79d287191eec', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd066fe4db6530d7bfc6822c4c3c433c7', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd1a6d8dc648624b7db35cce933e0383f', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9b113e9dab3ab6877acd0f9e7ad07341', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b2548994ceffffa6553902f2a15bd5b7', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9e81ab3d872f23e95a8bfb0e46e2a8c0', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd33f37292354f3883b457ecd7637a59a', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '24439cff5fab68bd7779aba0fdb11e0e', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5ab82a97eafde89aa67c464cc9aa4a30', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ce104ec97fb236a1219ec836cd95cfd7', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '58f00ae353e98dc66fa6f3bbc54ad53f', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:25:15', '2015-02-23 05:25:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:25:15', '2015-02-23 05:25:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:25:15', '2015-02-23 05:25:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '621e6912f9a958451aa1efe83b7aa8e3', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7c076af7135010ce54eee60128a23912', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'df8fd27aae425dbc2d3f37f5e5685692', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f6d3911afad59dff4cc62d7792731c16', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a0d8073eacdee0bed54b3838bc3d31ef', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '69e108ac40043e87eff68ab3e4fda37d', '2015-02-23 05:25:15', '2015-02-23 05:25:15', 410780858)  (13.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.4ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:25:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:25:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:25:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 05:25:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:25:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:25:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '02b1eb652690cedb4fb0e7c3d6fc7494', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '08d96a4a329ec2b335c8c30608abd365', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '247d11077f6d640fc423a3244d0b7bf5', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '960fe4534e8881b5361bd648ea37fa5a', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6bcab9bcee8c162a8e04a7f0b1a3cfb9', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '603ca444a3a15983c57f0b4bec347f79', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '484d58f57cce0d0e11a850896cee5825', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd2fab4ec858c01ce897a024e6e7c25ac', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8db265d58da2b4d7b847b31c38d77cda', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c9e22d7937d8776bf3ea5c73b9563a0d', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dea3ab895de160bcd24b333d2284115a', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9010ed9ac70b57c3b640702b4d91528e', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a650235e799a8a14749f6c7c3dfb2f9a', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a4ae8ecebfdf6ee0b6f72165abf04e75', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ed14d08683e54d64a12ae003b522d0cc', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:28:27', '2015-02-23 05:28:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:28:27', '2015-02-23 05:28:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:28:27', '2015-02-23 05:28:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8985a68a336af867e4198596b4234a38', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1e4060aecf58627b9736e7775cec97f7', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c004b9bde340086dff5b49beca720d44', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '631a363237c5a04dc354cee466cca50e', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '495cb0a1d4cb6120f4f63a0a5f56233b', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd4dd977c207553b16f494ed72fc54db8', '2015-02-23 05:28:27', '2015-02-23 05:28:27', 410780858)  (24.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:28:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:28:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:28:28 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 05:28:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:28:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:28:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a9d35fd6816c7f3e2593575559ee0220', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8f9eeb3a2c69c3531e7a5337747a7427', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7c8a1d8c8be8d19814e8cda5c7ccdc4b', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '66e449df961fba3b7724042d77439973', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '980eea994747f1c591e8d61c39406cc6', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '44d2029756be49c76046415aed287fc0', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4bdf3118e03834cdf75bee0c33fd25ed', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4df0d1af0c4a0fbc8750285b15a2a7e5', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1d0e60d2ae3a5a64d808cb2c8076390b', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '017f4709f5a63bc9a90f36e1de2c66ff', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8b275b0dfd66123da411b7c078bf0584', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7e6a64560c496840a9266ab236b76fd2', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f36026093a9cac49caf93ac1c0ddfa42', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5527db529df537ee2e470ec5321716d3', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '46f93a6a94eecea2393547fc8349fe7a', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:39:17', '2015-02-23 05:39:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:39:17', '2015-02-23 05:39:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:39:17', '2015-02-23 05:39:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'eb6b4a55caf01b8a3ce982a6f3854beb', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'db12e40fe8bf5a73b846702eca57bb9a', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '54bad150ec383a8a601c98ad1efce345', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bb03f823c89d51529eb6aa302d24af7d', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '54b9ef2f08b885be193bb8b2e61932e7', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f7938dc194e372f5141b3edfb126200f', '2015-02-23 05:39:17', '2015-02-23 05:39:17', 410780858)  (14.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Address Load (0.5ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:39:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:39:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:39:17 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 05:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:39:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:39:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5a2c1291856dd3231bb7db17c605ff64', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0758f2a06a92c2b56cabc66e2985f124', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9bc90d9919e3cbc01880b5a9864709d5', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4d3386fa152e8c8a04633be5c7e0669b', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '249d3a4bef6c01bcb3bf974d9239c7c7', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '646f996847900c22196edbed61aed76e', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '55bccaf60b7fb56156c503fc229bf7cc', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '622bf2f74a8ed682b4abd4b9afe15bbb', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'eec4551fbdefe77f91d1372fdd669ca2', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3ef12d13ea90f6a2cb76af1fac1bebb5', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a82dd7d4bd2dfd7ac08ce2ba7641b6b8', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e7d60d25c1bb3fe6e8b63ce46cb2c552', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3dc879262830ec27999f8f827808877e', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0e46153f35c50a6c719fb4e2fe8c5ad3', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eb1bc98385f0d98806180cfa3ef4c05a', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:41:21', '2015-02-23 05:41:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:41:21', '2015-02-23 05:41:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:41:21', '2015-02-23 05:41:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c39aab983255da5d5284b6774e64bd15', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '38b173b7083a4bdc07be5ce8626f5906', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bd5bb14eebaa62a0aa83e98104eecc64', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0a1a92b0a6f32a5b579fe86de77a5984', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4b62b3b8167ee09e5a71cc76066a9284', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd59a472b1a7c8b2ed5ed9dca2b110ebe', '2015-02-23 05:41:21', '2015-02-23 05:41:21', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:41:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:41:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:41:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 05:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:41:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:41:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a78068b74cc9e8de7c738bef86a465ca', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4ebb7537ea918e5a0e0384e13fd959f8', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '811d5f05d1cf199fbb42630388c57efc', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '94897091f1a381bfe6fbfa0c9ad15195', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '697bd0888f31d2052e6650b38a531c30', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '49d254942603798cd59d2cb7e26b7f3a', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8b064aa46dfc131b5551bc99a9e74998', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7aa659ec6af8e2a4cb01da147afcf721', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7c9f5a61fb7231dba2f8981689d380d7', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 966629572) Fixture Delete (0.2ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '805df3c286cc0437b5b2920996598cda', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6be86eb8b43c8bbe01b0cdc561e01093', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9871579cc68285b7d1e8a64901ddb99a', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8e4f6b72113aa699ae6e8234c342184f', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a62b80b54f2b115380de0b16f3bbbfb7', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '622da71dba0ad0e7e1e59e83979d0d7d', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:46:43', '2015-02-23 05:46:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:46:43', '2015-02-23 05:46:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:46:43', '2015-02-23 05:46:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8b37d7369b05b6c695917c724da325ea', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3e262ae4854ad081886d13ad569e4c27', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '97def67f4a2cb141096c62360c580e85', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '68fcff54334f59798d478a9a70c5d13e', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4426749a381e17566aa668376c395601', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eb71d1aef6abfae2ffa78c9f8d483cbc', '2015-02-23 05:46:43', '2015-02-23 05:46:43', 410780858)  (17.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Address Load (0.3ms) 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"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.4ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (3.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:46:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:46:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:46:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 05:46:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:46:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:46:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ebb7ad590ca6b1838e556a193ead4c0e', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2562ff991b4b3e57eecc771505088657', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c10244f613900fd7240884dc75031a8', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '377b967982be9cb28c6c417cbdaab6d6', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '811f6624fcbe1ce36b9a57e8cbfb2a33', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a447e28d8aa1db2ee7d8ba1c098c8278', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3e9886d048b45542e7fac30748dfe067', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f41a750c7b253bcca661b6f6b40f38ed', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7ece7ded1dc6a796c720c503207825ae', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7ada40e64097b6555e88ad53b01e14a4', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5b3ae377b1ef509461037aed9861fd4e', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '67be35fd6243ff1375f231e63f50a1db', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e123a20728af9b379df4d155882c6a9d', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5bcdea30c07a337578e5122fa2c3eb31', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '106e32235b23642711158dd3c355bc3e', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:47:30', '2015-02-23 05:47:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:47:30', '2015-02-23 05:47:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:47:30', '2015-02-23 05:47:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ced491332392ee58151edb630a04e8e8', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fad856124868f6a5cd9c67bc642b2b43', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '12c041987bb4a66329cb9d2d861a83cc', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7606244e33863ce140ebfc8738035bbc', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '86863662fcb09f3fa652d940aabd7e9a', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8b4a6e3747f421045b2c6976ecb4e828', '2015-02-23 05:47:30', '2015-02-23 05:47:30', 410780858)  (20.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (3.5ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:47:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:47:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:47:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 05:47:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:47:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:47:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a3701c02e4241b384f290fa7aa9a87c4', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e001ae02ab6bdabc82f69ef9be7b10c3', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a67b1b070e0284b978800d741891e069', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aff5d6e551ff2a7cfc9d7f220604c3a1', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7bc65dcecd04772e7d973f8bcb3b235b', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '80ef7f8abc8a3f9758330d930424aae8', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '245dd9f6410de0e8c87169d660b32464', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '711940dee74c3a89ed2e1d77b6a4c56c', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b0923f9cf872e4b8beb3db9e008aead3', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 966629572) Fixture Delete (0.2ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5495fa73fd046db226dc02f48cf5d2d6', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7fd84319232e655eaf1e6d22c8ad25f7', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dcdd29556ed3e9dd4bb332c9403c018b', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e3dc95a498ac85755e1f9603109776db', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ccb789a68b05eae9def25b330c220bdb', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd7c3c3736a82e74e3b223cfa259c66d0', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:51:19', '2015-02-23 05:51:19', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:51:19', '2015-02-23 05:51:19', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 05:51:19', '2015-02-23 05:51:19', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3b735c7533b42b6dce4fe703a5d01331', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '733392398b9e0e9f9316aa59a4e3c9f6', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fc241f170ad9093c323c489608a155d5', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7788ca4451a96d3929fe25763e94ca24', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6c2260156e8317b3c26c411192cbe912', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8c6ff73625e7c62b05de83929ba743ce', '2015-02-23 05:51:19', '2015-02-23 05:51:19', 410780858)  (16.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Address Load (0.3ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:51:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:51:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:51:19 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 05:51:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 05:51:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 05:51:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c20bbb8b877c811cb124e86bbec0697c', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1b2cc2a19b15b097336649c0cadc7474', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9a5972e965dce25e3756f9ad4b3a898b', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6e5d378171f4b2b1558a02c92f2e02e4', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2f2b62b938f0748aefbe1ae804569e42', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'afb3d5424f733fd25d5a7e88642fbdbf', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e56034a783002bf78d9e33e4581eea64', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0cf5411bcb22d825d276d9b45168da5d', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '91ff8677adb6d3a31ab6b3e809d5a326', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '79972bd3a10fbea21be72b014a08ceb2', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9d8756b385a2bffc19123e767c7f5974', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '19ab0dd9cbb410e956eb13aabee12923', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9933de7136deda94c9727dc5bb642b31', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5eb190036f200b1617fc598fbff6e8e9', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '77fc49078b897ebdb134388b71a0d047', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:05:06', '2015-02-23 06:05:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:05:06', '2015-02-23 06:05:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:05:06', '2015-02-23 06:05:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'befd16ce1ef608bf13dca19deeecafa8', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1ee4eabd8d57fb474ebc3572d9db4945', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bbbad12feba3eccd46c661c35e7b07f5', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a0989df368d77ac2826e4693fc60b434', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6c2bcd9609bb8ef0b08df5a26c47d8ec', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f3bd8c2eba44e7e257aee59eba234398', '2015-02-23 06:05:06', '2015-02-23 06:05:06', 410780858)  (29.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:05:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:05:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:05:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:05:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:05:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:05:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aabe1a040bf6ca0fa5bf86712443db68', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7b9f06be0cf30560dbdc8347bd5815ec', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1fd2857dba942080ea257266f0e212a3', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f6dccefb6adcdd5433551fcc7534ab05', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3fa0a1064878802d48bf777f32ef358a', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8937d595dc6b4c3b0452c41f6b7f2b4d', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8a9bfa703a2d7f88f28894ccd5a2d5b3', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd6680769abcba5273a7cbf1e9639b6ee', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cd7f84c9047cee988650c09c2813d1ed', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e41e397fef4d98ccc864a352d750599a', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'bdec1d6b6bd3c14343c14d7573904c34', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bb0ec2f127e6692cad1d2963edfb75ce', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1e142e92972b5273ca19d8384cc4c259', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '355747b39a0d9243ab0f0e68b7ce5334', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ce657edb8f8622127c77bd5db18ac793', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:05:31', '2015-02-23 06:05:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:05:31', '2015-02-23 06:05:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:05:31', '2015-02-23 06:05:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '451ba90aee5cc3120d1c4cc2ef2c63c3', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1842e0e559ee0ead15f2c27ff3067fff', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8da5d89109db4cef7ef82acca8fa48b9', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '81db4f6e451ad6dfe91c2871f6fef661', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b31829a1b8f27e15647fbbf2e2b9c953', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '15cf33065fe7c2c3d828b4413267fd06', '2015-02-23 06:05:31', '2015-02-23 06:05:31', 410780858)  (13.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:05:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:05:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:05:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:05:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:05:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:05:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4847a054c1846cc556f23a324b06a5ed', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd7d8e488d14ab32309b7c1ce214ebcb8', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '82b9113d08277daa578f9fafe1b6aab5', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9575b740170ce419638a7340fb26ff94', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b7ca9b81b5c219a3b80d8140d81366af', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '36ff2457f38caa6933d8d2527c40609d', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0c38bdf377d19bbd497d568333f20f8e', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0d17e47beb30b838a1526d67941aa00f', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7f68881508869b8545c91c5f40f13e67', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cd07edea4606cf575ebdb5efc29fcb90', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3f149cb5b3a09a16c28c162319adb865', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '911ad995919a426bd018018360c2bec2', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5e708d6e945ba85fe7cc9c2d9e507536', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '90f3d17e9eb87e4314aa2b7993c907ae', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'db35c652029e5d21f63fd7ecb4ca3b0b', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:06:34', '2015-02-23 06:06:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:06:34', '2015-02-23 06:06:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:06:34', '2015-02-23 06:06:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6ece6cd87dbef8a183c298298b3bdbfd', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '310756c853a2028a67e8d907ac0cefbc', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f59994dbc0014cf806f63ecf640adda3', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b7df0f03113647c57bdb2bb324114385', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '09b3dfb2f2e3a5dc28204d19fc8d28a4', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ab29dd019c46e3dddc8355f6b05050df', '2015-02-23 06:06:34', '2015-02-23 06:06:34', 410780858)  (12.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:06:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:06:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:06:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:06:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:06:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:06:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '346590651b2441db1b79568f44e82c33', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3e14dcea06ffc762d5e6fbb072c7e83a', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6ccd4d98dd2952d8b64f66fcce33f25d', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ee705274cdfb73dbc2711ae8e46ca0ba', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '206db70e8b250e573a40f325dc852f3e', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dcebdfc371b3c0914f3d2bc84ecb69d0', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '852b8226fcd6ac08933b5cefc6b04ffd', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7864196237631fbc94e258c4ce014646', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f9e6f61ae8c1aabb6f15f45fdb952d05', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c7b63e90bc886a9487171bed11ab7923', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '28990f5016c9e4bcf6bb604f6de3750d', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '92dfb416bbfd8f87d4b8f73cd057c5f7', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4e8eb5849c2de444e0ed5ba84ef81cdb', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '34012335cb58ec1e64dcc48ab2d1a888', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0bf845830e6a88e8a2646366f799dc9c', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:07:14', '2015-02-23 06:07:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:07:14', '2015-02-23 06:07:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:07:14', '2015-02-23 06:07:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fe8006461fd8c701ed1017cb72e5c27c', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a265f099b5fdd224e79f1282d05275b9', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '957ded3f01c1c1db7a05812941cf4d3e', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7ea65630b0ba6f2a0234114a9c4eaec2', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '59af12ae8337799f51fc0c6b01ad87c6', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a88d8c24dbdf872cbdf33ba5326746ca', '2015-02-23 06:07:14', '2015-02-23 06:07:14', 410780858)  (24.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:07:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:07:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:07:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:07:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:07:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:07:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7384fc91bb33af1dfc0e7c4e192c7377', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'df3e42eb32e4e9ba2d61fca65e9bfb91', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a4920a48ed5f17300aa777566f267d2', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c1c3c9532d36c35e594dd617306877dc', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'da9eba6c8fa913cc3165b2dac23c73a9', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '168cfb91dd3dc96d6934f30943d6575b', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6522322cae25aa59cf02e22090911f07', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e5f8f3099c2606418ca027d02d72e17c', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '95e6de0617834005dc01bf53aa14ac51', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd6993f7cefbca7237d4f60067f8d38ee', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ae1a6253b3f62ba4901266f14c0e6f5e', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fbe969f4a155bdd30b8b541d06e5c461', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0d15126507d9f4c8a05f1272a44ff026', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '06d048758fb2ac1ff4d4768f7108334f', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dd5ec4a6613ffcef53292862acb23074', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:07:52', '2015-02-23 06:07:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:07:52', '2015-02-23 06:07:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:07:52', '2015-02-23 06:07:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '956e24a10c3ab180e173b3269d078f23', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '203114aa346563b5cd9d1b41bb3fd2df', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ac8a9d0b67c2a04327d74b4e74817f5e', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd18931e3361e1fda8a364beb322bc4bb', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '10cad0b5258dfe3487c4abd5da45d18d', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'da30f5ed1ba9098661f3386ebdded3a3', '2015-02-23 06:07:52', '2015-02-23 06:07:52', 410780858)  (20.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:07:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:07:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:07:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:07:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:07:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:07:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bdeb210df1e2315b76dae68197bcc51b', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3a64b2d76dc7978cee1f387e17ac349d', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '294572f6c34590a1a50612ddc53c00bb', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '286ca4897b061c1526cda1198ced6f67', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c865e83e0c11e6cfd4a53d0e24fbe2d3', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '06c38c3a63461a82289d8f1aa5f61531', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '738d82efb8bb255634736891498f0702', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'adb5edb94674fd0b72dfcad2bbea30c2', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7b4cb08529824185af27e8568a84fdb8', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8071b429475147d470925fe2078d4196', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c21a3f2db5585c8ebb3f397a111e52e6', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '91266ef4a8b887f900f23afd520cf4b7', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '63e05bafd7eb91d69293374107db2b10', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a6b3b81866a4b3b163c13deeeec50176', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0cfebba7543c4c4c6d6240e05293776c', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:14:37', '2015-02-23 06:14:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:14:37', '2015-02-23 06:14:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:14:37', '2015-02-23 06:14:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd014708002c27e791f741aa58244e6a5', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '37e18a0e37f13284db79f2aadad77ea0', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8d0e96b9aef526267bbad678efb15fba', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e7afdb7c03d002f3405ba5f4ab684993', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7d1a538033349399c21d473d7f20e586', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '838c51d6faecdf3b295fbee70929aa5b', '2015-02-23 06:14:37', '2015-02-23 06:14:37', 410780858)  (16.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:14:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:14:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:14:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:14:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:14:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:14:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1f41e8494ac485739ab573cf5585d32d', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a258a6b83cd67527acc3a0ea70f785bc', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f22e071c8556316522e4b04917b9d518', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '15f97f66a7668c95362c23c24fde046b', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ffc3d5ca3583dcc329bef18c5cff4267', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6a69d42032cd609b17c8d449d134d5a9', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0ca1c0cc0379f47615c90547a501c60d', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7cbfc374c5ef37b5def3b76d61e1b37d', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '63b1d12e9eff35ffe52cc3425244a7c0', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '43bfb9a86ecf6e08118b1159280c1fe9', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '38e24c8ff94191fa00403620dd0440e9', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '85ef95f8cf7dce50d581be2200959c52', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb4739b6e896536ab1afb834c8dce154', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2877c1e0388f2bf0f9458d36bbd744e3', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa82cbeb30e5082ac876daf5193ef555', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:16:58', '2015-02-23 06:16:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:16:58', '2015-02-23 06:16:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:16:58', '2015-02-23 06:16:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b014d2c310025b4a21f3ff328ecf5db3', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f141d8f67550111d66f1df3d4d666892', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '941b41ae2cc569f5ae3e4bdeba9b88ca', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd3e27eb6dd4520aa0ef14bb8045e30bf', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'feabbaa4b9f260002b6341ab76f9470c', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7089cf1e1e6b14c4756f89520b2181a7', '2015-02-23 06:16:58', '2015-02-23 06:16:58', 410780858)  (15.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:16:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:16:58 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:16:58 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:16:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:16:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:16:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '09726f5714e9de4f4edb6b2870b731d9', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2f50618acbd1f7ac3b6a7013ee698d76', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a017e3e6cf90d50458e9b36ad6abca2', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dad81dbe729d29f21dd259a4f7cd1898', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bec62f2151b469ba6e51b45f1ddaad1d', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd603cd91ba7d0767ce389050d3ebc82d', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '883ae8c6aefa4f51dac73b5490bbad79', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '91d34b7e4219be8a35bc67e7f3567328', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9b9421d5ba0733502931dca0874b6a77', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ad3aa5443246455378f771ffe01c7ec3', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a6f680c113b3fb74ed34d4c02219813d', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a5ef1bf97f3d85c4b3eef5607b7383ce', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ba72cfc8cc6281c2d9ae0af7f3251729', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5bed05a042fb94877ef3179cc1628e97', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '01f818154a71f8ba01b6afa33bc2d14f', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:18:46', '2015-02-23 06:18:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:18:46', '2015-02-23 06:18:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:18:46', '2015-02-23 06:18:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd22f81cb7d924f7fd5af09bde6418869', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '841b01d5a4b603836b730a73d4c12b9f', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '18d7a909ca62af83531d3fd58fb2cf23', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '61f9933ac65ec8891f1a6c10bf612b85', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3267b9bb27232f92a38c238fda98e968', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '58a3529c0ad0ad4d06a536dc091614f2', '2015-02-23 06:18:46', '2015-02-23 06:18:46', 410780858)  (21.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:18:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:18:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:18:46 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:18:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:18:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:18:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0c353b77c8d635a63974562176a91b99', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5c3342c0749d4afa5cd74bfd11b8b7d0', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f148b0edb750d2a650bd2d5471755036', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '24219796873ade33c52c212aa670d81e', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c1d3eaee7ba2dc2c46fc711b97c94dd1', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fcb3f61d3e19d72686809c8b494e9a4f', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3931b8eb8403e5be9f5c11836241007c', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1f862a6d3cfaf6a0f7facfddf26b58c9', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b4b0a9ad57221328ff3302fb591dc8a1', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '835581d5dfc40d25b06d6858e07ae8d7', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c45718f20fc8b787aec8f4a5533ebccc', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '11a8c7dd72d6be95fb6848b8c2dd3010', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b7afc29bf71195e25bca832c67fead76', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '414c45c57986b429f1f2addd4396bc85', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fc839bcc118ae83112bacb1af04f408a', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:19:53', '2015-02-23 06:19:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:19:53', '2015-02-23 06:19:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:19:53', '2015-02-23 06:19:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '290dfdd99c380f6373f807d88751d5d9', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '12ae35a4995a02302fbcef1747f46006', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '35db4a20df72eb05f0738095f58d634b', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fdf0a8bb422363374bbaa77387fcb08b', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '53532634d78a31eaff40e802e1bf1aa5', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9801eb66f1f47d551650bc5414b2de24', '2015-02-23 06:19:53', '2015-02-23 06:19:53', 410780858)  (13.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (3.2ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:19:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:19:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:19:53 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:19:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:19:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:19:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '24e0214e42f63e8dc5fc2887856831d7', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '07e4c9c051bc98c1a2e9e93e13f35af8', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3b3cd3f3ff12ad3b2c97f94bd1ac954a', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3a6672d601def87836d7dc216a8cf9a4', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd6233e1fdad687b6064203c6f22e604c', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9ec3b55ea4303e8012f524794f4fdf48', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '825d7fb75ccbe0d5ee0cd99616033fc9', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1e60e68df9eb263e2219dc451af66581', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '54620e16d20c8cbcd4e887aa4e8b642b', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1a5f09a79d6a691c212571b5fbdfaa59', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a584ec388bfa90185583f95343ccf713', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1f35692ec4428935e61ea412b891fe6e', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '450869146905ac79c406d36640a02c2c', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f470f6db8cca76374837deb0e484eb74', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '372f942489db293ab42d6aa388102223', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:25:25', '2015-02-23 06:25:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:25:25', '2015-02-23 06:25:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:25:25', '2015-02-23 06:25:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '70823e76474dca5f4bcf0df2bc86f823', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f473b7cb6d0b069ddc42a8a1ceba5514', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ff2bb866c5d5c46f3a074ac0a4b6d9cd', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0af1ddd9d3626ed4a99682e223d14399', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '05e373231bff72a9eddd19db36aca73c', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '84d51b35c32ed24971eea4931391ccb1', '2015-02-23 06:25:25', '2015-02-23 06:25:25', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:25:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:25:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:25:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:25:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:25:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:25:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6f27a465e9bbc8496948c123b3b482e3', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dd5ac3aa2c8b8516a6fdfc0a1e77da6d', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bc096b0efc6e9c82b9fa54105713999c', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cf2f0f3d9b35b3e7ccf071260b0a56c2', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd3aa3f1e84f4a47b1efe3e30d8f7f1d8', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd1fd6dc5db2bbabf353ff4cad702835a', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f7bb42c8480ac698aca41708f8d0f2c7', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e25e77cda2757677dbcfd594d2a6cb0d', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '78add7fb7724582014cc8a4685c3ba8f', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd463747adf2780115c2292d7acbf1bf3', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b81775b99764b44294a1783c9788962d', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '928823b1e699240fe47d23b481afea60', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5debd99f32bc38e6445b486d35f28ae7', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '40cf5d96f72507b096f57851b026efb5', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c1af72ff77e738f7bf053d2b78d9e791', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:29:17', '2015-02-23 06:29:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:29:17', '2015-02-23 06:29:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:29:17', '2015-02-23 06:29:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'de13352504087aba40039f07f9e29b15', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c5648fc994b02ee42190f0f9aa09195b', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'df72b02c2ee822094a7a061f4c3c7a21', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '82465761d8229f2b876d9c514e202d3d', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fac082dbdbd925be64e343505a77f76f', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6f89490fd0482cd627d2b1c5b76c77c1', '2015-02-23 06:29:17', '2015-02-23 06:29:17', 410780858)  (24.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:29:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:29:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:29:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:29:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:29:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:29:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dd68f146b96b6a8d0238e80b81c129f4', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'de89251b1b837eb852de15747e027b24', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cf98aabf863e363e4eb3343d84cb6592', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c133966da93d0958d8e6a24bce86862d', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '46cb96d4b820642de087c294ff39c606', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd62ee1bb2894235dd3f166076ef5214c', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8eb6889b22b61baa40f51d4af0fcc719', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2ee824d22662d8642d53cf4ba699bea5', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c6089e6aa582e19d30bdc369378722f6', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5ab38169007a6b7631bb2185882f762c', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e2cdf46e3f6d71743ac3661fde346edf', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4f3147b499241c6064b8af5264326f12', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd01a5dff267269ee730bb09a8a676088', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6fc75e556709b33b9471298d9c5b0d6a', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '886bd216da847a93063571851cec225c', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:30:20', '2015-02-23 06:30:20', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:30:20', '2015-02-23 06:30:20', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:30:20', '2015-02-23 06:30:20', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1b0f850d4e1105f2b79bc78a90c5f260', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '63dab3a44e49592e8f5019174f39e878', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '25a118b05a1055b4cb75515965069c8f', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '727da2025477fc3c10d24961539c1ee2', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f3fcb72d2f8935507f3be34807726d93', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4402fd68990c57deaa98cfd288eb7a28', '2015-02-23 06:30:20', '2015-02-23 06:30:20', 410780858)  (13.4ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:30:20 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:30:20 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:30:20 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:30:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:30:20 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:30:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e274799ca24944a4d77e187dc2bdc44d', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5d7c1947fe807485fe7bb450d3fa2d1c', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ca1246c51cd46343633188129e95309a', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '74f1e0b5786c5f428d68aaf4fc2fc2df', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9602399b6cf3caa33c4513bd6228530a', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3df0d128327cf7ee73b0ee9dff33740a', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd104500e531230e87ad324ca4d51f0d7', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9d632e4e0e52af5493ed63ecdaefe8fe', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0ba11defd9af6251c673499fa8c38fa9', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c0afb1ff78e14dc81c8430a80ac36b4f', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2e16b27c2e3a44ff932f211f5753b326', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '423e7873669b8e6150587c718882b56f', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3248c2de441e2889613bfea93eac013d', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62e87b757a2d9ad0d7ed1ae057080c15', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '63e520ae0bd134a7b44bce5d8fa28043', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:42:13', '2015-02-23 06:42:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:42:13', '2015-02-23 06:42:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-23 06:42:13', '2015-02-23 06:42:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7aa9ad35be3a9852ed02f87dfc34cc50', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9cb74a189fa8049428b2c4cb4d986a39', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b80612e312546ebd05270b5e6aacadcc', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'debc9c566693029b1ccf7240dc940660', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd5a4f54d8b3cc83b6ee3e43ec8b30dd4', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd9fbede24c3397195fa75899896f2be3', '2015-02-23 06:42:13', '2015-02-23 06:42:13', 410780858)  (12.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build returns FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0007_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0008_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0009_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0010_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0011_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0012_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0013_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:42:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:42:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:42:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Feb 2015 06:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Feb 2015 06:42:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Feb 2015 06:42:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.9ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'af0fb97614d99e10cc8cd12a22214b5c', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f581d376a30109eca625fa8970e23af4', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7661885be7def50ed72e70e35c6d6328', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '80fda5f3ce0911d0111324f654fd4aee', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9f18ef59412271884fb49d8bc75804b6', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '56171e36fcc92a3aea2ee1cba74a176c', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '208081d97b3b73e55e0d81670527489d', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '465f4d78c107e4385e132c62cf4b337d', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2cb9911c30ae44c730b6cd0809ff1aac', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f783b9621b2206c2ad7a8d601d5eef68', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e2029f3b307a8ae129e679413f5d8bc3', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b3ddac435c0bcbb8e93d6a5b7d863a98', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6f7967a702618971483687c9b25a2cc7', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7991bce6b0dad9fc1af2845d9ad9005b', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b6b9d3f2fbc156dd697fd86db77c3694', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:32:58', '2015-02-26 07:32:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:32:58', '2015-02-26 07:32:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:32:58', '2015-02-26 07:32:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ba8cf49e07d8f0270ca3a45702ff5ebc', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c2efc8555feb16cda17824682ab4f6f4', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c2e8ed9d507c0a3ae1f78743c3d20cd5', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'aade71c7334d86ff09674f66f97ec61b', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '50b971027af0d4e69991769c4d78e3a2', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd15c04939f3ad61f9d659366ac9a40a2', '2015-02-26 07:32:58', '2015-02-26 07:32:58', 410780858)  (18.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0001_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0002_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0005_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0006_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0007_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0008_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0009_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0010_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0011_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0012_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0013_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0014_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0015_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:32:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:32:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:32:58 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Feb 2015 07:32:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:32:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:32:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '97d727af03aaaf0cf487b9c197e2fccb', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2c140636214db8848b7cf45a321abe82', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eed49eb5ee623eb38611dea27bc32b5b', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '555a8c99d81c473c6507d2126c8ba18a', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4da89d050e5f34dc4ecc6da5d9518d3f', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '824abffd35aca32994dda71925d4f24d', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b3faa33aae744a2277e481e6ad630d5e', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7014ddbca2dbc6a3d80c4ff877546918', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2b69947f6f0dc38841726c9216616f31', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '329de9e375e7eee42851cec26f5a6bfb', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '37154d6b5e85fae871ae9e6a228d3922', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '951f6d009e5c165da76e451b7570cab6', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '14e58707b345ae4700fb5e2c508cf4de', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f87c67ceb1961c17ba969d272d132a5a', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0c35df6bce00e0f05416366f33d5606b', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:34:35', '2015-02-26 07:34:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:34:35', '2015-02-26 07:34:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:34:35', '2015-02-26 07:34:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '577455838434c0d6c262faa29e204cb8', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8ab8467c385b7998620d06d1898a79fc', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5d316a6300cf8985e3d7ee9bc5401981', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8fb0324c331b3ec26427ce0e89432d9b', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'edf9610ada3913442b9410a09c7a3b77', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '169a26866492311aeea298cc19b48d9d', '2015-02-26 07:34:35', '2015-02-26 07:34:35', 410780858)  (18.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0002_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0003_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0006_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0007_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0008_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0009_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0010_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0011_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0012_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0013_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0014_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0015_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0016_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:34:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:34:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:34:35 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Feb 2015 07:34:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:34:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:34:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3764a8d380c77d96eec36282118931fa', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '90cd4821eecf0e0dc421e57d3c71dcfe', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'edd35b868f3f5c964ada9e25c4d93e3d', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7f347f58a987d83d7859070716e39236', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '00f7e938d377608e4407d2d9298b72c2', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa424f606dfe88704d45a6e8c7860ea2', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '25e29a65127bf3bd6af6cc115b981f70', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3f125d1fa8064b0fd11a6bbcd9a95367', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2bd02f54e770a7d10089ecc654aab57b', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0350bf559165a1fb0627c5e9bc155019', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6c129572376ef9013a8ff6a2a43491c8', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5fc798337edc00ecb597e734263b42fc', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd465dba6db6b2238b3e9b1fe4f296f59', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd7e8db75289c0b2cadae30a50e03f9c1', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b4503c4a49be5caab517b6a3992f22c8', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:35:05', '2015-02-26 07:35:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:35:05', '2015-02-26 07:35:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:35:05', '2015-02-26 07:35:05', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '65c5b78771164a99cafcf2e961fd8642', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e2d13f65b69a13a349b5dd3c13d593b0', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd37215ab0db22fd38d8a4c96af846887', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '35655da8169ef415309e4a01c876413c', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7466fdca57197734acd50593d043c4ad', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6ae9829b84ab4a544471fee923a39bf2', '2015-02-26 07:35:05', '2015-02-26 07:35:05', 410780858)  (46.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0002_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0003_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0006_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0007_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0008_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0009_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0010_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0011_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0012_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0013_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0014_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0015_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0016_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:35:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:35:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:35:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Feb 2015 07:35:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:35:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:35:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9659a9171426e65d0ecb0004b26e66a8', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e6cde5f8b9607223ac7f6da2bf83b34c', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fa55cf4ae875d3a6b749490b226dc43f', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c9dd8f3c259e79ceea669a377f2eef37', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1e2977bc8f519c02830ed0422d88a06b', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3a6d17ec8f56ef942ad2627655e97341', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b8b927f07312243b81f54e9fe7baedb8', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5e841f46eebee0c3a19b8e66e5fda7c1', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '90a7fb362efc6770f4d0bd883095615b', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '95f3621913079377f76d206891229a9e', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '016e0cf021753dc2bea014c5fc2163b3', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f7adbb0dac73fda4ec530e56c4ecc994', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '447b621694b2a224edaba5f05ee9b857', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f3d7a354bce05b828f08670bfe6cabec', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9cdb8c5092b33169bdbf2aaa2494acd6', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:35:30', '2015-02-26 07:35:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:35:30', '2015-02-26 07:35:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:35:30', '2015-02-26 07:35:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b5d7e2090e2749caa0f53fb3c7ad2457', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '107a73b2fc6ae3fc3b4e309ef39872c7', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dc23a2541b379f382a983885bd7e096b', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '93346c060bf63a33a946f3d48527da08', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f720d3ed2af927f9506b83d4eb4c7e4c', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7bdc7c24434275d504c4ab96683221a4', '2015-02-26 07:35:30', '2015-02-26 07:35:30', 410780858)  (24.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0002_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0003_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0006_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0007_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0008_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0009_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0010_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0011_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0012_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0013_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0014_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0015_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0016_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:35:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:35:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:35:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Feb 2015 07:35:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:35:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:35:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c4e4d46063c08769e2b82b44aa5cee4c', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0e580b62371589f48dd62d4b269a44b9', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3b4714330a9904f24eebdbe19ec38d64', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7a7fb2e14456f9820cd5adc2257df841', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b15bda5836a8d81db6ff9077cc8919eb', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '001d6d2176a34ca526dd02c4079fbc40', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ef65b718901f37cf4c57f13a44c22092', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '35e47fa8a1b2540443f439db5dbf14b9', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd45a77527727139767d3ba3d0a547a8b', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a57e6b2febdc6a4db1be3cd4f293f91b', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '66d52e389b0c21ec81ccb3be01345112', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd1da23439750adedf9a22115982133a4', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4541f3c8e1076780294c607f0daead22', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9966723bc9c8edda3c4d396002310a55', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a9572270f4a489f2f76d147fe0d0017b', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:35:55', '2015-02-26 07:35:55', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:35:55', '2015-02-26 07:35:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:35:55', '2015-02-26 07:35:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0936d4314d998148714a2b19be0cfff0', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd36d97cd05e9e380562f44459619d31f', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'aedc86f49c52824a60bbc198512b6033', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8759b2a9d1e388b2c9993ebb9cbfe029', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5ee45c3aeec4074a1ed242662c826729', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a6d47f6ae6eecd54e1ba03ffb72b122f', '2015-02-26 07:35:55', '2015-02-26 07:35:55', 410780858)  (35.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0002_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0003_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0006_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0007_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0008_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0009_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0010_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0011_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0012_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0013_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0014_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0015_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0016_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.6ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:35:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:35:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:35:55 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Feb 2015 07:35:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:35:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:35:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'af76083a4afd85b6c4502325aecd42bc', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '094d09c1c60ba42982a399de3ce77b63', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0574fee04520dccada83771e213b3185', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e9cfb50a2abf2d8137d30069494b5080', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c95ef7882a4388b258581fd402b1b4f9', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b5e5a8730a222a8decb6e25b67b27e6', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5b92ef065177b34795cfe9f23c391b4e', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e98cb26d6f6265ff76d58de1ddf968ec', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '05aa8ffcbc73522dc085f641e52a6ed4', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8f8085f200b2d7a1e0db1ae4861bea0f', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'df3615eec5162205b9d278fac14fac52', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ce56a2d8625484abfa36d24cd51c84f9', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '664146f77faf3b05016abc195cdd28ea', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3fb7adffcba842f3768befeb88500f65', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e4a398ab5c54af9e5005b245811ea0a1', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:36:49', '2015-02-26 07:36:49', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:36:49', '2015-02-26 07:36:49', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:36:49', '2015-02-26 07:36:49', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '835ea8c9b605ad8e26bfc6dbcf21f175', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0fc5b774b037282f67aa261745b44980', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '93a3aec2282e4acade09e266ab3dc3e6', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'aa57354efcdb616184bf44c518b33899', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '776cb03ca542359016a862d7d56b3a0a', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0edcce58819282b6dd3a1cd8a91c790a', '2015-02-26 07:36:49', '2015-02-26 07:36:49', 410780858)  (15.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:36:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:36:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:36:49 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Feb 2015 07:36:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:36:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:36:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9a0a207bf2b8a246cb21c875b63d119a', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ef770b02d7f389d07bd2dc2672221ddd', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8527995a4263771ed4fd098f42fae983', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3ff11f32dc84c58c96d3e86be8e7ed74', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f25f0665ad45e2f99c5dceb573f3405c', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b3a88b00d631d4f0a80bb1909daa244', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a5193d9a047838ea9b4cac4d37d1d93d', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '79aa9b35187fa622be23ca4f32bb71ee', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cc31f98b24eb5ae9305af9291ac94ab0', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f9b38455082602626aef93f9d89cf30e', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '903ff99f2c3ec40529bff327780f3912', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5597795cd4d6dbefbf287c09b803bb3c', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 483796712) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '419ba30eb4b138dfcdecef437b6bfada', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '22fe43fd914535fd22268cb8bf61010b', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd8453c7295cc25b3197428dd338731cc', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:37:31', '2015-02-26 07:37:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:37:31', '2015-02-26 07:37:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:37:31', '2015-02-26 07:37:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2059d2628b51ea5002620abe57ddbf2c', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7316e1df1789805208c10ae07ae25904', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e3df09123267f9b02883e82c9aa5e5f9', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '51a975fbc3fcc0ec1fb8437251211238', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9145507575217401a95383f46f442d0e', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7ff18a5aa47233022037f4c521d0b2fe', '2015-02-26 07:37:31', '2015-02-26 07:37:31', 410780858)  (12.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:37:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:37:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:37:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Feb 2015 07:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:37:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:37:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b6ff0c9768bb64ca0302955c31693a60', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dbce10146f4d0ad39f46128d1b82ab5f', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '983a223d2352e0b8324a689d7a4990d4', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ca11f4bac9ce2c3cc09071e269357e82', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3e1e0a4aff8f8e190b12234f14384916', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bf39111cdd2ba32793f849c36ec76f2e', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4d19e48251f3cc461f8e5a3970306dba', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '19bc4accb986980f40d7670d2893a72a', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8dccafee0bfb83cd568ac3d3a9fd6088', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '10eb9a4619c4f95b90afcbc8693b01c8', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3694a89f05cbd8d6d1dfa50ca7ab8824', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b2b7598ef894df992e3c89227e14bf1e', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '283fe95be9cd64db9675f87b0f657048', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '07bdbcb8bda95303f58eeb7796518ea6', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a53855997e7b227096faea080af4c56f', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:38:20', '2015-02-26 07:38:20', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:38:20', '2015-02-26 07:38:20', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:38:20', '2015-02-26 07:38:20', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7629aafc4f1640aae760b6fdf452ea7e', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '397748985bf84e17cd0c0246770e8ce4', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ffec9f32639ff1978654b8fb932d4fe9', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9b408967a02ec3a7ecfb8b731a87a990', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ec535563218f2d26b4b0bf8851ef8cf3', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8a868690b3909e53fca71169e3fa3653', '2015-02-26 07:38:20', '2015-02-26 07:38:20', 410780858)  (14.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:38:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:38:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:38:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Feb 2015 07:38:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:38:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:38:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb6a0b12c24a65e9438f2d6ca2d96b70', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ceec8d857a3b20ed7acc24dd2daf5054', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ce521154a92c811a3bda79b75de52600', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e4432168573ffa3f17e3cde6a569422b', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a1f4dfd103e67314474b8f704fd4929e', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7332383e9f90acd1ea9daaaadd4bf8e2', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2e91dd8ad142bf4740152b5bcb746472', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fb53a2d69db22a89d09220d62a8e4cb0', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'dc568bdbbfe83342dfcafc5441e40b07', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '66f46e52b3ce5b0d4be400d6ca7341a3', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '190990f80200cc1c0f93c1ac0efe95fc', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '936face4392f803681969d0cd7a15511', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4b94e225605fddde2daa4e284398e4b0', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5ff69bea4065cf5e05f1d7c93aa99399', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b32d066a63b38eebb52875725e8dca8d', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:39:30', '2015-02-26 07:39:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:39:30', '2015-02-26 07:39:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:39:30', '2015-02-26 07:39:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'abf622f13f72e67fe82c29340f1d32e3', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f9787aeb50a760df1dd716bb704654ef', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fd952617abc1a115120e067ac40a2f8b', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a7df194268a4d7293287835c7899088f', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd576a5eae7c453c27b134eb995efbf31', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '922f0e4a756a3b22800f7c64dbb98d16', '2015-02-26 07:39:30', '2015-02-26 07:39:30', 410780858)  (23.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:39:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:39:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:39:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Feb 2015 07:39:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:39:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:39:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '964a01e8e2406893f84293e859c94374', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6920fbed871c730781a29f7234fce9e9', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '49110c7fa6076549d2630f9548684dbe', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5937d2689d124c77b4fb053119698925', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dea27e2e665a0073f7bd58ecd4b3d6cb', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2f68119bfb7a27e55b46bea35f7506a4', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '139110b1422a72b37517a871d244d32d', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c95ccb7a77076ad77773884abb76563b', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '604c552c577319fb0c1aca2a398e2093', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7a202e3c07698d1bf653fc514af89a7c', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2fe61041b4fb7d06fa6f509c4be9ef54', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f8f1b05aca14892301086e1661faa45e', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7c8944c7481a7e520e5d6596058ff93d', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6a727b296dccc8572bdae79187084d62', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '28456c69a8551e46015410b974194d0d', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:39:47', '2015-02-26 07:39:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:39:47', '2015-02-26 07:39:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:39:47', '2015-02-26 07:39:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd41f728823d9ed22806edfe78a8152b6', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '08c7af07aa058220693928747f2ea9c8', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '29d7bd09a384264afe6ffc3da5f4cb7c', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '472a360b47b08bd0589b3e7f6f792e58', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2bdbc67edaaf4ffce010b858ac54478f', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '57127089381cd685fad831dca9f6ac79', '2015-02-26 07:39:47', '2015-02-26 07:39:47', 410780858)  (40.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:39:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:39:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:39:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Feb 2015 07:39:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:39:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:39:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e7ff441b1e7923a3dccf41eec653e5b1', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b84226bb853606550e1cf0f2c4d26a3', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fecb845a12b2f29806b05144c6cc030d', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '37ed074c436265837657709a910ed641', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c86037f1fbb5afe61555e62f2e3d03e6', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1ea4150de25268f327669345df80ca79', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4de44007a2bd75eac695eaf88080423a', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '004c170048ddbb436d5b8323677392dd', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '629a372c8bb3f13ed81c2deccf71cc9e', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cc8e4b26ce47f001b24e2e8a2ddfe4c9', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c87885ee2e88defee669d44f5e93b610', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd2b23a1b8c9ed7ad5f7678d91174227d', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f7ab6ccc0943b72dc338a52040808302', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fd0c4aaa0ee85bf605fae56fec3f3882', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b1b1c7356c4ab9d73409938b6cec812c', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:41:11', '2015-02-26 07:41:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:41:11', '2015-02-26 07:41:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:41:11', '2015-02-26 07:41:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ccdc6ebb394014a61249a09d82d5cf44', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'aab4ee1c68dfc372caeeeb02d786799e', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e0e38c7c7ff3f9fbea33142a94544651', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4c4d7d74e8039bc7ebb5b6e669e4fe9c', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b5fe993e6c176aa024db00d79f00c3ae', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f6272997a24cb2f5b68263fbcd43ae0e', '2015-02-26 07:41:11', '2015-02-26 07:41:11', 410780858)  (12.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_knows its nested -----------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0004_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0005_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0007_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0008_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0009_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0010_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0011_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0012_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0013_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0014_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0015_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0016_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0017_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0018_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:41:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:41:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:41:11 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Feb 2015 07:41:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:41:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:41:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '13bb0120af288176240d84f3fb47500a', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c7c3455e732fb4fe99b5500e39072ba1', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1874fbb4c4fca43e1b3a51597316ee43', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f2e643686ca350b7a8a9c2ac3af5e36c', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '02c6bf53b42ce124bf7c66ceac8de01e', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2928f1d804852254f32018225edd1f4a', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '48469bf4419590c37b885a8a8bedb6d3', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '52d01ebacb206f61597ba5c0a4e1c261', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6fd94eb2a6f102a5acf2667820f6ffee', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '214a22efb7421369a6af17289a939722', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b83a93a13f7b66837b60cf31d054355e', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e717cf2d1b818d9e9b5f2736d88733fd', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cb93dc0b26294e30059697f7aea32725', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b27b88d988fc76166ef32d3f2ca72538', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bbae2d6b01ea8302ca1901d320a87224', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:44:53', '2015-02-26 07:44:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:44:53', '2015-02-26 07:44:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-02-26 07:44:53', '2015-02-26 07:44:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1740e40816703fb06bf4056a40bf8aef', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '498f5701f9f9d4cc950b263d3fb0b2f9', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b4ef48ce0eba487faefe70c427ebc3fd', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1a45f904deb19ed8f251ad5cbb2ae758', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '753ae0a74b3c0a0a868ed20192b4d2ca', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '32cf61026cd50f1f2ded7d5343c21b1c', '2015-02-26 07:44:53', '2015-02-26 07:44:53', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:44:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:44:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:44:53 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Feb 2015 07:44:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Feb 2015 07:44:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Feb 2015 07:44:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e8a6f5f5c01bc63fc9fc62edae33dcac', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0e8b2b13c09213ad0e4fffb0af21109b', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '47634d3c7caf399eb6875399359aa452', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '34843c1650b5cfd808b2b76747529694', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9803a304fc3839388091c141934d12af', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cfce4e306aa29eb409f18e96f31c2e6b', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1319ab142d11bae327ee2bf1cfab3b6c', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'eaf9af6eb1252259b85c2d9e7310f1a4', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '13e1942973ba68d748b08e41ddfaae87', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7dde5204f450c9656e999cca49ba56f3', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7623e0933c047393dbf4f80676abb145', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '52a99086e702cdd6d343a6b68f10562a', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ad877093b2699f806a4e16a47c078e51', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4f638d50fa043b084f576c5380370c8f', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2c5c335de6ffc7a6151f3e91154989cf', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:06:07', '2015-03-01 10:06:07', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:06:07', '2015-03-01 10:06:07', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:06:07', '2015-03-01 10:06:07', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7bf41b9e3e82b436a75300695befc454', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '33cb2b371433c081fa4bcb27f2674da6', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ade64b283adb76ec1e7fff75bf310094', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a7f5b6208303669debbc5d1b7dc41567', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a7e31138bd988e6ae4b137f4caff255f', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '67ad655bca15d1aa2dfe95d510a877bd', '2015-03-01 10:06:07', '2015-03-01 10:06:07', 410780858)  (32.4ms) commit transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:06:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:06:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:06:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:06:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:06:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:06:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTires (20150301100658)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "tires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "car_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.2ms) CREATE INDEX "index_tires_on_user_id" ON "tires" ("user_id")  (0.1ms) CREATE INDEX "index_tires_on_car_id" ON "tires" ("car_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150301100658"]]  (13.8ms) commit transaction Migrating to CreateCars (20150301100722)  (0.1ms) begin transaction  (1.2ms) CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.5ms) CREATE INDEX "index_cars_on_user_id" ON "cars" ("user_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150301100722"]]  (22.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.6ms) begin transaction ------------------- CarTest: test_valid -------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e428777fb0b6a68371f4550649986ef5', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d80da64d457661998fa80974e1a27a9', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ce666754af1b39b77ae41e4b1cb83e45', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '54da9b737bebd08b99cdd9152d6baab9', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e53a75c3570bc1ead463c5869080a260', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '806142aefbc566ea4e58e22317423839', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e6908d1b28609e06aacb6575170c4a62', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f15741859b12c901a7352a826237e7aa', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c394bd63a77eec61b5cf0b44252c033a', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 966629572) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '544b5e6063cca3ec426962a5cf294a13', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c9adc228570655a47cad0b978db7a150', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '36c9474478b52b42bd415889f584df90', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8a6ce9c02cf38d25f12dfc5e51356e9d', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fc76299052ff8ebc030ace55da35922c', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '32b3c5bf4b672b1ebf353e1c107d553a', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:10:29', '2015-03-01 10:10:29', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:10:29', '2015-03-01 10:10:29', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:10:29', '2015-03-01 10:10:29', 619379998) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5d7bc7353ae1c06e734f87024eecaf3d', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a24fbeaacb3f954326782db11ab77498', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2a61225a777e7bb71ebd7346040aa161', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4cef9832f3ef4a4065f313e4e00fc179', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1876c2284d41968b5cfbb81811eb0169', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8fe146b2d375728422a9398d376019ad', '2015-03-01 10:10:29', '2015-03-01 10:10:29', 410780858)  (17.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:10:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:10:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:10:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:10:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:10:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:10:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------- TireTest: test_valid --------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd982dfbb6500ed774163a5d73a384063', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8a3f472bd0763357b51d686362c1bf06', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a5ce7d916ac0d6b5b202f7fb4f8e4e2a', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '49ccd065adb54df27fca9ac09de861b8', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9dc113c2fd9bf5c9af9d1527fb6c39ab', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd4383727fabb2d613ad0c45cb6c5afc6', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9f458da88b036585da5c7179aa09eb0a', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5b9ad6854b0c6151a335c9f9f291281f', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd42b3e6e0cee6b09544c7ea8948ddf0c', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 980190962) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 298486374) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a5c912672c480fd7594119bf3357163d', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '11a014a3d6ed8d07f55db392e4670c0d', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '739bc1fc7d3bc1b4524a47816ba083b8', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd8f85e36182545b3eef43a17a6aa3981', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '034e81b8308e9a75b0939d51ea7eff4f', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ed74627aea2ce94d6ad3eb8509adfcfa', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:11:15', '2015-03-01 10:11:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:11:15', '2015-03-01 10:11:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:11:15', '2015-03-01 10:11:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 980190962) Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 298486374) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c4bc993d1b4f3dd70ec0280802fcf850', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8576f30e39ffd4e6c62382a95270d0ee', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a1e3f93c3d1821aff1ad60be71d0a945', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b09e6016f4d6f28b715a368c5dd838df', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5de9387f98973a99cd1d9ddd047e83af', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '684686ad9bcbb67e5e883de42c782500', '2015-03-01 10:11:15', '2015-03-01 10:11:15', 410780858)  (31.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (3.4ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:11:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:11:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:11:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:11:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:11:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:11:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '76fabada81c9ad9c13236c316cf87974', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e4fea18a7c7abbbf8886728118fb9824', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4a140a76672d0d42a7f08ea75d3ebacc', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3264582fb62f76ecc9346130280bcaf2', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b75236f267b12cd17859ac3d5bf6588e', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ee6b575090f9a89a68b5a054f33515f4', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '72c0378e10e18c451ceb3ea172131c33', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '86d98b39476be41fd2ca246e87de6408', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c0d7ac5aa57c5154263718ca514332a8', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '11d2e1ddaf58e6f4ab64fa1104228250', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'aae4b234cc4e5e2d6b18c2f7ea508625', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '96b8ac8df35fc6b0ae8a0b670713bd14', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '15e1c384ae663eecbe2f600c826f74f0', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '17db87c086b61d8f765b239542c3e288', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1bb2b47116ed4c068e2663b7954b090d', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:14:52', '2015-03-01 10:14:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:14:52', '2015-03-01 10:14:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:14:52', '2015-03-01 10:14:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 980190962) Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 298486374) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '082b5733e89371ec774fddfb1be5652f', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0f57ffea0593bc04f93b9f1e35552442', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4dbecbea7a09c8f24a3e7c1bd59c06e6', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7c07d0981f9c56d76b10309f8390cd3b', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '619245313f5ceeb55f0024e3029a6763', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '90c6cde3a68e752945f17a47af86bfed', '2015-03-01 10:14:52', '2015-03-01 10:14:52', 410780858)  (29.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:14:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:14:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:14:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:14:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:14:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:14:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '87b39a335389a386d93a7f6b8837d9f8', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '987bc025189f389e2420cd9caf5d64af', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '44a6d0c3eab234d5f0245721c7d8a7d5', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4008f67277edd54236a96f36f414f66a', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '983aac1aa29bca8d2c0b09ec6672f1dd', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '58b27bfc2646c7a8c232303b5f0b5722', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e79e75f5a3d5e176660511a8e98a77a7', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e7c522bc51c4577dc9fcee34fcb41e82', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3e73a724d8c3abeaa483686df64b74af', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '250d98fcd313ee1c47dfec2735ac8916', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8cd0dc335f6862fe1f33194c2432fc27', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dde842bc3e01a9645c2b88ae16bef660', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5d494e9b2ccc6a30e5d22908baf29df2', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dbf8cc0ba4f7fcf140b924a3423040fc', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4e59c629bcba580f3bd21f9a6d2ab09e', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:16:30', '2015-03-01 10:16:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:16:30', '2015-03-01 10:16:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:16:30', '2015-03-01 10:16:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 980190962) Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 298486374) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bd80509df67cec7c48f0c7565c08996a', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b7167987d7e7912452a7f7ef4188f4d6', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4075bbf89c8ff895d580635466ee7dd5', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4be153fe19dec46f61d3b234866c64b5', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bcdb70ad1a99c94c328c23e81ca555d2', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0700813522a8b3c1e6dcf32f2367b4d7', '2015-03-01 10:16:30', '2015-03-01 10:16:30', 410780858)  (18.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:16:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:16:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:16:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:16:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:16:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:16:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '916fbada54699d10933d144864b76c56', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c69ac8dba3a6272b5ff166a083933392', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9e73ec911e36566a9306865580043533', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '764a985b50c68b5d77504ac780965304', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '87512dd370a5c362dcee68778ec4a5bd', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '23138e74839f164c394cc98223733806', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f461345b1906957b4ffe12d43cf66183', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3e8531ea7b43a2fa56d82794c4c8926d', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '94ddd2967b3ee80ccfc4a9ca4c8db8f3', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'af74c3baf5aebb554ed857d31141154c', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4eb07407bf266b2638455cdcd3e8b8f7', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5f373014e195c4fa524b4573962ae04b', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2cc29d0f8a0564ee70461121bf2af36e', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1159b1d341bf18cad45479d3dc481aad', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e1073147c5b74166fdd748858a6179ea', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:17:15', '2015-03-01 10:17:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:17:15', '2015-03-01 10:17:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:17:15', '2015-03-01 10:17:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 980190962) Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id") VALUES ('MyString', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 298486374) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '699ab3b004c57e2bf1f24e6b3f106fb6', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd2cc3311c8064fb7f523068f63b721d9', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4725d59e6c2adc5fa3f1a342868fe207', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1b9e3136a422af38d96ac80698cb5a33', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd039836331dacf9518f023528258443f', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b9c4dcd76446613fce0f0ada533be59b', '2015-03-01 10:17:15', '2015-03-01 10:17:15', 410780858)  (21.7ms) commit transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:17:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:17:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:17:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:17:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:17:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:17:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e29298d7b71b178915f4b67addd2e579', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f12d62640718dfdc9f56721a665c0b93', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b99ec64ebb40eebbc308889a2ae6e23', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '12567df367f5245e9beea7bd56f462fd', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1cd364312c477c370d545dc179d643b8', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c46968438c1f7ad4bcdf5e5f92654c60', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '12c9fd76a19494395da782477ce046d7', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd4a5c3801b8ef66341bd8ec5a6cf6617', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd8c8c6bb5615d32af8e2595eda843453', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5deda3d8e3cfd9e9cac88f6a1d56b05f', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7b29e45a71cbcf55093769f366d79ce3', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6eec825c4e7a974ff0fbb9668c8cd1dc', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3a5b96fc4da5ecd9a559209e8183cb10', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fdf4ee7394d4c9c91133b893b66e9b22', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dd4bab579c533fe59fcc9907040e9b7b', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:18:22', '2015-03-01 10:18:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:18:22', '2015-03-01 10:18:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:18:22', '2015-03-01 10:18:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c8f9e2349873a74976086e4098000e31', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b83ee831cfdf6933bcef3ea9de162aea', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c9edbf61156fa4622202ed3dce0a76c2', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4311dc798963eea3cedef564e853107f', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c72ca9bf81e5567cb027b222beec866a', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f3828150b402366bb55c52b16d8a69a1', '2015-03-01 10:18:22', '2015-03-01 10:18:22', 410780858)  (16.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:18:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:18:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:18:22 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:18:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:18:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:18:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646738]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cb9cd4362b6c9c35642824a738efe49d', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6dd1ade730756d8d3082ccac6fac480e', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8f8615dc91227d3efbedc317c5a28b8c', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '026adc98e36e6aa387f9aa4e9cdb25fe', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f7505f4c7345b7505ab8aa7856fddf59', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b8a6b0564b3f127fcb274cccf5fbe95a', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3ab9aca409f464cd70776924d57c25f5', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cd0a20b8d9a0c6a3996949f022a1f1a6', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8acc9adde8c195026e91e93d0acb3615', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1232db4ee2df627da6343d443310589e', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ac1258dceb81b9504482fc0c038c9599', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b2933c5a4c9b1e43398a05ec3343386c', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e8255060b8f3553015f95db1cee7839d', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7745a67f527344c7c657410baee81191', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bdc3b8825b2400ead748f9baa71a9b4c', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:19:18', '2015-03-01 10:19:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:19:18', '2015-03-01 10:19:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:19:18', '2015-03-01 10:19:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7810b22045aba4e52c8ddc5cb66dc540', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0257b3202567d0371718f9faab1ff2b8', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'aa174b1c36968a689f4348a165a149f6', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fdf4a81abb01cf9b948286663bc181cf', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3f929cfb8323294bca600eda51ed27ad', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3abb8a98abf9d841ac4b0ef7edc0545e', '2015-03-01 10:19:18', '2015-03-01 10:19:18', 410780858)  (14.8ms) commit transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (2.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:19:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:19:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:19:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:19:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:19:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:19:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8e4413c91b3bd6149c89fa10469f09f4', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0c90059dc4f1de8015a768dbc3816412', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f6d9af6e2d33dac7e8414bd238bd178e', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2f494e1700b1c6521e156115fd306e0e', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '568cfb3acc6ee981880cc95b2bcca765', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '770a77638123d2163e9b4f2a393e3a33', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a3297beec7c11721e744fdf273d4ef99', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c751138f841174204ffeec32d827a9b4', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e5080b2b690d559f05fc3aaef693c4e4', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '52e8aae238fa7e5d8b7b6260cc80a279', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '89ce63460dd442f2126a8ea1b4f9024f', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c06572a4e79a5b5881af1e807fa1c28a', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fce10aa4181b2b891caa2586e228734d', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e4abe2aa389fa72107bd53329cddd130', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '677be62449c2798adf4f53432781cc0b', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:19:36', '2015-03-01 10:19:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:19:36', '2015-03-01 10:19:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:19:36', '2015-03-01 10:19:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9878ebe49e51d0c622a5b897849c9a30', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8db2d9158bcbce70d16f48aa7d7dc229', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '88d184c5c8a2b201817e8360e23cb5ca', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e7e5772ab163750ec247a1e294f15028', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '394bca0c5dfdef3a2118b69f1b37b484', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2bb0ecc5495a0ecc09ff0e3ae0811235', '2015-03-01 10:19:36', '2015-03-01 10:19:36', 410780858)  (12.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:19:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:19:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:19:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:19:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:19:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:19:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646738]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb00f0eade55923e1a0fec9192aea149', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62ca7d7ecb9f314370ae53c9df258497', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd0d75a97415e27154a77c54c5f9d58db', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c4ddb4bf1b4da4114d13b4c2dd58a53d', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4adb2b2461a6152e2c94a5ee8144b3c3', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3c5041bd63482ad0f5ac36973a3f526c', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1bd4d35ca5717e4d089e3cac3cc25bae', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'eb65b75c6e4ef693e963b1df507903c1', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0ee53d3f94048d99b7702a4526251400', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8fa74c4acc2cdacb9c8b90fa68acb8ce', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '84031739aafd4f273ebd4ceb6c27045f', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1194a96282a86011d29e4085d9963a82', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'af805d47d6d00c3dc2257d802adeca1b', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c72c146f1ded870c831e5c4a6fbc14a0', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ac2dae974de8c1b8f49d76eda8e22833', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:20:41', '2015-03-01 10:20:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:20:41', '2015-03-01 10:20:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:20:41', '2015-03-01 10:20:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '22f90bb497299e174c28acf86d8d91dd', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b9d40db69822eac78b5200cc8841fe90', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '84e99a3ffda3e92f3d0b8cb9a515b714', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c86baad5dd0d98289236e759f9dd1d1a', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '38e87d772206bfad0c50a6b735da9d7c', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '003fa272ec6152833de2eb4c9a60f04f', '2015-03-01 10:20:41', '2015-03-01 10:20:41', 410780858)  (22.1ms) commit transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:20:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:20:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:20:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:20:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:20:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:20:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '15b0b75424f23273d1076b55f5417f0b', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9d5cb2b2496379a7943f48bbcd5a4767', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '37294f58be058ba48a44006ed5cf29e4', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '265e3ecaf7a1f96b64c86619643c8795', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '378349020dd1db3fec3569d0d8d68dfb', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4085c39d72eb86593b8a91849d85b200', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6f9796ed70ed16d50140d4b7a3e9453b', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd4d2bf83bc17552322e633a64d5c4d89', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8b0c2bc3d8668a950e93e2f56dc75367', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ac5b4a53345bc22e93f27ee36881e1cf', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9ef37294f572166cf4cc2791a5e367cf', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fa363eac8fa8ffd36de9348b8b75ceaf', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3a9d79914c0e97328ee0810b0b7c8923', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fda7ce077eb34327db25a181a046f1c7', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f8ae3d1d5bf4a228df5adbcc4f9ca6f1', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 762608046) Fixture Delete (3.6ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:26:15', '2015-03-01 10:26:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:26:15', '2015-03-01 10:26:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:26:15', '2015-03-01 10:26:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '934eccdc0edc0039dec9ab3af4f809f7', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '724579794a9ca2d99c2d1ec24a764de7', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '85a16d1d2cfeb38eaf017f0ea68f3ff6', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '50e2cf152410f4e56f259a46a7dd1743', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7d6bd315efd830da6999db9f6b5802c2', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3fc349d2d6f0ea1f188befc44f7396f9', '2015-03-01 10:26:15', '2015-03-01 10:26:15', 410780858)  (27.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:26:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:26:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:26:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:26:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:26:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:26:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '041815253996711190e750f370a01623', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fa6407b3c29a44ece6ed74e2fbb6b0da', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'afd92f90c50f391a2c91828b39418d66', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '056e1e7d949907d45fa50c916c9cb792', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd30dc9aeb83816103e4431c73e3e90c7', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '76c5df99863d7325aa20b6fd66dad551', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f334d663f3a6661231ab593166cefdb7', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '48a8077cc9d9a4bca4fca533a984f4f8', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd6e38b2d6d9221a2a4ddb556c33247c1', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c98ad9a0e6218c51b4e4750df6c77982', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3be8a2131b5011a5cf946cdc7c5de058', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '038ca371722d0e42fa99f068cadbd41c', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '49db4986e28198f0c726d91d0f084be3', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '876fe304c31a12693099d0890e2cad54', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8c1db9fdf8bcdaabe82a7a7d7b3cafae', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:27:29', '2015-03-01 10:27:29', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:27:29', '2015-03-01 10:27:29', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:27:29', '2015-03-01 10:27:29', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '69fc56225d126bd57176ab5e99909cd6', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '81083bb0efe0929390f55dcd1534719f', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6e3d880d948bbc3caf4433b893dafba4', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd5d2db9538dd0c5f891f04e1d6554dfa', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7de7afe943083db77a6319d50adab3a2', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '80455388db1c89a7335de7d27b595e90', '2015-03-01 10:27:29', '2015-03-01 10:27:29', 410780858)  (27.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (2.9ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:27:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:27:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:27:29 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:27:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:27:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:27:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2e8ebb74e105f0b8a05c7156c9ae3ac8', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'df87e071293a3bc5b86b531ee3ad332c', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c73f3f4741183944aa52243de9a97ad2', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4cf047aa12a37c0c2c85b7a430d3fa87', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '334d7a99b36897547c7ec2dfc1119b63', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5db2292254f9d5f7a53051a583c2c11', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a5af55b9be9dcea1a2a27138fe3751db', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5c463ec244ba582fdba0c0e0517baed1', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7222e80edfab5f840b4afb632877f93f', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '69caef8258f37e50aa991cb49dbe362a', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8f5a4ad7c2b11e3a0b91b1d6c6ab70f9', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bb13d6d96e338f27fd38c50c2f4da11c', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2234581ac3f342d1d97a81451c477f4c', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '013b2a6d5e1efdb2beac9e496969eae4', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '48b16a9d9f26ceee2a7a4f7677e71e8f', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:29:44', '2015-03-01 10:29:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:29:44', '2015-03-01 10:29:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:29:44', '2015-03-01 10:29:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '89e695b07965f66d3284e0f76bb18617', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ce8df45daf681d49f5ac7a465256367d', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '851886e5274a60cce94296dd981c310f', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '29115bc9d65d080b349dfc04430e3362', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3978532e367a7f1c64b849a88428ec25', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '22fe8adeb413030f29c292abe3017f96', '2015-03-01 10:29:44', '2015-03-01 10:29:44', 410780858)  (15.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:29:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:29:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:29:45 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:29:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:29:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:29:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e05f976ecaaffa560106292ca083a643', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2bcf62f4701c9084ee75b0137e46471e', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e1cf5994fd0e8e2ec0bce433cc68790d', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8544c2363bc0275bf77bda61b833577a', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '393d96758604e46ca8bc0a566d44201e', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0907f8b07447e08b628aba2cc0831b4c', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fc1c53735624c2753782ec56eb0c01b7', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e6991e2db27f5dfd641a52728d70608a', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b8ee363a627f1c5a5023c4998884afd9', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '521f2149066c917ee6081fba3b333d05', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '86ae1ac7e3873cf469ecfcac596d7b8b', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '39a11984e5d76d8399106d60366d844a', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '81f33830abe0e179ee3aef67f8aa645e', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d1a990d866414e339a75ee8a32a67fc', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '29bfdd95bdb871cfa7a06336d3e2ce53', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:30:21', '2015-03-01 10:30:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:30:21', '2015-03-01 10:30:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:30:21', '2015-03-01 10:30:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.2ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3f5c2c31f7a4922e9bf10280af6896f3', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3f0b1f145336db78099f8eb2d898a7d7', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5361f319c7a33623d7b79a9c57321341', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a77fac5383197a5f8a99f319f6f222c7', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3b014c1a5c89a35b1d2d82c48ab7c0fb', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f3159f7dcdcd6a3f3c880beb317b6130', '2015-03-01 10:30:21', '2015-03-01 10:30:21', 410780858)  (19.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:30:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:30:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:30:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:30:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:30:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:30:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ef4b5eaae11bdb16c95dfc18cd6b914f', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8bea5601136d1056f78ec403853ca404', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f23ddb439fb998a4d83848c4ba2e9a7c', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9a1b5078673e6a6568da28cd2014dfaf', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8eb136b7344c9e9453b591243a13f7ad', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c0ff34096874f9399aab6f57758a2ac9', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9850503937bea500bd25e1a16e7c9966', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4feaccfd591cb25b746eae364922c348', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4de46bb5c1d5d99a49096cd2d940d016', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ddb818d57a1062a42d8cbf84ba5f5e38', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '06ec24e32868392f75534f8295d3a255', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '69120c49e6fd38cfa77c0ec7ea5b9a9c', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cd4e793f31f42975311a8a7596b709fd', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e7a81694b5669d5b0eea59a4c934f001', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd932a5b4bd4a64d081131be3f4997724', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:38:59', '2015-03-01 10:38:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:38:59', '2015-03-01 10:38:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:38:59', '2015-03-01 10:38:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dc54ee09e1a9dcdbb2d639850c4954eb', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7fd9790ee309cf3955ef315a064f07c9', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a4ce679afc30b411a76c194860e4991a', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4ad60672bd78f9e454d819406f2391ad', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9cdfc25f03db2516b408642631b79192', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a5e4c1bae1a146a27e92aeec8c9d4308', '2015-03-01 10:38:59', '2015-03-01 10:38:59', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:38:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:38:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:38:59 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:38:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:38:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 336964236]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6b0795d9973ba035be8233619ccb150c', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '180dcefbde079bc40c254ec58a95a37a', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '43cd69f81d0bafec240087118d1600f2', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a4ad57b8154d38a8905f160df3889ebc', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'da2c2ffb53d7a236e648684770453347', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e74b5af54740c8f7b4fabbd105cab3a3', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8b6c82e5088c373360efb6703c2498ab', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0a0f416efb298b44563eef4f45b31c7a', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c936e288656280e949013ec46d7a2c7c', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0a4092f83056baec7196b69bc654e4f9', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3f3989c07f625323e5faa668df2df4d8', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f3dc00b6ff7788a6c5b8ca1884382919', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6081a63dab7c1e7956e2e7e394ecfe44', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '171752e8c456a7912a0a6f75415fa0b1', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd2ca7986a351278161b95d71209e2192', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:39:45', '2015-03-01 10:39:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:39:45', '2015-03-01 10:39:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:39:45', '2015-03-01 10:39:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '29c26b8de186f4b5078cb2c7fb14a512', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '217aa715ff1a96d08783bd0c3130ef38', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8366ce1ab5a5ae4080e0ddf87bc5377a', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6ca12be95870d247a56e20c94d32da62', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1d7ac41fa23e80514efdd4bd2fb6f522', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd2867dcadfdab7d83011b783c0e37bd4', '2015-03-01 10:39:45', '2015-03-01 10:39:45', 410780858)  (27.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:39:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:39:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:39:45 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:39:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:39:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:39:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = 336964236 Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = 849808553  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '81816eb8f9f5bd66ed8f2f76384343f2', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3101570607e4223653026a1fd466ce07', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '571783abab301feb093d919067a4a223', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4bb80b08a47de3026134ff13ba0e2af1', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aab38af04523152eebb02e1fbe7879f0', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '93d8dd597ea2aa647f2e123be3429585', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ff567a7480e7369291f3ebf9bd773ded', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0493c8839044517d8f26453e7c6457f5', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ac95edab7ab337b4f47f26c09bad742c', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd91cfc608c96d983106c9729c80d9a3f', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd4f44a7ef20cbc0a9578d2da7d995b23', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '762e7d3e41e1e45462d55fa3445a039b', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4501c02833f2cff69869eedcdccf4af5', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8c2728e10440aae55a399edefc8d3cb1', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3585a38fee0e6901e0424a61ffa5d7b8', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:40:34', '2015-03-01 10:40:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:40:34', '2015-03-01 10:40:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:40:34', '2015-03-01 10:40:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ba61d839721a71961528a359b3d1b1bb', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fd248af14e2c669122e5c5fbba5ca0b3', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1d04904e587e3e0a86a90aab92d0fae8', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b0cf2551e59a431756210f682f8ccc58', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f56c43c61f88faa68cb005082f57a26b', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5457d7f8dfca612faa6d776b62c2b033', '2015-03-01 10:40:34', '2015-03-01 10:40:34', 410780858)  (12.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:40:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:40:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:40:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:40:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:40:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:40:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 336964236]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '33009018e3dd54f7bc82276faf3affc3', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc565200f2d751c4778a777858156dc3', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a6fbf2301dd3b51a7fd4b621d0fd89ca', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '193440924f4f5893f53acab045d0c7b3', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd6731e95b017dd4c933915ea37f21184', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5e99dd1cc178b27b46a577f7200a03e8', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a8e8347548eed1bacd126b8eac80bc45', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6e6dd802596837045fe53be56c0dd83a', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b5ae7334fa55f461576de176c83339a8', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '11b6cfc81d9e5019bf8673a85463d3e9', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ab05f6de08171fad0f7422b3b839bd82', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a6a011547499653aca0cd3af21b2c7b7', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '61291736b11013fe034eef0e801f0d4e', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4c8a66b930497f5696778637603285c0', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8f145d323f2dcfd5158fb65fd77a2c97', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (1, '2015-03-01 10:46:35', '2015-03-01 10:46:35') Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:46:35', '2015-03-01 10:46:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:46:35', '2015-03-01 10:46:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cf581fbf7c3890747242137cb3e0d708', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '57bca2df4479e618c353191c9bdff26f', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '86ad76525c2d4a8e4704de4e2ca370bc', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bf86a7d2f83e55c1b03665cfb540903f', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '01dd436f0ebbb49a00b432210dc9b2da', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd736fad47ad92176bca3a2dd7d0abaf5', '2015-03-01 10:46:35', '2015-03-01 10:46:35', 410780858)  (24.8ms) commit transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:46:35 UTC +00:00], ["profileable_id", 1], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:46:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:46:35 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:46:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:46:35 UTC +00:00], ["profileable_id", 1], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:46:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 336964236]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '18e9d965117fb25a19b6e7a753f809f3', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3974ae3e8b5fd7199b81f92a16d21fb6', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ca075288edbb847ac1e986502834472e', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6b38593f3cbcece6912ec55b84c821f8', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cfecc7037842d121ef1fc6ebb6d823bf', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '33e5aaa87f007405d21d3c8eb911e67f', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f0cec186b5e8392e7c0166bdaa0da89f', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c24cc93964a41acbdcf82de97bca98d9', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a914fac072198e58c954a8476439c9fd', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '84a80f00de00341a740b6ba25a2253b8', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9fd888537c159a05c4af67a8957b6eb9', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5415e0743164d70de7365914e13ea52f', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9e37749db1c69d1f234355a6c2d43789', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cd2fda8558241c8a11af6c99702962e8', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e9d4322595b9e7f0c306d74b1466d3f9', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:46:54', '2015-03-01 10:46:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:46:54', '2015-03-01 10:46:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:46:54', '2015-03-01 10:46:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7c5ca36471473266d4389b6a9fb37118', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f8936714cc7b753c2211b51bfc8f43db', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '46b65d3763dcbdc302504cf2adcc890b', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9dcb73731e4060a5430e24e70d43dcf1', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6e07f36bb654e5033d42b0a7e5715b72', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f1602bced1e0a96bb47a7164e016f4f0', '2015-03-01 10:46:54', '2015-03-01 10:46:54', 410780858)  (20.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (2.7ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:46:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:46:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:46:54 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:46:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:46:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:46:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 336964236]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1a71671fff14633e40d965981696aaef', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd9276517c31a500584b54c01f48a3167', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '11a5b218a52198b9219a8d51aed2a3d6', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '361c3bc70551df4b1fde797e45ba475e', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '876f19f67bca2f8712f575fe876a70f0', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3797575a44f57c4f3934c4992d08abc8', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f230f29d0f37bd01b99db0117a004b88', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0b92cab7c49efa88642ca013912fc9e6', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2725ea017a5054ddc777dd697bf2913b', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f74b9a79b9f523b687a1f21343c031f9', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '115d55ae4976d920ae34c6e6116787e3', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c074e734e4f3632ba3d9ffdb02bedd84', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e5e4d7ec7b66721db2320df302a60bb8', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '26e91b148121d8c23619279009be04d7', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7ea1fcad9f23214f17519b577879de0d', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:47:48', '2015-03-01 10:47:48', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:47:48', '2015-03-01 10:47:48', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:47:48', '2015-03-01 10:47:48', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f2e063f430b6901ae7aac9c223210c90', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '369ca082027f9655bb4d35e09ed64c89', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f9684d4e9b456c6516cae1bb94635aa2', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd9f65cb29303e83d85e40dce69b57701', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3b6fb3b990a49a95eca5f6e70b2a2c25', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6632f067ab462311c0ca605b4d1bd8c6', '2015-03-01 10:47:48', '2015-03-01 10:47:48', 410780858)  (13.9ms) commit transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:47:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:47:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:47:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:47:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:47:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:47:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 336964236]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cb4915a663ac4fd36226f14efd7069c4', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '83f063df909d9f47f355f473dfd864e2', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '67813ebf74958554cb8c89d4b184933f', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '14c8fb5ab5358b03a313daf8877c4436', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7b2cd59dce54d253c1684fb63342d8b8', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7ae8cdbd7140b544cd17441adf7231c8', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '835446f72c99ba10ea702a31b18cb6a6', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9f454cec743901ea54bff4268249fbcc', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '827f0b8022e265490fc3cbe1cc08cad9', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a5c545f674f7fe899be3bf98bcb5441f', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '22c67845d3f251d48aa90dcb0ee34a8d', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f5bad29631e62c79e42cbe8be952b8b8', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f83480c83ecf99054213ccbc73466ef0', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '08802daacdd881e459c6f5777cd2cc21', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd6501b743f0c9aa02c4f3cb54d94743e', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:48:06', '2015-03-01 10:48:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:48:06', '2015-03-01 10:48:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:48:06', '2015-03-01 10:48:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1d97a4b0700d280422e8bf8246839240', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd1143fa681bc470e9590601d3ebad31f', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9b0eb6fe2b51d30efd935b92810f467c', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a0efd7e8885ae02a48d1a0de29d587ac', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a4c1c8634e31d2d74f57deadf73cf32e', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ad766b9373f8e6e375f9841668c3cf26', '2015-03-01 10:48:06', '2015-03-01 10:48:06', 410780858)  (13.5ms) commit transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:48:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:48:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:48:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:48:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:48:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:48:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 336964236]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c7793d0ecd561f6c0a6ef15aed832a9f', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ea8ec2b28cbaf6ec88af59668b5a9d50', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f83b26b1849e5745738a8a71d4effe5', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2a8dedd44e472434cba5dfd9f2b64329', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '372da1d16f1858338d525cda4b4703da', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '692799e70de783e8970d93db1a2facb2', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c5246a77e17d3e4b19bf6e6c42dd7391', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2c1b627133734d178e727e88c8305a8e', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '67e9209c0fcc2578891263df1dcc332f', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0654132eec2fd2cbd7d59714bd1f2ff6', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3d34a34db3e22d15979f56abd2582ff7', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '207c2c006cdbfdb5394d514e72a12ad3', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cd59b2b5f78b6c18c725962744b82fa5', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fcdc4806fd98d1739dfe6ac2e98b4cd9', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'edbbb5c3b51c925be106472ea6c62c38', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (1, '2015-03-01 10:50:12', '2015-03-01 10:50:12') Fixture Insert (0.1ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (2, '2015-03-01 10:50:12', '2015-03-01 10:50:12') Fixture Insert (0.1ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (3, '2015-03-01 10:50:12', '2015-03-01 10:50:12') Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cc6e326c6e4a9b6b480d2beed08788be', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '11891588cbffe5b17f49856e8bdce1e7', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd3c888b2fd1bd431c393107ca1afdc19', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '96a7af41329b565b5ad8ec1e16bf324c', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '27d34f9121bb1f93949fd8e9ea9244d2', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5ceb1421b87d5dc62eeab100b80c39c3', '2015-03-01 10:50:12', '2015-03-01 10:50:12', 410780858)  (39.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["profileable_id", 2], ["profileable_type", "User"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:50:12 UTC +00:00], ["profileable_id", 1], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:50:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:50:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:50:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:50:12 UTC +00:00], ["profileable_id", 1], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:50:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 336964236]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cfeef8dc9fd95d44c3b136bfe579b353', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '03532fb7baa3db3499aedb26d65ee71a', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bab1dc1694615b359d794dde52fe5858', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '43119422b3884572b6c10c1162ac044b', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '75ea7d1bc85f4fad6a46bb7ee5388199', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f378ad80697d93ae74686049ed4867a9', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '11c850ab06f4a71b86fde8e81f9cc13f', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a0f35ab0cdd86a6ad7a44ed62aca20cd', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0fd141ea92f9a546991dbc0df5e004d7', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '685940ffb14a7c5400dd76d0d32800bd', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6f79c9f78fad732823bff8ce104b120a', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '10f603a7f1f93cecbb9164f66af5dc24', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9457443e77a15b4d139b50de5fa007c6', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b47c2ad94a285eced66615019a50cac9', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '08a3efd36a880601484967262411d3e4', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:51:27', '2015-03-01 10:51:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:51:27', '2015-03-01 10:51:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:51:27', '2015-03-01 10:51:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bcaa8f4cbb37bdc368273f885096ee04', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '32acafd2e14084228fb14cc7e069d545', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '300c7092d44cb6a593225b3ed1d68536', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ee65a933509f6a8fb4c474b8fef0be98', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ee414c0c12ff026c4579ac1902805fe3', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '31c81e865f446bad69455819d4bcfdb3', '2015-03-01 10:51:27', '2015-03-01 10:51:27', 410780858)  (12.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:51:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:51:28 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:51:28 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:51:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:51:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:51:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 336964236]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '075b24780daf7c8499b3ff980c146545', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b6ca8aa1fd2ed8830c5494b8d49bfa1f', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3aefb3ed74a6e1daab143d827b247065', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0b6c981e09cf2325a38b55ca1fab8acc', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fbefe5142efdf9e044cafa677ee6bee1', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '242b54e862f2f486e7162b5329dceb42', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '968c1073fa511d649d376af6af209e84', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4a06c37843bc406c867424677f0eb683', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fac07634b4bc96bd59b48c637fddd251', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cabb97f927a43abd007de93a948d358a', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '65f43dd41a4c1eb42306fdaf78e7a41d', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2db5db7d52f22e720757013053034c7e', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '932b710bf63a04c500d475fb1dbe0e7a', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0ff16868f6cd3043ab216cfbe9ae1fee', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b87d65d8cfb986eb09f4b6b1c1a321fa', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:54:01', '2015-03-01 10:54:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:54:01', '2015-03-01 10:54:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:54:01', '2015-03-01 10:54:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fe7c7cb06eb2018ebf7a18e6df5e62fe', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c0c367d4ce9f1bce3bf7dc61641d6a0d', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9cbcd25045bbf0f22236793d4acdd1b4', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9447494f588e92a30cd3f0f3e7fee5fa', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '743e36cca30ea1fc1e0244d73b20ae75', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5a727ddf3a518204c60da9509b2b0d0e', '2015-03-01 10:54:01', '2015-03-01 10:54:01', 410780858)  (12.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:54:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:54:01 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:54:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:54:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:54:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:54:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '54eeb703a3a149f7cc8df2c0ff7cca7a', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1eef75a1f6665228b86167549631dbe1', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e288cc6826f89c84f9fe1d8b762f19b6', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ea2d80bc838fc6034e4178f3e31d0ee4', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5c8cd4ba3013e0951ca2e4d40b3587f6', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7e1f9190b0d164206c0c6e70f54b585d', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5e3aa391702a4c9350bba8d0c8656a90', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9e973f70e424325f669fdcc5a58431b6', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'de23237e2fe71d9992347ce6a3268465', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '53256152ae8f260e516a35bc1ca90d79', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '196a186472d8db922813c5747aed68e4', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fd37f41d252e3e4ce6d0b43c9fae163d', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fce9638b9b84fbf1b97c4173231c665d', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b816d784a15394d1c5c94f1c75c59812', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '50bb5dc05e0dc6d7aa4c49c8d3912af1', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:54:41', '2015-03-01 10:54:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:54:41', '2015-03-01 10:54:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:54:41', '2015-03-01 10:54:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bb910cf1abbec1f3dc10cb8f831b4fb3', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0d4125e5ecf333bccffc16de9a22b6f1', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5ee9004deee233f7a7346e2f8b567f9f', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4866e6dbe1e6cfda17e81649afd3a32f', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9ef5c46f30b8274879c7b54bc6798bb6', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6f2667a992b6038595a7c5997fc8abea', '2015-03-01 10:54:41', '2015-03-01 10:54:41', 410780858)  (22.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:54:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:54:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:54:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:54:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:54:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:54:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75dcb11b584d6f3bb24935463c4e0d2f', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3da32990df72e1883a5d58649023d13e', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9e33cf8d33c6d516b4a1d9f5e02d4091', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4d84186d6f9f4efe79c3f3dd4a5bda57', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aa469d9fdd849a7fbd507a56138e8053', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b51161ffbc6279aa322f4230af5234fc', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'dcbe595cfb6bf2031ab109a0fa7582e0', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '14f1fdd5570570f285f3e0bebfe9144b', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1db162f82478ea6b5fe14f59de55b54d', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 966629572) Fixture Delete (0.2ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e540e3d0aaf9b80559754f401bc0b28a', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6411f51c22a18aa80749f5b77b84d70c', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b61e4b07ccf4f7b1f6015f0333ebffab', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7bb0eace662338858a11fb3a5fa73ce0', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '870a629ce3d9b95adc10ed3e60e7818c', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bb775e7b1cba5a3fc0d2ff4de9475581', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:55:02', '2015-03-01 10:55:02', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:55:02', '2015-03-01 10:55:02', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:55:02', '2015-03-01 10:55:02', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '756e6a16c1fcb7e9a093de35bb12c2f4', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1d6fe66071f43679741a7e49d0b9af6c', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0a8732cec01908a95a70a9e21fd08570', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '283f67c4882eff3585bc3299d6561fbb', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '16ee97a427f624f70a96afae8e2cddac', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8ad267d182a0257f06a63eacbe56aff8', '2015-03-01 10:55:02', '2015-03-01 10:55:02', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:55:02 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:55:02 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:55:02 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:55:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:55:02 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:55:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 01 Mar 2015 10:55:02 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:55:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:55:02 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:55:02 UTC +00:00], ["user_id", 902541636]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at") VALUES (?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 01 Mar 2015 10:55:02 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:55:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]]  (0.2ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '691bb9d10b97585eb8960625a52011c3', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '60e6f86a083198c489163cd674c763c7', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '600cdcee230c442fe12679e5fa98c346', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '762c719fdb74a8de9dd9d0e6860e588a', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'af852693ae69c41157bb4d6b3cf80867', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a08f6ca79584a9be48cc29bcb4b21e0e', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c20ce10a2d9bc437b54ee7538fcab925', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '09f446721faf1d73e1f9cd5b45b638ad', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd1f3038dd23493b1112b5184b079e371', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6ff2f82a3f4942d133ab5a9f5bbfaf67', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '248ae0b0e17ca693905189c11cfd8bd0', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f4c4ed373236802bb3b5937f6d30c509', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5da9067613618d77d98feed5fcddb9cd', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e59d1211698aee582ed5c91594cb829c', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8560d73e60ec678e27149c68a036d950', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:55:37', '2015-03-01 10:55:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:55:37', '2015-03-01 10:55:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:55:37', '2015-03-01 10:55:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '65465bf35116db58386e570444dc3f7f', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9cac6a64992859454c2ccd8c2c69e58d', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4cd782b6188b6cf6b8da692b335d8853', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '318d187164e8bc63f63d65578d46cad3', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1e19a229a54d4682fe746d5c4d31a7fc', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3f21a928b6605d8e04e649ff624c57bf', '2015-03-01 10:55:37', '2015-03-01 10:55:37', 410780858)  (14.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (2.7ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:55:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:55:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:55:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:55:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:55:37 UTC +00:00], ["id", 1], ["updated_at", Sun, 01 Mar 2015 10:55:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:55:37 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:55:37 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 01 Mar 2015 10:55:37 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:55:37 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b56add11ec33b1926fbc8eda5cd6ad19', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '91dbae49e6f0e87471cd5da908ed0270', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '623bdafeb0c0c247613d969eaeeafabd', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '06b1b3535f5e8d711adb2a2c84359d5a', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e1c94d62f651ffab18c7fdcb56e0d51f', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '15ee399b418890d838b24c4414749ded', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5aa2f39cc1a8e41d2a372158a61fdd2f', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ee74c2cd2602abc946e303d95308c835', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9c404565eb38244d6b4ebe8d54f764e0', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7fa2f35195467d1d353a9376057d88aa', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '601f9847cf1a6d3324795a5b2bcb62df', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '660bd9854d2f3fc0822a4d1828ad2bc4', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3dfd18500b0b0f5830db25f045d36ea7', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cbd8c626816d8366d85f2070e86fbd4a', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c1b05f2f1604f8824d4640a599b668b8', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:56:01', '2015-03-01 10:56:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:56:01', '2015-03-01 10:56:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:56:01', '2015-03-01 10:56:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2da5f5de36158190eb522730ff8491a9', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7008594c59d4d55373c0bcbac0e398dc', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cb6e4e472e4d53e74fbd2c9cad8965ca', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'de2273fc5879f308366e169bf0f47306', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5613ce3e3797b4157c045c7657055b04', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ff199601957263d33d58b58e44381c29', '2015-03-01 10:56:01', '2015-03-01 10:56:01', 410780858)  (14.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (3.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:56:02 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:56:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:56:02 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:56:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:56:02 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:56:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0477d2f6e9b15bf35184178e9dffa6d0', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c34b74621a995583f75bb8356e5aa1d3', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f8f67f4f56d72dadbc398efaca5fb7b7', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '62f2ce02442cbf65254819ad9c54eb22', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5d933adeaba58db91b3d4e531b30f0aa', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cf4922399707c88e9b8b1c36e2fd3b62', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e50e35362c858f9d84e8e8e07998e690', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd7811f338790c123936e049b7fc8144e', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7c6952ef5c98cc27ccd19e06d8ea7dfa', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ddefca7b1e4f6a57108262fd5f3ea004', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f15d34295202ba2b7f4afd1c1fdf7b42', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '147e285c25a9447b4c95f163c6574426', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '10d778540a291fb7570472b9692a4d2c', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '58fd8e00ffdf3e973de85f0f34809aa0', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5aa929d21c5e689d72beec89e697af70', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:56:11', '2015-03-01 10:56:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:56:11', '2015-03-01 10:56:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:56:11', '2015-03-01 10:56:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '26c2f35b37561c092646e48faaa16e48', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5bfc8ab500e3baab8c5ce1e5d606b8b2', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '49357d9f9d11a2980e23cb16b0cee5eb', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dcf7692ca73ea865098e3de98d79dcf6', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '09e08a00e36271ba40447e2aa9aa0e57', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7297602d41147e5e2dbb4512c113d42b', '2015-03-01 10:56:11', '2015-03-01 10:56:11', 410780858)  (16.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0007_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0008_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0009_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0010_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0013_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0014_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0015_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0016_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0017_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0018_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0019_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0020_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0021_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0022_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0023_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0024_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0025_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0026_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:56:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:56:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:56:11 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:56:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0027_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:56:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:56:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0028_Can show multiple parents ------------------------------------------------------ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:56:11 UTC +00:00], ["id", 1], ["updated_at", Sun, 01 Mar 2015 10:56:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:56:11 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:56:11 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 01 Mar 2015 10:56:11 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:56:11 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '79cd244470fa8bfa40042bb784566c69', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eac58119bf391a624e6dc7e8d0d2f05e', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7bac4ec97a6175d733d80a40990772aa', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0ba9876571bc888e34e28b61228e6e5e', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7b23c29dd23d3a902c0d59a4cca1f5fc', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 971855462) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aada39815490dc7e4976e9d7715cc7b3', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '34aad124cb373da627367937e9350649', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b816b353fe947b4eae4da240873340bb', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e0c9d9f1c14755fd99b8b224ee686364', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '89dedc277a642f0a60de02e1b5025723', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c465774f46c9be88dd2cdc7667b09925', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd6d397e5b1cb95f988e8b49ed5ca0aa9', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a3c2ed2e4f4029d3ea58c902d265fabf', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6bb697a83d2b69e4629a1f4de06ad3c4', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f97218a873825415b18ad75d13f5caea', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:58:32', '2015-03-01 10:58:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:58:32', '2015-03-01 10:58:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:58:32', '2015-03-01 10:58:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a62b265d7080c9aed50cd8af1465238e', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '862f594e42ceda003c4b4ab0d898a501', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4ac05534e5ebf5ed7a70d423a900438c', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ef9ab4d07c345255ab8731bd1a70c8cd', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '51e45a9591407d2d16547a12810cddc5', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f89170f75d9bcd07d18b7fd40c0733ff', '2015-03-01 10:58:32', '2015-03-01 10:58:32', 410780858)  (19.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsToTest: test_0007_Tags of multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 336964236]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0008_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0009_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0010_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0013_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0014_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0015_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0016_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0017_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0018_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0019_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0020_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0021_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0022_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (2.8ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0023_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0024_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0025_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0026_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0027_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:58:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:58:32 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:58:32 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0028_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:58:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:58:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0029_Can show multiple parents ------------------------------------------------------ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:58:32 UTC +00:00], ["id", 1], ["updated_at", Sun, 01 Mar 2015 10:58:32 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:58:32 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:58:32 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 01 Mar 2015 10:58:32 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:58:32 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a82eeb450c30aee6b34b08ff1eb6b3a', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f4eb2d6e46775c9ca9900d2cb55a5bdd', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ef6340e498d6573accc73d1aa42488df', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '03e55619f98ace7de3c7f927b4453ec3', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '89c74a92d3060a989f417ed82b925dd3', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb9d6891feaa5f0136f4812a43fdb95d', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ade7866cdd9ecbec3ec2e7350dea6b6a', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c2cdcfd9612046d8b4763d4165a521d4', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cc233c825669aa3dd11ca9e3943f3354', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '418b587b8487aa99c5609b7d6d71ba49', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7d1fba56c96d5f5e18f9d3f1dbd828d8', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4cc364145c7a0f60a13a88d868d34b2f', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dd333df9ba7a840e97f8640b7b7b8e4e', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3dc94c2372baf1c6d8fd973aa4097624', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa44ba713c77f521acc7af46804fd3e1', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:59:14', '2015-03-01 10:59:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:59:14', '2015-03-01 10:59:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:59:14', '2015-03-01 10:59:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd24afe7891e8551b6f74776ebcdfc9c2', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0ae758d55ec90d884e6d1f4fc116b75b', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '276a9820eebdf1d357aa5a569e9e2512', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c74b5882c23feff2fc5ecc8512bfdcfe', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a6bc3410c292e29d9b52d94d4f37506b', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1963ab2b3e661bfff591209ca38382ba', '2015-03-01 10:59:14', '2015-03-01 10:59:14', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsToTest: test_0007_Tags of multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0008_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0009_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0010_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0013_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0014_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0015_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0016_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0017_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0018_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0019_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0020_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0021_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0022_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0023_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0024_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0025_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0026_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0027_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:59:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:59:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:59:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:59:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0028_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:59:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:59:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0029_Can show multiple parents ------------------------------------------------------ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:59:14 UTC +00:00], ["id", 1], ["updated_at", Sun, 01 Mar 2015 10:59:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:59:14 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:59:14 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 01 Mar 2015 10:59:14 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:59:14 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '969673824c2d4fc20fb0ad875b48a881', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 761411935) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b4c102cdbbd12a347d1ccb0d154cdf76', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd2c5b202ba2ddf459258daab21b64193', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ed2bdf5d35f3f4828d8652ad7bb68d1c', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '99064e934708a4ac19f942d5ff1b46e8', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '45614ffe58db4b1266ba314c4a44bb5d', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2a329f17d9bd6783421f5d558f6ca6a4', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'dca5ea7b8f614718975aaf98820ce281', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5de9ac09998ea9192db73cd50426525e', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1d350aa8e69edbf192a87637d2d4fa9e', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4cdc73e26078f5d941885dd1baa75a76', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f8e2645cb3829c6ffda699c49fe80901', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 483796712) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6cdb5f61f3b9208d65e503b45dc6e956', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4aff9b59cd4cb0ecdc5d8ab889fc4555', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '021e5412a83f09994205aaba28144451', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:59:38', '2015-03-01 10:59:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:59:38', '2015-03-01 10:59:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 10:59:38', '2015-03-01 10:59:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b3c3450923318b477687c7c414133d42', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4416bee6839753e7ea7881b7927b83c6', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '663a18598f0885b757cb8e66d8859e54', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8b8a3aa28958e992810a70d37084e021', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c8be0e90888a293e5ff5b5b263f7ef0e', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3d2e9d7abe3a4a685f97fc250ee0362a', '2015-03-01 10:59:38', '2015-03-01 10:59:38', 410780858)  (19.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsToTest: test_0007_Tags of multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0008_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0009_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0010_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0013_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0014_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0015_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0016_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0017_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0018_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0019_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0020_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0021_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0022_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0023_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0024_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0025_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0026_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0027_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:59:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:59:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:59:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 10:59:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0028_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:59:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 10:59:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0029_Can show multiple parents ------------------------------------------------------ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:59:38 UTC +00:00], ["id", 1], ["updated_at", Sun, 01 Mar 2015 10:59:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 10:59:38 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:59:38 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 01 Mar 2015 10:59:38 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 10:59:38 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f987d016885236dd7a250100a92c5dc8', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eee7a8b0e4a56dec9336fc0025dccb97', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4e537b90eb9f7875fb8e87ec7078b02f', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd76ec56cef7019083f46b6381c8a5c09', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '218038e8adadb4ae9adc0f6e9385fcec', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb04f51a565c3c7c241f2db1c46e73dc', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a55e67bf4d2f8fda01e29e06a21a8ea7', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0dc6fdd825a0d7852174cc87ce6fbb8d', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '68dec1878bc21c8d8428ba82bf9b7781', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '77a63ee015c64a4a19a1a6131a72c41d', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '44c4c16717550716a0921784add3e481', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '392593b3f8b943238d36f7c897e6f28f', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a5d999d7abb8d18337bb7465ee76a0fc', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62447ee50c948e856bffad2d5a59dd1a', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f7a1bf8b5bd5ba56715502180f8c055', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:00:44', '2015-03-01 11:00:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:00:44', '2015-03-01 11:00:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:00:44', '2015-03-01 11:00:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '51db8e5ba23f5cf50c2a0a0c4bbcc73f', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a19ed186d745351371bfb482c74aef44', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2ce01f0fcc4c5df2ba0a3e7190e627f1', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '942686c0a2c0fc08ffb63ffc8f17ecca', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2563eaadd40fafa9fc43afad77f245f3', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a93f01070c00ccff7347f4b173339d2f', '2015-03-01 11:00:44', '2015-03-01 11:00:44', 410780858)  (19.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (3.2ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsToTest: test_0007_Tags of multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0008_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0009_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0010_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0013_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0014_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0015_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0016_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0017_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0018_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0019_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0020_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0021_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0022_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (2.6ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0023_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0024_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0025_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0026_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0027_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:00:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 11:00:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:00:44 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 11:00:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0028_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:00:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 11:00:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0029_Can show multiple parents ------------------------------------------------------ Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:00:44 UTC +00:00], ["id", 1], ["updated_at", Sun, 01 Mar 2015 11:00:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:00:44 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 11:00:44 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 01 Mar 2015 11:00:44 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 11:00:44 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f97b70e550c544e7e6c6fadd8577e8f9', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '87a3b11b1e71f0918d29eb7bac4af664', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f193a2a4baeb88e709ce1d0b78e97ff7', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bce26e02cedf3fa6dcfb584fd1560973', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dca8cea358947faa8347de7ccebbb25f', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3cb627e8873868104a3883712e3f8c34', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f7b155284658b1bd6789faf0c5635951', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7e50d81a746d58b364223fe0a1bc0906', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1d0d72c3a64e18b9720b8e743a2d1748', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f9c41803f66a833d9e3619e2211c01da', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd10b1a697c4809511adbdaae17924017', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '94c7e43c1c9bf1d4acbe5606335759bd', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e34055c326eb139e30980f0067275b02', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b15752d7759af07e1b7b512103d31e17', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a6f1de665141f6613a857ff029a5a8d8', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:06:31', '2015-03-01 11:06:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:06:31', '2015-03-01 11:06:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:06:31', '2015-03-01 11:06:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cfd6b70b62412200af1fe302fbb694ec', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e658e2a7be9846c79ba449958e9b86b0', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b03a94d0299843023213b45d9a1fcbf6', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '376e334219b468354362de7792d31e0f', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '35728fbe6c650f033c24a1a4967094af', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '317b9f8580502d1b2f1a95c8c5407f2b', '2015-03-01 11:06:31', '2015-03-01 11:06:31', 410780858)  (14.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsToTest: test_0007_Tags of multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0008_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0009_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0010_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0013_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0014_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0015_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0016_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0017_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0018_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0019_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0020_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0021_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0022_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0023_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0024_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0025_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0026_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0027_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:06:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 11:06:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:06:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 11:06:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0028_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:06:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 11:06:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0029_Can show multiple parents ------------------------------------------------------ Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:06:31 UTC +00:00], ["id", 1], ["updated_at", Sun, 01 Mar 2015 11:06:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:06:31 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 11:06:31 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 01 Mar 2015 11:06:31 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 11:06:31 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1f7f957a4659107ab7065b19abd7b4f1', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bfa738c76961cf57d9d4254020a13299', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e3339b0e7c59f74537048d304c1ba542', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '476607df5784dec38141ae8fa54d54e5', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'adbca879cea9efc669c3da60539d7737', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a213cd14c6616fef2a09559c0db79795', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7e93f8e22ef53eab3c47b08bc3308e7f', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4518ee5ae3f678e33cf9ff18a0a91da8', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '15bee386f09ba4c3ecaf661b29c44e7a', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '14f32340d07b4f4cc251724bc02da2f9', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd51240a2905b6c88cd1801c0ed8b7201', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9b3825868f92cf1bf516e5f0ecedea4d', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6cd6e6bf52ab50a3692283ef54dd0cfb', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1ebd82483171b3dfec1f229ed2703ec2', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 689259936) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cc0de6cd47c598a6fbd426a21228d8c1', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:13:00', '2015-03-01 11:13:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:13:00', '2015-03-01 11:13:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:13:00', '2015-03-01 11:13:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0c115925321c2d79ca351b574e692202', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'eb3ae91f7b560eca31fd6fcfcb41b861', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '26cf9f2d64e4898cef07e69f37db119c', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b9b691d586dd55db5fbb0c8b93ea8e1d', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9675772bc2b7156f071b0761353f9bcd', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9d6fa1c8a280545c6797ee0ec900be86', '2015-03-01 11:13:00', '2015-03-01 11:13:00', 410780858)  (14.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsToTest: test_0007_Tags of multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0008_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0009_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0010_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0013_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0014_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0015_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0016_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0017_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0018_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0019_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0020_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0021_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0022_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0023_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0024_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0025_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0026_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0027_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:13:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 11:13:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:13:00 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 11:13:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0028_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:13:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 11:13:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0029_pbt_parents: can show multiple parents ------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:13:00 UTC +00:00], ["id", 1], ["updated_at", Sun, 01 Mar 2015 11:13:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:13:00 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 11:13:00 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 01 Mar 2015 11:13:00 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 11:13:00 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.5ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0030_pbt_parents: one parent for polymorphic -------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2e047b25a2e62abd401fb39db18bd7a4', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '900baa42a6acd74cd5db5dbdbf0ff04b', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '226351464ac2524ff801c234589be9c6', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6d63d849d766cad411c15d5232da07a4', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '27142040b9eccde09248473f645064cb', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a09e6a23e0141bfd56edc24f270195fa', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '839fc4304b02a4b38ae89383a9f20527', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '604d243ccdb866ec37b1541383faf6e6', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ecb9a2b5dd1713d3f5cb7fc9063840c2', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6fc797f50faa9f827b0ab368868ffd2c', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4ef2ab1f62ac41b0ac0ab71874d23934', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dd5c02604a7056f8c700a958181d76d1', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e601df9061c7f91842fe35cd2797d13b', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1371e6e35834cb475c8b0018ebd2e5d5', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2aa25eae8d7099889c6359c8023dace0', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:13:22', '2015-03-01 11:13:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:13:22', '2015-03-01 11:13:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:13:22', '2015-03-01 11:13:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd5937e10f0d19ab267407fa5ea2522a0', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c598663749e7accd6152ba35a7db23db', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6304156e1d650d9f4ac85e8148e82fed', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0a900d6b2812ad8f805f7b19632a8765', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd6031bb9ec36b4f0742a21a0bc4f2495', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '49e2e94eeb7cd7346b54fe73cdb22feb', '2015-03-01 11:13:22', '2015-03-01 11:13:22', 410780858)  (25.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsToTest: test_0007_Tags of multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0008_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0009_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0010_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0013_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0014_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0015_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0016_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0017_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0018_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0019_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0020_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0021_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0022_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0023_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0024_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0025_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0026_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0027_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:13:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 11:13:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:13:22 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 11:13:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0028_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:13:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 11:13:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0029_pbt_parents: can show multiple parents ------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:13:22 UTC +00:00], ["id", 1], ["updated_at", Sun, 01 Mar 2015 11:13:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:13:22 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 11:13:22 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 01 Mar 2015 11:13:22 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 11:13:22 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0030_pbt_parents: one parent for polymorphic -------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b3cee2843cef01862c10b31d41fc9371', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dae6e9fcec9c278c83ddabef754f42d4', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e4d074c4cabd1c41a8fb051de936a585', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b14a535e54bc495dd5a2e49358cb1588', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3c2baf763e8984ae2dc21007b9152578', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '90c6bfb007743e3495ec8f02902641c9', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '54435693e199d964db448b86f8e90b01', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4c277de2999b5380d88774e6bd4a1311', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f765a8dac1d430dd9f293b5bf4697f9b', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3c302ed8654598fdf04d76be1ec5a61f', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '82d94846fc2544fe75bf4effb0fcb6d1', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b8ad0fcc05af9c1a45c7b83f347c55cf', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '21e7fc9993c8a8d174786587ca7a8135', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4eae4aaa5aa7bd6cb84821f0c22c43c4', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7e85f0dcad23521e0679aaf1d7a8977e', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:16:03', '2015-03-01 11:16:03', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:16:03', '2015-03-01 11:16:03', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:16:03', '2015-03-01 11:16:03', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6e1b16f8b966584fe0b032ac13fd9140', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6f588e1107e494e42a9cdc78955c3057', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e515a24438a0a4fac158039bdc169363', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '917d0f0476abd2a74d3d708df00c53fd', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '03edbf4d0bff73c327f0a879b8934c58', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2bd19965c39c89b9cd27ba83dded0815', '2015-03-01 11:16:03', '2015-03-01 11:16:03', 410780858)  (15.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsToTest: test_0007_Tags of multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0008_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0009_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0010_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0013_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0014_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0015_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0016_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0017_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0018_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0019_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0020_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0021_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0022_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0023_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0024_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0025_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0026_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0027_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:16:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 11:16:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:16:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 11:16:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0028_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:16:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 11:16:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0029_pbt_parents: can show multiple parents ------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:16:04 UTC +00:00], ["id", 1], ["updated_at", Sun, 01 Mar 2015 11:16:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:16:04 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 11:16:04 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 01 Mar 2015 11:16:04 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 11:16:04 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0030_pbt_parents: one parent for polymorphic -------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '183f3a312c7b0a8a964f1ddfb82f68a4', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '76a9792553148f6a83fb315b93fe008c', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '29277c6c5534014f4e2b15d60d3753a1', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3da179a682f706be1d12bbdc4d5925d3', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6c2372b57096f358b99c6bbd78ce9ec9', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8660d65097ba7367dba0efa2de7d21e8', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f55f483f8d90149b14f736f36cf50ea0', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c62a41ce6a34e4cedd794ad781f3de57', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2833ceded0831cf6a731bffa0853a133', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 966629572) Fixture Delete (0.2ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '320097b308705ecf364f91c7d4d6511d', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ef380f0b7d2e47b2dded8cac1fbea0b0', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1ef762aed90e8b36bc375c7df85f5043', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '22f90a3e4fc36739bc2d6061169bb6d1', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c8bfb5c3710af0b5f8bdcf2860207ea5', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7d3d19d73320d9b8fe9938a1c84fcc9a', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:17:09', '2015-03-01 11:17:09', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:17:09', '2015-03-01 11:17:09', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-01 11:17:09', '2015-03-01 11:17:09', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b70e56bee7e9bc71934069bea2b8d4d5', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '88bee40a9c9ac208b1ff7086e663438a', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '17cc8cfdcf9aedebd39f9c48bf1b68ef', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2488ef52c89746287dc5b4001bfe0bfe', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'dd3e3c06caa584afa53cd96becefddcb', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f2efc8a154c7256972e630c69773a86d', '2015-03-01 11:17:09', '2015-03-01 11:17:09', 410780858)  (23.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsToTest: test_0007_Tags of multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0008_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0009_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0010_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0013_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0014_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0015_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0016_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0017_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0018_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0019_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0020_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0021_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0022_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0023_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0024_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0025_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0026_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0027_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:17:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 11:17:09 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:17:09 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 01 Mar 2015 11:17:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0028_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:17:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 01 Mar 2015 11:17:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0029_pbt_parents: can show multiple parents ------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:17:09 UTC +00:00], ["id", 1], ["updated_at", Sun, 01 Mar 2015 11:17:09 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 01 Mar 2015 11:17:09 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 11:17:09 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 01 Mar 2015 11:17:09 UTC +00:00], ["updated_at", Sun, 01 Mar 2015 11:17:09 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0030_pbt_parents: one parent for polymorphic -------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (1.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '481a32275801409b8f39654aa7b64af0', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1dacd1c8a4d24dac0d2d1cf6fbb4a72d', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '317cdd3ce856d9acef193f665e8f3ed6', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd25d39911a351f8a72b0d186b3e7fdea', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c3c4341874117c72c029e4e0da1ea89b', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '022a2e31852bc109d50cb1f4a4a15c63', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8894b295e775dbfc9a5bc2da49dacc96', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ef2d825f37fafde6270e63c7de9f26e1', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd80b593ad2f260c17445f7455e5674eb', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7e25acff0ebd04503da62edae8fc01c0', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0650f934cbbbcdd607be4a408eb1257e', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dfb42501b0ac983e3202b1d5a1f241fc', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cbbf53d431c47c655fd6a4b451a94ae2', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6129cbc67e42098bd25ad3fc55e41ebd', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '25c866d7a9b59427639d64634c1f05cb', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 13:41:54', '2015-03-07 13:41:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 13:41:54', '2015-03-07 13:41:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 13:41:54', '2015-03-07 13:41:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c6f01dfbe170f5639b0249d78c35b256', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'caf2dc053bc95f9be7b31254cf3437c1', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bd9eb26424017455f8e5794c71b09e5c', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '530566a21cb61bbfea105e75b1117c9e', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ba1fc541e24a4b496f7bfd0c78730932', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2c5b4efdec1804c92dee06dd40c14122', '2015-03-07 13:41:54', '2015-03-07 13:41:54', 410780858)  (61.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsToTest: test_0001_is a module ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0002_User as not polymorphic ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PolyBelongsToTest: test_0003_Tag as not polymorphic --------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PolyBelongsToTest: test_0004_Phone as polymorphic ------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0005_User belongs to table as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsToTest: test_0006_Tag belongs to table as :user ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsToTest: test_0007_Tags of multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsToTest: test_0008_Phone belongs to table as :phoneable ----------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0009_User params name as :user ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0010_Tag params name as :tag ---------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0011_Phone params name as :phones_attributes -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0012_Phone params name with false as :phone ------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0013_User belongs to field id symbol as nil ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsToTest: test_0014_Tag belongs to field id symbol as :tag_id ---------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsToTest: test_0015_Phone belongs to field id symbol as :phoneable_id ------------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0016_User belongs to field type symbol as nil --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0017_Tag belongs to field type symbol as nil -------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsToTest: test_0018_Phone belongs to field type symbol as :phoneable_type ---------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsToTest: test_0019_User belongs to id as nil ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsToTest: test_0020_Tag belongs to id as user's id ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsToTest: test_0021_Phone belongs to id as user's profile id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0022_User belongs to type as nil -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsToTest: test_0023_Tag belongs to type as nil ------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsToTest: test_0024_Phone belongs to type as 'Profile' --------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsToTest: test_0025_User parent returns nil ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsToTest: test_0026_Tag parent returns user instance ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsToTest: test_0027_Phone parent returns profile --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 13:41:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 13:41:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 13:41:54 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 13:41:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsToTest: test_0028_Profile parent returns user -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 13:41:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 13:41:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsToTest: test_0029_pbt_parents: can show multiple parents ------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 13:41:54 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 13:41:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 13:41:54 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 13:41:54 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 13:41:54 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 13:41:54 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.4ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsToTest: test_0030_pbt_parents: one parent for polymorphic -------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '26a5f9e3f1fb1243cce8ec000c76586d', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6eb5517d9b38765a6e6d745816206813', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '535da1c4bbc748ab2f554694ca956e29', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '39b61e3dfbb56114282569b4f272d66e', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '586f40331abe8b85a884443b7c5f40d9', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '72e2cbea469b3634283da77d4c20e6fb', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e62e6ced8616fca1fa86914c026101c6', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f1832ea5543d34be473fe71ccf83bae9', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c9a4d99517d5b42bce803f36c9f6ca1f', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '58248c6b0a1cb2f141e1a4d9fcce444e', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0a851525b47b66d17986dd0a16299418', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6d4dd4f4862bcde823777ba98fd352b7', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '183f6bae4aeab00a5490c6e02e4cf691', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9ac03147c09aa1e9952f4739542c47cd', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0e60ee90c91e7ae23a5e32d95bc7ea0a', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 13:45:22', '2015-03-07 13:45:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 13:45:22', '2015-03-07 13:45:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 13:45:22', '2015-03-07 13:45:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '532a921f9e6ef2ddfda0c4737a7ace26', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fd023b5719a5bcc1a73acd57d62ecd24', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fc20ddefc682261b6c953eb8ade68bc1', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7830a6b6f0e815c9d67d1b3accc2cc74', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd6e447f33866096bfcbe41737d8ec002', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bc1ddb5d7bf5f94436d1d7489661ab81', '2015-03-07 13:45:22', '2015-03-07 13:45:22', 410780858)  (25.9ms) commit transaction  (0.2ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 13:45:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 13:45:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 13:45:22 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 13:45:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 13:45:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 13:45:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 13:45:22 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 13:45:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 13:45:22 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 13:45:22 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 13:45:22 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 13:45:22 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a63583cee139db79537303001834a895', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8fb5814c7b49e693eb590aeca887067a', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f624df922b6cfde78316bf3e9f7b1692', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bbb7314e92d77a9c63ab648fe84dd10d', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01584b42fc1e9c75fae7c7ee950e6dbf', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '56b2d59e8e37b9d7752e443599fd440d', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '00d38189ba7a38f189733bf2cff8587d', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c17bc3a6058201d97c9ffecaeca290fa', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fec933dfeed56306b4f7da5ff6f7c258', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '846077f1640aee761424a0c4e0212480', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '65122c3901c1f91ace5af5b2a462029a', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a6f3f464a859ec9e3a0cf6d4023bb697', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e667eaaefb08e6b463cbfd2654be72a5', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3fd443d57a619ede553645dcd341c406', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '19caec67a834e8f16ac2f62aa4ef084a', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:00:47', '2015-03-07 14:00:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:00:47', '2015-03-07 14:00:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:00:47', '2015-03-07 14:00:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dfa4ff601384d60fcb0b2d95dc63448d', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e8ca6b54d5eae8959f9223fcb2ceb63c', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '935a0ad2e1d24bf445232c4f10346e9a', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1595d18681864b587cce796ac78b2bb0', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ddb53261ff66c4228e08b08698c38130', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9da938012f9d277e0084fcc01d84d6b7', '2015-03-07 14:00:47', '2015-03-07 14:00:47', 410780858)  (19.4ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:00:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:00:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:00:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:00:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:00:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:00:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:00:48 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:00:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:00:48 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:00:48 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:00:48 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:00:48 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd536d329b96d3c2240241b79027b2b43', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ff63d0b5078d27f6a2351cf9683d26e6', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2e4b9553a11d15c5a1c43f5f7a7936ee', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a52e99307fdd068b4c5464052636899a', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b67f542df2c41cae40687c708d55ec8d', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '91774716b8eb1e1ed683b43c6e834ce3', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '544fefa5962cf90f75ebda9e2583bdac', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ca77d34285696247e21fb78169939033', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9d7b2bbd51185364cb294c222f6a3745', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ce81c526779bdfab2f9e6cdbb8361e5c', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c63c55307f16d241ecc95250ca8823e4', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3073fd80ee964387a95943d472a60705', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '577d3f7dd6abd100400a6c9815e53058', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6f9b0feef9b2fc1778719c067cc38be3', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b3e631e61c675096e4305a87e19eeab9', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:01:57', '2015-03-07 14:01:57', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:01:57', '2015-03-07 14:01:57', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:01:57', '2015-03-07 14:01:57', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd18478e4f75252e91d8ecf3d30cc33e3', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c4ebbb5a3958ce7fe55d9293a0d7ecb3', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ad69d72448581a3c88afddf79ded661a', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3f5efd73197b9f3ae617815ed2f80782', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '82dc5c65be0b40479d400b72a2d45ba9', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ee8fb039d5017ef1b8543880999b9631', '2015-03-07 14:01:57', '2015-03-07 14:01:57', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:01:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:01:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:01:58 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:01:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:01:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:01:58 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:01:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:01:58 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:01:58 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:01:58 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:01:58 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '802a638a1ec845cd188a7f12662225ac', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bf699df12d241d4f8945577362b97aa6', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5105f5d3d8ccc1120eb5400505d11619', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9c784c9ee14edc973ffbc68095ca3c1a', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7d08894eef2610fe29902bec6d126937', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7ef0b38f07924fe5a7e9433ce67aa4a0', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9060b5e6fa9f818d5fa27a5ae8e59735', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bc6e72a09906c80f18ef2933c39df95d', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9e41d02945a1c01a327222454d19a5cc', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1ea4f0c2439c8972eafcdff185a0654b', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4b39fd4925bbd9703a92a71e8d92e70f', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4d993804f6ca8efa38737a8943bd5df3', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '45f7e3d965bb9618df181f72c61ab9e9', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '11d5514210a90b97e732557a0babed67', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '59239aedbfc5fe1f81746075b238893f', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:03:29', '2015-03-07 14:03:29', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:03:29', '2015-03-07 14:03:29', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:03:29', '2015-03-07 14:03:29', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2b25c1fb117563f269a004b574345d3a', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fe5f59830f1ed2bdbea4c5d79767a589', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4eaf8b616f57752dc719c1b582a96eaf', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '26a65d17628a176f2d63705cdde1b9b9', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '85a11528eb8f7bbfba13d8f0614de9f2', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8e5619149552a7687f53b097b181cce3', '2015-03-07 14:03:29', '2015-03-07 14:03:29', 410780858)  (14.6ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:03:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:03:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:03:29 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:03:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:03:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:03:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:03:29 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:03:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:03:29 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:03:29 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:03:29 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:03:29 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bba2ae61e57b88351b7e4e9c264c2883', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9cb4dfbc403fcebd6b83968f7c0c275c', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c9ead532de671dfaa51d048d13145a24', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f0d55e6d355508d6253f82a0584c76f6', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '448de5783603248d7c0d6e235e1304ac', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5acb874723c575dabdd3f5b1afba6a1', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '43aa4cc5abb7a5914b803be8befc0399', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ddf664b1766d71989002857e80c50868', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '911d3465ff58579d8f6a3b69ff19b217', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6efaabf18d289283c1a3ff2e6e1ff4d0', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '31a3bdea77fbf30ae318be82ca77146d', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6661c9c4378aabe1a736bd43faa6303a', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '87997b38f78198f17233a15d3aa9a8f6', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '80c1da6f0dcb3701ea6dbacc144ad24c', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7d43fa38f5ee12e1620d191b501715e6', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:23:57', '2015-03-07 14:23:57', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:23:57', '2015-03-07 14:23:57', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:23:57', '2015-03-07 14:23:57', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f5aaf9dfa4a2b31d26623e00a2d5b9de', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '06778933809ab839b48eed45b09ebb29', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fd46ed33d42dfad5e77c175b39b6fc8d', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c339c8e99691afa9ea18580a90e46e8f', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e5fce5e77e89b97dbe546d586885d617', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6461f7e6304a9871414c97b94bfd21ca', '2015-03-07 14:23:57', '2015-03-07 14:23:57', 410780858)  (30.9ms) commit transaction  (0.2ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:23:57 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:23:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:23:57 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:23:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:23:57 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:23:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:23:57 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:23:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:23:57 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:23:57 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:23:57 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:23:57 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '763fa762962d6edad626751543cead12', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '54bf1278c3e59f93a65928143d6d7ac6', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '074bf2e5d4e8cfc191579d616ad34f7d', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eb7b4945693caa9aee39bb0fdbe9cd11', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd9a42f77dfa2bbd9927037c534c191d4', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '58d7e53226b7e782d4eb74d3cab9f490', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e4f69a278deefff3eb80e4e4ff1f8eb5', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f4df7f02488bdf64a86482d4cbb3e4c6', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'eff7e01ebb7acfec3d14d90169305af1', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '967482047fa5ec6587e4fedaa6e83af4', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '29328dd9c38c7a70b03a482a3de7eb22', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6573fa4119c675680805f327cacefa9a', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9add6752389cd859153e42b464f9d1e5', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eb936507db7b4ab22e49274620388ba9', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1079fe9701aeec387c93069402d81d06', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:27:21', '2015-03-07 14:27:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:27:21', '2015-03-07 14:27:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:27:21', '2015-03-07 14:27:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3019e94d3327d29602b2ba251406834f', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f54c59fd524afd30b6d38eb8a15eb098', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd864dfcb7884676290c7efd0ebba216b', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4ff54e16a2cd082ca90fadead06084f0', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b5b0e85329c3e6b2d8ac4cf6f473dc66', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8a4a2de9d9cb0c9e3fb64e6d9cbfc49d', '2015-03-07 14:27:21', '2015-03-07 14:27:21', 410780858)  (18.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:27:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:27:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:27:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:27:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:27:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:27:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:27:21 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:27:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:27:21 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:27:21 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:27:21 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:27:21 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dd24b94fea4c1c5d609bfa9462e9cfb0', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1b5566dabc1735cdcf6cecfd99ba4409', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0ecfe534abe5358b4dcbe8ccc54a666', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '53faf02293661e9694270d53eaf68feb', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c579797014d7b7156a0c3e4eff3ab631', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f40590fcbac8a6555c96dc087a6398de', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '34fb5c2c85de07ad7456ff0d741ca904', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e5222de2edee0eaca189bc88c913d60c', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cfd9b224b5b111414933474c67c3467e', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '824f6b6d60c84684fa742ed0c30e2bbc', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0fb2ede5abffe22f6ca4bab14440ae3a', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1bba1838bb9ce93f08c377cc324ba837', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e7d91a35a61a55ea37a972c628cd17c6', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7065341225486225ef951076cf6f2d77', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '10e309c762ac37b202dc19a817fe15dc', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:27:51', '2015-03-07 14:27:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:27:51', '2015-03-07 14:27:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:27:51', '2015-03-07 14:27:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '14356aacf20813cfc73e78f892449e58', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '49a8092e73da1ce370d717972f94d745', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f7c1f371f567860840c403cfa9812f6f', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'da5116e37b55405f84795f48efa68b81', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '97edf60bb4afc151fc03f340f0de953c', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bb0a31ac4607ed4d7b38de88da2df132', '2015-03-07 14:27:51', '2015-03-07 14:27:51', 410780858)  (38.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:27:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:27:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:27:51 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:27:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:27:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:27:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:27:51 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:27:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:27:51 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:27:51 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:27:51 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:27:51 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c8a888d68ec1578857fb3469cc406203', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9cccb193c18f12261b7e40ac54a1a03f', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '152fcf70bdd5b448670e8b32c5747d5b', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cbc6d6a4977431ea44d4e1322ae5b500', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0e16704e1afc7ffb14035bc989b4bdb0', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a81fe92a12ce6cf9df6c2b9cf83566a', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd23746e7cac57e06a420dcb715fe5042', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e5db969f599b224b3d7d098d0da88b60', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c70d2e644c1da11952ea72d5288ca169', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '735adb6ee45f26756b023c4030b9aec8', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4f2bcf3e1ee818cc814f43ebec853e37', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8776ddab1bb7e3adc32d321ae98b611e', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9cbe10088f9feb401cbdb3f86568c7fe', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1931ee90a8a720b83e8705019b29964e', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '40d4d53e5c86b7c4322b3017c36ce0bb', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:28:45', '2015-03-07 14:28:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:28:45', '2015-03-07 14:28:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:28:45', '2015-03-07 14:28:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0935180a50566bd8c43183eec525ebd6', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f8bfc9a1949f36e4aea95ef7cb9dc882', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '28ff82455886aab72d1176728289080e', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '18eed3567f4b40086915e42340160cf4', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '381bb22ea285a1d8e1f147955a49c4eb', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bba5f0ae751d5575b79a914ae3614835', '2015-03-07 14:28:45', '2015-03-07 14:28:45', 410780858)  (22.8ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:28:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:28:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:28:45 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:28:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:28:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:28:45 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:28:45 UTC +00:00]] SQL (0.3ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:28:45 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:28:45 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:28:45 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:28:45 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.6ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '72b55fac48e573ef7f53fc80b94145f5', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e5c7c767fa406db6059d3dd747cebcfe', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '542c0874695f816e2f2d15afb55d9aa7', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fa7b80fda2fb135bbf2cd26327c33ee4', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c48b900d777262bacb31f9fe264df5d2', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '031c701e5a25556f37db20f83167f8bf', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '336ae516471f36d72c8163216fb1c68d', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9beaa49f11e8df4ade7ca649b4202490', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '13f9a1e1b483f253c91c10e6d7b97ec9', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '66892c7acbfda3e40eb26f173c265fc4', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2c5db8911aa5fd43596239a6136fd16f', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd6f0e7a9dfd213544846b419bc7e4e35', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5be48ad538279b1bd13cb3c9c66e03ce', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '129424c0f3eed65472a8c9db0a375002', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '25345c004873af641d7dc68511c97e93', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:29:06', '2015-03-07 14:29:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:29:06', '2015-03-07 14:29:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:29:06', '2015-03-07 14:29:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f1fc667d00dadf9527d3bb63fec9635c', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f3712826fe0a31f29e3b82057f135898', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b7a445ae7a8e692b451a98b56ba3c32f', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '58c944baa1ccbe1ef9830e6a24850ba2', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8d1a298dcf8c55feb262cc390afcfa8b', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '95ef7d249d0dc79b8753cfe83d542a43', '2015-03-07 14:29:06', '2015-03-07 14:29:06', 410780858)  (17.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:29:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:29:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:29:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:29:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:29:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:29:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:29:06 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:29:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:29:06 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:29:06 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:29:06 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:29:06 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0918ac49902ab8f47c4d74b8aa943bff', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c56a3543f8b93bd834ef6d9ad6ceaa8b', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6badec60aa4badc420be9305b9cfeb94', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1808dad3ec5c8cdb46958136cd505229', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b5a871dced1e5dd7ab09e4e06aa68d92', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '51a933262e10eb2b8f9999592d7331e2', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '24443ea8bef0f5a932c54bed5c14a0a0', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bf7a763230ee01242d0b816fe18e85c3', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e52cf1f40d1bb11848d87e826d879a00', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2c75af0debeefd10a6e388abf8a32dda', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a6fc875671db267efd0b73badac9996a', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '16316056bf2d3912a6019cf8b89bcd5c', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '38beabbf067fdfafd841eaf0b6c69259', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '06ebdd060eae20a00de02a655a98f8a3', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9588a56bd2b0d689c0a697cb9b5ca796', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:30:25', '2015-03-07 14:30:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:30:25', '2015-03-07 14:30:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:30:25', '2015-03-07 14:30:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bf9449e1fd19fdcc9fa328d8cc2da19f', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'feb0ef4714d48423321b4bd864f2443e', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '56df349f59d5fbce474e9a924ca4b3de', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3896c76074110b0464f9262fd9dbaefb', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '462d55b8fe13f63b354d68891e5b501b', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b7aaa645ff29e15bd8defc9c7d5d34e3', '2015-03-07 14:30:25', '2015-03-07 14:30:25', 410780858)  (14.2ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.3ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:30:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:30:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:30:26 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:30:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:30:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:30:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:30:26 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:30:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:30:26 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:30:26 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:30:26 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:30:26 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '46becae81ed3c2b1a87d77bc94e7cde5', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1af216e620a1265bf58a89a11a6a7eb8', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '74cbfff569d8935c6527dbe1181ef224', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cf931a72bad654358bf38d78a92613d9', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5c24b0de5be6780295b99c858028c9c7', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f2f042cb30992ba14b864f9c17b11d72', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '92ed0ca9651fc62a73219015bec6c542', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cf4e61f055c96dd0259b6d83795f6b16', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '12bc63e2a57f117ac9dc86dae593dd6b', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6ec29b441dd8880d9183c3d50021778f', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c0de759371536e777dbb7be7ac73ff27', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '782e042350cbc11553cf76912fedc115', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5745d9e1268385f820fdee6e1235053e', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7ac7303293b3f86ef12d85f257d7ad18', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d4af7ed5f7d50ea43b8d4225e4a66b9', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:31:55', '2015-03-07 14:31:55', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:31:55', '2015-03-07 14:31:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:31:55', '2015-03-07 14:31:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '910247d01e22d9dae1f8e8f6fe3b3fb3', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c496c236c4fcc31c3bf118d0ea9fee03', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6c83b57e6cc6eb2c910ec0f6e2fd80df', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '393625643b18c1830c0736f15e8105bd', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ba162dbf430d821503173a01ae35d5b6', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '95845b7a1d5d550918a6d1f2d5fce845', '2015-03-07 14:31:55', '2015-03-07 14:31:55', 410780858)  (30.7ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:31:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:31:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:31:55 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:31:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:31:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:31:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:31:55 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:31:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:31:55 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:31:55 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:31:55 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:31:55 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4db23540da26e7a146622196eaf36a8b', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5852a67bf67e0072d73b330153cbcafb', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'adcba4a7c77949f8faf53fa596bdbe91', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8ffde56824b90b55bf4445649c642ce1', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5caf22e9f158d9286bc668fc8f87d4d2', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5b4a310411f92aa546051cf0e099dbcf', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6c25d25770accd92cccfd5cbbd8afae2', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '612b3151b1ea36a9c804c10b4cd89b01', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1edf4771f2e44db3a706f372ff043a8b', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2bca07eff2dd010c1796dfd48bcddf1b', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5b56725bf7bc89281a3cffac5536c6b1', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '53b9e217cdc0e865b28e17f5520db433', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a3e89b62897e41624aa19f8bdc716660', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a118337992e570ca0d50fb6cbf7af1ef', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f50f61ce0aa741f90ee29b7fdf3976b1', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:34:05', '2015-03-07 14:34:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:34:05', '2015-03-07 14:34:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:34:05', '2015-03-07 14:34:05', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4c316b4e916c2510b8dc0d615478846e', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9e52b8185875e62a1ad0338a310dd6b7', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1115ed7cbe90562c638be088c0f52f5c', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '59d185fdda7e52ed8b493b7acde365f8', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6d8e3078e9f98b148c20caa37859d7bf', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b60e2d26b68e129aa7d104837878bf91', '2015-03-07 14:34:05', '2015-03-07 14:34:05', 410780858)  (19.4ms) commit transaction  (0.2ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:34:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:34:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:34:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:06 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:34:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:06 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:34:06 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:34:06 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:34:06 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '74c907268d50059cfb90f331458bfa9f', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ad6006eb95aa3a3b0e29498e439620d4', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f6d9da5eeb81cae8c3de5dcaf4ef049', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '637e53c841a7c0cd1e218141c8e6b495', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '59574e7e545a3c761acc803cf9cdcede', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3c6bbb82bc51dcf6750eadb6834239a8', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c22e92f0dc8b265ed2a9a4ac6ca0c971', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '70a994cce9b923a0ef58c011952d3069', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5a8787a392626503dd44d50b2c3f3a3f', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9c638a70020b87df27c693b898567518', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c0d7cb5f3f60bb4dd7e04e0d2cff0cd0', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1b6c6834529ad0c6c0fbf5e52e18d306', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6c873f9895eeda9cdf2f52ee6630aa95', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9750d9db873d9f53b6573cedfd20df22', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fed9a215a8f9a97bb00db877315a2d4d', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:34:31', '2015-03-07 14:34:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:34:31', '2015-03-07 14:34:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:34:31', '2015-03-07 14:34:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3a9cb8a1dfff00ee80d900928b0a3e4e', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f5ebbc6bdcb946f713e3e52b1db542e5', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '175a39258eb759684692d09505167382', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b554a70a6cc204ed73fce1e9ae25c922', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0ec3f91c72b64ba16e2c8e55d7acd4c5', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '57d2305781b278aee8fc7438379bcaae', '2015-03-07 14:34:31', '2015-03-07 14:34:31', 410780858)  (14.1ms) commit transaction  (0.2ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:34:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:34:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:34:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:31 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:34:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:31 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:34:31 UTC +00:00], ["user_id", 1]] SQL (0.3ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:34:31 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:34:31 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a92d182e69ab6006818d46b89cab4324', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb85628a399142e7bcb16a8c83bba266', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '13c7e83fcca7d65afda16815e467cbdc', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4e8d8d6867c5630fb7093cb03a09a57a', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a42dff5451544496f119977360291948', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e5bde83742f0598aac1f209f38dd9946', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '199f726b2004bb688de4ae8e0fcab5e6', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0e7fea6dc3b61af92fee3df90d9d0b09', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6d9c3aecce21c2045bb4834da95ae46a', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6d045ed1582712682935280445e1c1b4', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2c66d1587cb55c6dcc7bcfd635280b42', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '88c01ccc1d6d6bfb03a8a1830e0e2fe4', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e53b084cfb7d7968cd263fabb10a9627', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b8cc63f543b14ad049278d9d071d9486', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eb4c8544600ade618fcd7be4f2943dc7', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:34:50', '2015-03-07 14:34:50', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:34:50', '2015-03-07 14:34:50', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:34:50', '2015-03-07 14:34:50', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b0a9a2535c256b8ad61f63bbe75e0b0d', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '703a5dc91d59be853bfabbf9465d9ed2', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '38aada3faa0d331d17bcbba041061e87', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1a58dda0ad2fca4855798fcdbaf24d04', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0485dd95190384b28e479d1514ce2723', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0758b1deffb27329e04b38d8c6052351', '2015-03-07 14:34:50', '2015-03-07 14:34:50', 410780858)  (19.4ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:50 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:34:50 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:50 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:34:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:50 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:34:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:50 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:34:50 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:34:50 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:34:50 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:34:50 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:34:50 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 396855775, 'Address', 1057142427) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 106545386, 'Address', 633598004) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ad7fac199433f80f3b6c2cc2d600ca3c', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c814ac9c082c1766401e6dfc7d0c04b0', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5193df2a5afabb54828af34d8d5a474b', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '36be823271d257035fb92e79432c97cc', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '739475b592bd7a3ec078e18a30dcaeb0', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6cbf31010b09a1e3f5bcf86ea205b58a', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '79bfdffcace4360b2616e5f5d162cd06', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '038a43a4c1678ec78016caa405336a92', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3adc28700c5f4ebc159bcb88250719ea', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '64e0f77ad08bdda5ed861ab581891ebe', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '116ed95d93641c4954dc45b2eb45ce0b', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '63a33da47c9e584a881a062dc77b4fea', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b037c04a8b7bca3837fe6f130caf704', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd2f6b42a419011562c88ee16b263e7ed', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1a1dfa4af847e12b67204922680ba25e', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:58:20', '2015-03-07 14:58:20', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:58:20', '2015-03-07 14:58:20', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:58:20', '2015-03-07 14:58:20', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f7201f6d5cb06278f40b42857ed9a731', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7a52d850f693186dbfc8cb1a354162db', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8710bd72f657b741cb3a566ca1f11352', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f69c78377ddea1c6c5fdf5bf16f333a6', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7087eeaa8f2a35d88f54464849ac650f', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1ae8e9459eac4a8896970b17c512f48d', '2015-03-07 14:58:20', '2015-03-07 14:58:20', 410780858)  (23.8ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:58:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:58:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:58:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 14:58:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:58:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 14:58:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:58:21 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 14:58:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 14:58:21 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:58:21 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 14:58:21 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 14:58:21 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '23f9d4c066a1187cb56e3df832104a3b', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7b9b9bb49ae0284615edcecf58fa5e8a', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f11961e2a2b434b1bbefe494f265bd08', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9feb0d843f794d859e70e7b996590d82', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5c49995f50bdc627bf9d58f8539979fb', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '19fb81e9d3e72aed5ecd853f6e93aafa', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5f74ca49720a228c7d3ad460a030f3fc', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4c97b6f26d29fe8bc2916cf49983eade', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2c8ced718fe9b721d48e2023c9827158', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2a635fcee9eb324326fb9c5dd18622e8', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b356e89bb6d7d981922fc0962e773df0', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '73860443960d2dd3679938d5591559a2', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2f1f50bdbf0b6a151b5334a819fe6d8f', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '513750556b11b69ff07548d6a10caaeb', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f782742dedc051b4f1ff5d1173e7d6c4', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:59:25', '2015-03-07 14:59:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:59:25', '2015-03-07 14:59:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:59:25', '2015-03-07 14:59:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '701b84df5a319c41c058c0cfdfbd73d8', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1eb6c140a93d554e9a4b8e3630082d80', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7ef4269832e765aed94a2623c955311c', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c0685f085f3c5184b1afe1da847c7ac3', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '06b39a75eeaf8f649a56471b18107d94', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '73ba063726bddc861a296cc6cdcdc3e0', '2015-03-07 14:59:25', '2015-03-07 14:59:25', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_fails ------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'df769ae3e6fd2c2c15bec00f5048cffd', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4d18f63f3de3e5e5f7ec2cf5559e533f', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd7b5d12fcab338e9282d3b709c9a2e3c', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3acf9a94b1d2dac417e9f2d05407d0d1', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '033851dd9ec3d19f063f2756304a7def', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '061244dad585beb8f60fbc4c1e22a273', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd80f482575360d7e0ca4b6914dc7263c', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6de9f2f54c78ac895cd0739852bd8d42', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '96c54221f197675671a886f843067aa1', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ce1d13a004e91699ffa51cca80222b09', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'bc9af1572f2769df73193c55f089d8d0', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '05a6843af4862e3250818f11d6a57071', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '663029e961abb2a03632592f35ad3fcf', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eaf6a3755ac2a368056c1d938374a207', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b49713ed3b20b6b9e8830f30296706f4', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:59:51', '2015-03-07 14:59:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:59:51', '2015-03-07 14:59:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 14:59:51', '2015-03-07 14:59:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4957a334ff27ce27c323478fcb82a271', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a4609f5068f8e10cac938c26c9a18ccd', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f8a9ef80a28f6951a39a1c41a1601a65', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9e830cbaf0452560c45d916ec79a1f3b', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1be2c17d7761390e77a9139c63fb7d52', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '03834f1a091a77678c2a219506003a9b', '2015-03-07 14:59:51', '2015-03-07 14:59:51', 410780858)  (27.9ms) commit transaction  (0.2ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_fails ------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '41818c845ed993b42392540b3fcde98b', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1beab54fabdf5afc71d44e49a300705e', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e701e44a0db9a72c4cbeaa567b61c14d', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '46266832f2d3a9a84ef538dd05d2b015', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9efd8c6fbc4601d85503f24ff8639036', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f49c1800beac0c396464aa17f4113224', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '25f6883fbaa698b5694a13b5f6f35758', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0798a9eef2c83c5b0998cf0ecba1eb07', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '14d60d27b145862f1fcb3ec4d3b3ae06', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 966629572) Fixture Delete (0.2ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3bccfb1e564cf552420b91f07dbc44f4', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '810d4b047183507a76201bc9f1504f97', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e738f1816427f8fe29c6a4fbdab9e5a1', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b49966af4ae4422992a3425752a0a690', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4f6ff2bb74f18e2f2bd4955503f6530f', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '37a90a46feae2b047ba044b13be19394', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:01:20', '2015-03-07 15:01:20', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:01:20', '2015-03-07 15:01:20', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:01:20', '2015-03-07 15:01:20', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2622a16d517331d20be8e6e331a6569d', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '004cdb014146bf6b6878ff8fdc0d92b7', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '92d3982847ee541fc5758bde80e2966c', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6c5fa980e06c905df9d8810b578f95f2', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ceb5f6438776d9b1b78cdddde7425f27', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '439c73cff86c4f10fe621b5c45bb8767', '2015-03-07 15:01:20', '2015-03-07 15:01:20', 410780858)  (17.7ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (3.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_fails ------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '538303e7593318b0317863b5c2acc391', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9246a4e9df6b5c0c983464f06f72dd68', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b01f71684f70ea8d29a204ff6d506aa4', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5f934e5c2821810a001cf0ffba9b79f7', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e32c5c41e6715faa428b3d6887146615', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '31850e3dbb991db42aa10e4c0c60cd51', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '35021cf0c3a4e868b1819028cfd2ea1e', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '53165f067bec50fa6dc8dffd68b7c8f4', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0622d1d9922838c6d1d0b2d82c4101d4', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3fc9ca2f817c5ca3745710fcd52c7f40', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '273eff3d0ac4a3f64b3c0dc36d50aec0', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '801db441bc7deb5ef08b6bbc8119a6d9', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b2779ce5be6203b3362efa5e1d5a7036', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd9d2f0d6b1e94c16151034782dc69582', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2ad446f70f1ab6acd27adc9b1e67eb78', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:06:17', '2015-03-07 15:06:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:06:17', '2015-03-07 15:06:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:06:17', '2015-03-07 15:06:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '234d0caeca37a7c69761e6bc57bd6d31', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9614eb015ea7e88a939021144d889c24', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '00a2c9adf67ad895156fa9ff1b19f1e9', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dbd55faab38baea917e0ad7828519e39', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e6e6d69b34ce95823b6c5c5cc9c4dac2', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6d788d81231435188327a24d89d87979', '2015-03-07 15:06:17', '2015-03-07 15:06:17', 410780858)  (19.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (3.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_fails ------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '70639941f9f4e0f00c754cb3fdff5e01', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee69ee00fa3a1fb61d840df4331bad72', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d99f771a70bd07ae342491fa4e886be', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a0ee9de123cfdb59ec2b87416f228f95', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e82e6cf0809d664854c7e3697b89a0f', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '920f87f9e1e5e204879a0087b4ef34f7', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '08dbc4d079b27cdc487f70554a00529d', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3ea1aaff10b813573fc23546b824ce15', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '816ba7915edc20af2cd30bd9394504eb', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0741da9cae251e4dc1a40fd715363dca', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f8da1534c52d26c40b61b10b6386875e', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '87ec6369cb4801278741ddaa1e35b4d7', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2af3a58427dbdf7cec1d6e19ab7052c6', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7937618a271e3bad6c0246ff028cbb00', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f4228b89aa95c423998b233eb416923', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:07:19', '2015-03-07 15:07:19', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:07:19', '2015-03-07 15:07:19', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:07:19', '2015-03-07 15:07:19', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fdb14053a600f8081d1dc1a21cea21bc', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ee97df9ae0ba4019a1b89213b71a0427', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'edab14c3fb01d382ed5e86a3e47310d0', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '05144e82c0903c5f659da71e5a85dba9', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0788cb7bad8fdfb8ca3d6db0bf791d60', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'de8269ecf16ef2cb79d4224f98277bea', '2015-03-07 15:07:19', '2015-03-07 15:07:19', 410780858)  (25.4ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ PbtTest: test_0001_fails ------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75b3fbdb532f65cec021cc5bb70e746b', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e9ddb03efaf53f5070e5696f8af3c8e4', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dcf25a65cfa4c63c5d0e94616ae24956', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6bec5c41c688022adf121f6e217cec20', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7ba87d29af693cb44d8d91fff5d2ec80', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '997c4731df69df74f8b844cd30bae793', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2cabbad74ea629be0e1499e2c632ebae', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5502bd4bf3d1221368c37c6a9072dab1', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c7fe16688f75488b75e87cae4817607c', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '96f8a133642e241fa5f2400093e912ea', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'daa9c4396f55dbd24bf3fae82a9c896a', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a7acffdaea582316ceeea5d6b85846f6', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb9fc0a050fe58f2f985265dc34a3589', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1cb950cdeebe3473af94ac946cd58ed2', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3c367ccd77f8b33083cfff082589f127', '2015-03-07 15:08:51', '2015-03-07 15:08:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:08:51', '2015-03-07 15:08:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:08:51', '2015-03-07 15:08:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:08:51', '2015-03-07 15:08:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:08:52', '2015-03-07 15:08:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b5e3e7feeb0a52fd2478e0256a9a884b', '2015-03-07 15:08:52', '2015-03-07 15:08:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5cf54b22b9e74dc114a1358d7e644806', '2015-03-07 15:08:52', '2015-03-07 15:08:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '74cc44b054e277bf27eacd240fb5e269', '2015-03-07 15:08:52', '2015-03-07 15:08:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ffe461d283689fef4a05db6021bb3e3f', '2015-03-07 15:08:52', '2015-03-07 15:08:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6a9e71ce309561004cd6652181b2a091', '2015-03-07 15:08:52', '2015-03-07 15:08:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7c6051735b96f4ab75b4e66e26eddfb3', '2015-03-07 15:08:52', '2015-03-07 15:08:52', 410780858)  (13.8ms) commit transaction  (0.2ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_fails ------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0acd1588e93630590e0680fa361073b3', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9542f66026951f91593172d648c201e0', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c6395794f0131573b7308ad338de4688', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4656b3588c3ec5e5bdd5db628d704775', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9b90534dc1739aead3aae6258ca9059b', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '703022a24126e8a31b4d369aa8c03a36', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1342160cc517d68f24f9703e83fd4631', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a13fb393514621cbe5a068562db16ef1', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2616163159e732acc744fee5e645c1c4', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '234501f2021a14dd2d3660dfb85219eb', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2116f3a76bb5c4a1b9e659f687345de0', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '50d9c1428c9c105b74938252202fb700', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd3bd70e95493d64460f68e61e9684749', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '441c5cc317980cd89031a711849e59de', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '15448a43856ab7137dd72c2dd7972d47', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:09:17', '2015-03-07 15:09:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:09:17', '2015-03-07 15:09:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:09:17', '2015-03-07 15:09:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '11b9686100e8e86f127c2b9910654ca5', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '91f924cbbf779412283542a14fe53661', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8df341a017431b4fde42308afc3e4420', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b91c64e98000b9f0561382f4047922a3', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '223c6d75c35d4685891f79ca5f6050a5', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '28b298ca2aaa51c1106203cbcb4fbbed', '2015-03-07 15:09:17', '2015-03-07 15:09:17', 410780858)  (44.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_fails ------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55c3d514e6468e874566023a016459ef', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2d2f31edffbae7e32b83e2b2a1b95050', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a7eb57a07016242bb4d3ed062e746642', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dc9b88c2cd57421d46d758ff1ada3f98', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ed0852261a56c30a9700282211205a43', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c2eb43f1eba2264b3521873581e521f9', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a25fc0c4ab8f8ff4e51319dbf95cb7ca', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '307b538d6155b21cd68964d6fdc0aaa1', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7e385261b37224479fa80e144d31ed65', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '85cfa046ca21947e7a7220cbe304b507', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '754c503fcb8243b1cd55be4af99f1b76', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fa9453c09556f44c31476c1ae5b7556d', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '61e774d804c29d45c20a368bf4e4d90e', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b12e691df45e1a8148f32b78afff2a2', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ad8695544a936eaad32b494d1384ec81', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:12:16', '2015-03-07 15:12:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:12:16', '2015-03-07 15:12:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:12:16', '2015-03-07 15:12:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fa58eb30e8dfcbdf4dc500ccf4278963', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9109849730a2353dba943553343cb0a6', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2e6fa8077dee2cd778f9f8785af20cca', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '664669333330a4533069b90531e3abae', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd7a45f695efdc3f92ba538ddc09e5f46', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dcb6ffa53c9111aeebc8073139ad33d7', '2015-03-07 15:12:16', '2015-03-07 15:12:16', 410780858)  (25.0ms) commit transaction  (0.2ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_fails ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0002_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0003_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0004_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- PbtTest: test_0005_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- PbtTest: test_0006_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ PbtTest: test_0007_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- PbtTest: test_0008_Tags of multiple parents ------------------------------------------- Tire Load (0.3ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0009_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0010_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0011_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0012_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0014_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0015_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0016_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0017_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0018_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0019_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0020_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0021_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0022_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0023_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0024_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0025_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0026_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- PbtTest: test_0027_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- PbtTest: test_0028_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:12:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:12:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:12:16 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 15:12:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0029_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:12:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:12:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0030_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:12:16 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 15:12:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:12:16 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:12:16 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 15:12:16 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:12:16 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PbtTest: test_0031_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '43f77e9393a4af362ffa380c5a16f208', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc9584b11bbb0041e25b4481b0831d63', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '17986aa54b8bf10f09a80a1cd554a905', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '72a372058621f2a68f9a8f50ade638c6', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '051ec99780c86c6dbc81f778c2812f21', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '73b5b327c277ccf8197f36159b8e2e68', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6adaca62e4b4531494b068d6edf9f944', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '31118502468812153d8a962b5d631137', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '68582aa324f75c6f54c3db80aff1f6af', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c97919d7db805dbea188f9393bf88dd8', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5ec26b671c8d77de79b65f885c25e2a0', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '07e0477a1e218e1f06e6759f597fd285', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'acfe3fab22d6e8fd8c11bd080ed3b64b', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eaf11aef66f97d9c91a12ffaa366f38a', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3543a4cf2e49eed0312e5d2dff6d61a9', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:13:15', '2015-03-07 15:13:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:13:15', '2015-03-07 15:13:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:13:15', '2015-03-07 15:13:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '85b6cbda82419049fda4a08b1b1d9bb1', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a7345aff83459bc1f1182b18ef3baa3b', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6ef72cbc974d0474db695a2bcbc651e3', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '566c31d0d8ec9754c88e44c7eaa019df', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b98e8eb9c1432386b36a5660fc00a9e8', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2d0c6edcdb7c18ced7150611d9845677', '2015-03-07 15:13:15', '2015-03-07 15:13:15', 410780858)  (29.4ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_errrs ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0002_fails ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ PbtTest: test_0003_is a module ------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PbtTest: test_0004_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------- PbtTest: test_0005_Tag as not polymorphic ----------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- PbtTest: test_0006_Phone as polymorphic --------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- PbtTest: test_0007_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ PbtTest: test_0008_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- PbtTest: test_0009_Tags of multiple parents ------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0010_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0011_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0012_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0013_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0014_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0015_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0016_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0017_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0018_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PbtTest: test_0019_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0020_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0021_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0022_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0023_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0024_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0025_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0026_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0027_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0028_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0029_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:13:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:13:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:13:16 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 15:13:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0030_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:13:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:13:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0031_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:13:16 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 15:13:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:13:16 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:13:16 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 15:13:16 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:13:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PbtTest: test_0032_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '79990750dee8c3a710fee6b1028a1a19', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dbd22d09ce0ef94254ff03c5f387322f', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd5860524150be5035f95af07eadcdde4', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7ff59311d3f7c7dae59572542cb5fb64', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a583bba4ca0b0fd545ed6ddf3deadc82', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0969cd7b6b4a156b3740c263c294ba9e', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f6e6f2e112afe89196a042738a6a21c4', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f162985f20381483e937e1b3003368f5', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0da0294bdd6a0c5904d7a45550055edb', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c83fa420adedc5a0d9a7afac2c9fe017', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '33a4f8addeda957d4587c5e854337a9e', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1566d465f363be9bbb65eebc0d6cac7e', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b6929740d730f6dacbd194f5c18de440', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '30377c02cfe33b3672824121ea7a4e2b', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f2e47ced004e241721a8d48bab8e43a7', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:17:50', '2015-03-07 15:17:50', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:17:50', '2015-03-07 15:17:50', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:17:50', '2015-03-07 15:17:50', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2e6e66a7f0d1268cb3db12c0e818c8e0', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cd62c2ec5744c0a0c671e2e837e2c4cd', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '19c08f1f747f4115d3ebbf76e1045245', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '52125bc068b79ef2684a59f333271410', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '65167a1f7cda06e71186f8adbb642066', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0ef108454a95bf70ea507aa4d759064d', '2015-03-07 15:17:50', '2015-03-07 15:17:50', 410780858)  (14.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (3.3ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_errrs ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0002_fails ------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0003_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0004_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0005_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- PbtTest: test_0006_Phone as polymorphic --------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0007_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0008_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0009_Tags of multiple parents ------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PbtTest: test_0010_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0011_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PbtTest: test_0012_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0013_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0014_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0015_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0016_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0017_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0018_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0019_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0020_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0021_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0022_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0023_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0024_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0025_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0026_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0027_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0028_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0029_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:17:50 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:17:50 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:17:50 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 15:17:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0030_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:17:50 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:17:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0031_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:17:50 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 15:17:50 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:17:50 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:17:50 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 15:17:50 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:17:50 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PbtTest: test_0032_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8db4a238dbf42f4bec723c75aff3d173', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3d0548b3ef94b5fc1fed7ebe941d57d2', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '237171202fea41ed7b98b25cd91888fe', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9027b816926919aa985ff88e46af6a75', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e2caa8cb0ccd4f837527b13b487a5b3f', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '112bb2fcd68acfd4c6caf1a51b34602c', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c4a138f1b03e41297bb00cf783720f14', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3f960fcc2012af9cbf553ee3c313d09a', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '78eb86c8eee422b848ef231a2384a0b3', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '64df4e95a14175b1257b9ed266e9c1cd', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6f854135441e15a06d0b413bc81ab3e2', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3d0378449cabb98e0815237bd5dbed51', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ad8a1cc64f31b41412b96d6aa5e82739', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aa902375ffc257983b2712a81e9563dd', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '39aa2938059dd9d19cfaa91f690c9334', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:27:01', '2015-03-07 15:27:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:27:01', '2015-03-07 15:27:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:27:01', '2015-03-07 15:27:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '31e00c7535514bdd51b1a9474b41782f', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd1b6184da0fe78a6b276a0b2bde8303c', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '162741d2ab94bd369f9205baa60d66ce', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8e05ee923182e4d6dd32a374b4b99abb', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bc35606e3a11e232570f0a6a8763bc34', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '45350a310e51ecb9f260e3928aa1f1d7', '2015-03-07 15:27:01', '2015-03-07 15:27:01', 410780858)  (21.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_errrs ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ PbtTest: test_0002_fails ------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0003_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0004_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0005_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0006_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0007_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0008_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0009_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0010_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0011_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0012_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PbtTest: test_0013_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0014_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0015_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PbtTest: test_0016_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0017_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0018_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0019_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0020_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0021_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0022_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0023_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0024_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0025_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0026_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0027_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0028_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0029_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:27:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:27:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:27:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 15:27:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0030_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:27:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:27:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0031_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:27:01 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 15:27:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:27:01 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:27:01 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 15:27:01 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:27:01 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0032_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '79f20b8cf029b5d733ceb7a947151013', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '70f010cce2e9eb18c8b37c480c3ff48b', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9eba9eff62e740e03aaa4715671edf95', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '523f5c401bd6739b2d3cce38ee8198fa', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3ebc138847019a4205b18146ecb039e4', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b4fc2a49c126acee0fafad90efdaf65f', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '13d2289e6c91b44c8732d6225c4df5b7', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2f86f2015973731020fbf1b905058e84', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5f18d3dd1dbf40910431fe87e6a71ade', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '47b49ddb8c28c1b966200e3ae8f2cd0c', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'bf1538b224cbe5694e97e782ea681f2b', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f2db170997b37e39c75b5d4769143509', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd955397c6118b23e969e03fbbe193143', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bbec11fac2ff56dc6945cb02822ce13d', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c169fc27cef98fa47b956b54d2f52fbd', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:34:15', '2015-03-07 15:34:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:34:15', '2015-03-07 15:34:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:34:15', '2015-03-07 15:34:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1eb77cea18149e73c4552feff9835c79', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'df9b4910e71e7ecc3708a41cdacaf150', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bb0539d5cdd8031f2a7f72b1d66dc092', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a4a44cae88d7d3072d841d0f3164f82e', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '07b424593c2c26738cccd1c8f8f6899b', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3ba5ecf9f30d0166807860b4dd987cc6', '2015-03-07 15:34:15', '2015-03-07 15:34:15', 410780858)  (16.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_errrs ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0002_fails ------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------ PbtTest: test_0003_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0004_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0005_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0006_Phone as polymorphic --------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- PbtTest: test_0007_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0008_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0009_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0010_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0011_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0012_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0013_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0014_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0015_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0016_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0017_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0018_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0019_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0020_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0021_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0022_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0023_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0024_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- PbtTest: test_0025_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0026_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PbtTest: test_0027_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0028_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0029_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:34:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:34:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:34:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 15:34:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0030_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:34:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:34:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0031_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:34:15 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 15:34:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:34:15 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:34:15 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 15:34:15 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:34:15 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0032_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9a8b5fee51ef82a49a9a39677dd6ba21', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '197ef732474b73c774741679a4fc76c8', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3a768c378347caf0ca7e2f1d05469020', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '284b06fc49771597278c482658fdccab', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e75232d75faad1c5a0833c8d0997efd2', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f6dc5e87aba7f6fb8477f2e93bc6ae04', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'feb78d0084e638bca17a140448c9e656', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f4b7a684969d7b9bda905f6e9a40fccc', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f1004a33729561024b2dff025444a4cd', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '03405c08172e1bc5e9b0209fb154d3cb', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '79e8e6b3ae82fc15ae075294905e7ea2', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '27dd35b0b9ec8d66cc1a29875cd21f76', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6ef2a21ef803a3b27876cf2db9625536', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '23f7a03f1d6a9c7fb6f1d6938a980098', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9cf81de683188b61e83fcc81a0d1c087', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:34:37', '2015-03-07 15:34:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:34:37', '2015-03-07 15:34:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:34:37', '2015-03-07 15:34:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '833ff59fecfb1b2649ed8a5d2727be6e', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5e03cad4b9a4332a00188c0ca5c1590f', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a078abdccdacb460274e471292b28731', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fc4c0db6320981b6cc790c82b6bea929', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '03268493c2b38141ade40d2ac5a8036e', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9a133f3a774a35acd196b3d9db01dfd3', '2015-03-07 15:34:37', '2015-03-07 15:34:37', 410780858)  (36.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_errrs ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0002_fails ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0003_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0004_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0005_Tag as not polymorphic ----------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0006_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0007_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0008_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0009_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0010_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0011_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0012_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0013_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0014_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0015_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0016_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0017_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0018_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0019_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0020_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0021_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0022_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0023_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0024_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0025_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0026_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0027_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0028_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0029_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:34:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:34:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:34:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 15:34:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0030_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:34:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:34:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PbtTest: test_0031_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:34:38 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 15:34:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:34:38 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:34:38 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 15:34:38 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:34:38 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0032_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6db44cc4604a9063f506706490dc76ab', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b355a17f19160a557eaf8f8aa299b371', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '45252c44c7b7e7d1fd8e354a7f9e5015', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3d6b1bcd82c363dbc60d7ecd336dbd6a', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a5ab98a42948a9b345ae0c345c36f1b4', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f547aeef7bc56377f0081d9f99bd7b10', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f537dd1d473c54eb1d7c85cb054b8bdc', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f1a0e2dabbab47f266bbc15907a52654', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '37f18cc213354ac8282ae63d4adc7e74', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a720fefa4deecb420eb5874e80f9f7e3', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '569989337cb66867c2967e6ccbc324f1', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd88c97656371498c3231d74243129312', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '41c006662c00e7e972c9b42f31cc1e06', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '609e4a201655048e3e6ab6f0a174d78c', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '119e6297cad8a8ddffff00f8a61ce882', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:40:37', '2015-03-07 15:40:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:40:37', '2015-03-07 15:40:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:40:37', '2015-03-07 15:40:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dbd2eaa23b65467b99e950c698f51256', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e938d514f9a8f6b1ee1f43cccd047cc3', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '04a7c23ff8dfbbfb2c950cef6f26c476', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '04639d76c2d166479446cd74651845d7', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9b4b91601b49ff7b015352ed7521d495', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '82ec466ef8c5dd561f47e2d8b59a159b', '2015-03-07 15:40:37', '2015-03-07 15:40:37', 410780858)  (15.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0001_errrs ------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------ PbtTest: test_0002_fails ------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0003_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0004_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0005_Tag as not polymorphic ----------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------- PbtTest: test_0006_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- PbtTest: test_0007_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ PbtTest: test_0008_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- PbtTest: test_0009_Tags of multiple parents ------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0010_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- PbtTest: test_0011_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0012_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0013_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0014_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0015_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0016_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0017_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0018_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0019_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0020_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0021_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0022_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0023_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0024_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0025_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0026_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0027_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0028_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0029_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:40:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:40:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:40:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 15:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0030_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:40:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:40:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0031_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:40:37 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 15:40:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:40:37 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:40:37 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 15:40:37 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:40:37 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0032_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e1848de0b7448705e96f2539d493644a', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '539c1baaf658be324700239cc47e16eb', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'add5706746104c40136a9571a0222f18', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f3ee7273ca98d8caf2823fba1be99348', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '701860a1cec9544495cad64848fe6602', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5a3e494c976cb13344d099c3e89831ff', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '547cec985ff01940f9f0a0aa4a1496fc', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8f54e5a77a6c47f7ac8716fdfcccd50f', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2bc5e91bf68b403278ec08e4838e5697', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f1ca7670d8295b45114f48ceb60022d9', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '586933b65bc7a51c73ebffab4d0db861', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '81b540a084b347d18451c79022bed08a', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '888bcab840ced79c64b94501d26aabee', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7dfbe22467218978e1cad7b472f246db', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4d7577ba741ac9f46c5f41e43caf8a6c', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:41:16', '2015-03-07 15:41:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:41:16', '2015-03-07 15:41:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:41:16', '2015-03-07 15:41:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6c57ae600f27b76cfa6ffc1b064f8d20', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '36816816a667fce915a7f209cf36e906', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '28b542d4467a8cbddc90f2132de795d3', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b35c46dbdc0455e99b88bfc5b13d57e5', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5b4c81681be65f42c35c8d9ceeeb905b', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a63bed81b6591a1f94537e14bd49e57c', '2015-03-07 15:41:16', '2015-03-07 15:41:16', 410780858)  (15.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (3.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:41:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:41:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:41:16 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 15:41:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:41:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:41:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:41:16 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 15:41:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:41:16 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:41:16 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 15:41:16 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:41:16 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c0fa630a801961e3cc41b60f34292ae3', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '595e27069f41aafb293e3adba2892f42', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd97fc573c534602ece8c6478998a5332', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7e97f3aa5acb9c27eabf43c572885e42', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f190aca820b1d7b992c6cb05d96b3ce', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4255f7c9f0188cc1d9600d9838efae5c', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '99ea5607d40da7164ec419cd532b4796', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2caca8f322a9ddf4cd73e553fb29f5e9', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f8697c1d0929a8b4e16fefc7db549838', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '36bc0951f5334511b5a163688f9500fa', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '91d764bf1bd3a195ef16ff1e113b63be', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9c9fb54fd0bb545c384f13868efaf143', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '430af9ba638c861c22abd2c370357244', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01539ea94991b8f939ee0eef795c9ec3', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '80e700e5eb95cf820e35b1f57f6b035b', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:42:04', '2015-03-07 15:42:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:42:04', '2015-03-07 15:42:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:42:04', '2015-03-07 15:42:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0a627442d14c44cc9069f981c4541232', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '073d2d75d2cddbf16848e0eec85b6d53', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fc9b92b036386e2c3613dec5ee3e96fe', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5ec8d4c3f753f7c83232b6336ee5ce8e', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a7b71d5b6fef1b54ae0b54b09b0b09b3', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0120f770f3c904b6eb7b57150f7eb50c', '2015-03-07 15:42:04', '2015-03-07 15:42:04', 410780858)  (27.9ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:42:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:42:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:42:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 15:42:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:42:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:42:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:42:04 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 15:42:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:42:04 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:42:04 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 15:42:04 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:42:04 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ab56ca2196582f3d9f99188075713cdf', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e7c3db00959409453d6885b701d522a4', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b32f0a72c301f2c210ae6e31c8b02900', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9cfb7bae3e0dadab9f884317ec183c2c', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fbb0177efa559c0054ba45a988466d33', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '557910638f70092c737ed4488e07d7ee', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b474786fee332ee66ef1066058540ae0', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f1fd6bf296985e4860fcad1a8aed2f4e', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '130018fa5bf1194cb74a51e94aedce32', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd5ce520afa19e744f9a9f8720a1c7217', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f529710e59c35d8868231560e42b0bc8', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '10f7ec11c7c6b52c06cbe8488c97681d', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f3d4b7a4fc4a35c477706dc05f9ee93b', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be3fd5edd516ca6ee03d5dfa629480f4', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '71aa3830e4e45385c3cf860a30eb57c4', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:56:28', '2015-03-07 15:56:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:56:28', '2015-03-07 15:56:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 15:56:28', '2015-03-07 15:56:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6184d67db3a5e109b4eade9538d5c5b0', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6125b1229bafb877d98e6d902bf576ca', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6b20d3f07be6c2d01a33fe95a57ca006', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e09bb0cb3e1fd17051aec7358113126e', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0461bc7834b106cd7b461324f4628ccf', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dc92a8adcea63a10469de53f9f516b39', '2015-03-07 15:56:28', '2015-03-07 15:56:28', 410780858)  (35.8ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:56:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:56:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:56:29 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 15:56:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:56:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 15:56:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:56:29 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 15:56:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 15:56:29 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:56:29 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 15:56:29 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 15:56:29 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6fe1dcaece599e45534b6586c2a5b36c', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '26496f2c66c663b0dc087079b71442de', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd61875f23d087056ef2f77967162adcf', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0c41cfe930fa3aa205dc9cd1a6ff8617', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '58f2e704fb62c1f939672059ca36c8de', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '049052f1c4f0c865d9a6a24fc43c025c', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b993ae78422956ac087ec684725078ae', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3332b330e199f3746ed050ffafff8cde', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '29135f52e6954c94fe156bd327991b7b', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 712317748, 336964236, 849808553) Fixture Delete (0.4ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '491ebfc45f101c977b70e83cfe6f6ebe', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '088c458e8f1fda5924f789c746995099', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7dd57aac6caea87187e54b8add33f9e4', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8f71ba31a9d67ba3d34240c5eb0921e6', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f7475d7dbe0a5662bdf5250604b83db', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5dc1447d21457d04a60db8a061588387', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 16:16:08', '2015-03-07 16:16:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 16:16:08', '2015-03-07 16:16:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 16:16:08', '2015-03-07 16:16:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0239fd5c00639d7b6288b20ee2c58c37', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b57ed25e62b567fad179e2592811eb5f', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7c19e47b6a2eef2e83959e0a2c90c4c6', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1d71daad1a4b8d3087ecbf4ef4d90247', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1c899c8249b1d9fec949fdf87d9e650b', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8ba3a18e58acc6a31aa74da03cd7223b', '2015-03-07 16:16:08', '2015-03-07 16:16:08', 410780858)  (15.8ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:16:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 16:16:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:16:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 16:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:16:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 16:16:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:16:08 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 16:16:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:16:08 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 16:16:08 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 16:16:08 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 16:16:08 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '173dff8498b9d47cd82e74adbbfe015f', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0e0721722bda7703203cce132fa63c52', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aca84d4d4be13ea87b4207a048eb56ab', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '963956b716d1024753b024f74ee7e491', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd4157394c8a088fc692080c4e6c368d6', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e69e786648109d57feb78a177eec387a', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fc64394b3c98b45b5e42d820f5080f23', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e608a5e651aca8fc8cdc87ae5ab68cbf', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd2aedc03bba87a78f817dff5ca0ab417', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ed9c23ce19cec6212a1dbad8de680af9', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b083aa968656fae34ddd038f1e15d91f', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f88a783ce4e6723111870fc98baa3d57', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '130e9179da94f003f64c27dceae1ffb2', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '63a522164a1b7f896472c3a88b3fc9ce', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2516a3fe41bd9257334969321b42471a', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 16:25:25', '2015-03-07 16:25:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 16:25:25', '2015-03-07 16:25:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 16:25:25', '2015-03-07 16:25:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e448876d74bf3480e92afceda953f63f', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1d8010b939c2eb2aff9260e25b7e37b3', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '104d9cfb723bb661daab9b8348186cc3', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '19809ec4f4ecc913bd7e89d64979f767', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7093ab140cad6fe90d62dc3ba63ce568', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '02b833bd9e44adc769e81224373ce4f3', '2015-03-07 16:25:25', '2015-03-07 16:25:25', 410780858)  (12.6ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- CoreTest: test_0001_AttrSanitizer removes conflicting attributes ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0002_BuildCmd returns build command -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0003_Reflects retruns has_one and has_many relationships ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0004_ReflectsAsClasses one and many relations as classes ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0005_IsReflected gives boolean of child ------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- CoreTest: test_0006_SingularOrPlural responds for child relations ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- CoreTest: test_0007_IsSingular tells child singleness ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- CoreTest: test_0008_IsPlural tells child pluralness --------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ CoreTest: test_0009_CollectionProxy: singular or plural proxy name ------------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ----------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0011_AsCollectionProxy: has one or zero items ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- CoreTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------ PbtTest: test_0001_is a module ------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0002_User as not polymorphic ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------- PbtTest: test_0003_Tag as not polymorphic ----------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------- PbtTest: test_0004_Phone as polymorphic --------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- PbtTest: test_0005_User belongs to table as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ PbtTest: test_0006_Tag belongs to table as :user ------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PbtTest: test_0007_Tags of multiple parents ------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PbtTest: test_0008_Phone belongs to table as :phoneable ------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0009_User params name as :user -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0010_Tag params name as :tag ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0011_Phone params name as :phones_attributes ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0012_Phone params name with false as :phone --------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0013_User belongs to field id symbol as nil --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PbtTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PbtTest: test_0015_Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0016_User belongs to field type symbol as nil ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0017_Tag belongs to field type symbol as nil ---------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PbtTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- PbtTest: test_0019_User belongs to id as nil -------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0020_Tag belongs to id as user's id ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0021_Phone belongs to id as user's profile id ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0022_User belongs to type as nil ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- PbtTest: test_0023_Tag belongs to type as nil --------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0024_Phone belongs to type as 'Profile' ----------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PbtTest: test_0025_User parent returns nil ------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PbtTest: test_0026_Tag parent returns user instance --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- PbtTest: test_0027_Phone parent returns profile ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:25:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 16:25:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:25:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 16:25:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- PbtTest: test_0028_Profile parent returns user ---------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:25:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 16:25:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PbtTest: test_0029_pbt_parents: can show multiple parents --------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:25:25 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 16:25:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:25:25 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 16:25:25 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 16:25:25 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 16:25:25 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PbtTest: test_0030_pbt_parents: one parent for polymorphic ---------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'da216b630b00db488b137c19b57726c7', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f0bd44d8fc5096382a1bbbffedc7a4fb', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0690525b6731f00745b3a995c7cfcd1a', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fa51aca9023695e413dcc9ce4da3a3b5', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '745eb9bb0ed228e6c44237c693b4c2f8', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd376dc6e3fef1eecc065afa3eb562a7a', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4f3b9c99757203ab22e16c0cf4b223c7', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a4944de61b16b469514ce4dac62e80c5', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cde752dcf27fbac6e79f5c4aadc7b54f', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e656d45315e4944a6df104c6237bb639', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '019fff74374372b0ef74db60148c5ee6', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0d931dda984a3673250fdbdc94c53047', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '640eb33b7c1b253a826c78f7d49444e6', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '77f76961b24bc9e7ac63698e1b515207', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd591889cffd1a2a2f8ea78ce7a379ef9', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 16:31:27', '2015-03-07 16:31:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 16:31:27', '2015-03-07 16:31:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 16:31:27', '2015-03-07 16:31:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1c0b23f90cc0d69f61f3982bd4b4763d', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f7fd7a5978122f2e048ef161172d9e1c', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '15c53537196492d1b7d945611fa5e1ae', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd7a627336679e5ad1859c7a0b9091c31', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b2d6646599255a9107e2e9aee7168be2', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6f6f4f8ea70730692bf3ea123b2dfad6', '2015-03-07 16:31:27', '2015-03-07 16:31:27', 410780858)  (15.2ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:31:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 16:31:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:31:27 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 16:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:31:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 16:31:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:31:27 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 16:31:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:31:27 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 16:31:27 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 16:31:27 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 16:31:27 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9b33cdb4edea0f97435a5a8f56996966', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b028d7662e600c95c032aceaa082c663', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0ee8afb7b95238ee3369a3f61baffad2', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3791291b69bd60d9184602edc9e8e441', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '59335d05dc2a3793d789692ee3a1f2be', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '06b2e791f9e9fe6e882e6af04df830a8', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1557bf3e01a538ab57e489a9f7d84c5b', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5ba3dadb798f29f016221078a9db06bd', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e61e79aacf41cc3b47b1b83cfbf0876c', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4c4ddf8b7474379f6dd9597993ef01c8', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '26b3e3cba7fac9d092cd704c850acb32', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd982301f4a473d2f5740424cc5bf62a4', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ac8c1500a5fb51e4d79cfd48a3dcc33a', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3aa2dc6c19ba6534f198137e0c7ecc48', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '328fac49b62f43133b0eb151aceb3918', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 16:32:22', '2015-03-07 16:32:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 16:32:22', '2015-03-07 16:32:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-07 16:32:22', '2015-03-07 16:32:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ab96a6c7464d777aff217e8bf3c36b63', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3bf182d99b8ee8caea5cd8762bbca214', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd6fa275e99f9d31a7e6857c3ae894806', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b0e9380277b432950834b6fd0793343d', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6a0d279c6139875e8670757acc358949', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '418bad1b33728d71cb3c306e6b59a181', '2015-03-07 16:32:22', '2015-03-07 16:32:22', 410780858)  (15.0ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:32:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 16:32:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:32:22 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 07 Mar 2015 16:32:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:32:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 07 Mar 2015 16:32:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:32:22 UTC +00:00], ["id", 1], ["updated_at", Sat, 07 Mar 2015 16:32:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 07 Mar 2015 16:32:22 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 16:32:22 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 07 Mar 2015 16:32:22 UTC +00:00], ["updated_at", Sat, 07 Mar 2015 16:32:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd91b53ec4a3cf73d4dae6f5b00f3add9', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6e146ed44ef48467b57a5d996b70182f', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c3da752bb4af823eeb6010c71aa3fc09', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd754a20cbbfc98bd73f7de0833a64ac4', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c42b852aec9b40eb7ffef523ee8b7b8c', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8153f2ec826bff1de2da0c411623f275', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ee17b6f3ccda5c71c3417fca7bcf7e2a', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '03f215f02ab0c4cdd7d7ce9fdf733cd5', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '59b3cb7d96b17fed4a24b0060b624160', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2a2b1e21944cdf82bca70afa86ed807c', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1c88372a35d4b63d953096127e89a389', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2ece7bf1aab59b4babf1f372621e63c0', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '33c7972633cc2673c7e40f4ba33775a6', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '07704a94811be2a61b0e21282d2a10cd', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0b05228eba40c5d5d1976169e0a63cce', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-08 01:10:51', '2015-03-08 01:10:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-08 01:10:51', '2015-03-08 01:10:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-08 01:10:51', '2015-03-08 01:10:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4bddadc73c3e1d9e936b5bfc9f10b547', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1a1531cb5d77b7fe6ea785ca1d1f57f1', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '47a8b20c8ef9cf1ca6e75ad1cc4e20d2', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '860b74e709ac47ff322a0b1d06ec56d3', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '867c011c07ba3e2a7dc16c806e9bf826', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9b9930f4ca488c747ea760f41989dafd', '2015-03-08 01:10:51', '2015-03-08 01:10:51', 410780858)  (15.9ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 08 Mar 2015 01:10:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 08 Mar 2015 01:10:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 08 Mar 2015 01:10:51 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 08 Mar 2015 01:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 08 Mar 2015 01:10:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 08 Mar 2015 01:10:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 08 Mar 2015 01:10:51 UTC +00:00], ["id", 1], ["updated_at", Sun, 08 Mar 2015 01:10:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 08 Mar 2015 01:10:51 UTC +00:00], ["updated_at", Sun, 08 Mar 2015 01:10:51 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 08 Mar 2015 01:10:51 UTC +00:00], ["updated_at", Sun, 08 Mar 2015 01:10:51 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '03fd3a46534e7b659ab931b60a2807df', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'acbde95622f83d800abe32c733e27dfc', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dfbb91cc3e40e628b5729d358da7a81c', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3eef4ec45d5de2f9202b888be4682362', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2ecabc60b4b7d7d057144578b125c2cc', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '75f7e4e55bf4beafca576a21f044fbb7', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6ca17407c2802ffadd0a7838066f04c5', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f96ec89a7a8f8d62cc60c305f8b96d34', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3f98b68893fd6da06ba6f4a53a424dc9', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '92a02483341aa607a4c4dbc93f89c03c', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b94f9c9c983d0c8838e7c30e2927c256', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'afcf59baf931640f9a7ce3815e76d888', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '02f1ec1bf0bbbfd80f639ccede5ee65b', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '51225d14151aa95f3a62bceab7d583cd', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a188ab8fd32542dfa94779212f59c1a9', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-08 02:25:07', '2015-03-08 02:25:07', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-08 02:25:07', '2015-03-08 02:25:07', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-08 02:25:07', '2015-03-08 02:25:07', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f8424d7a17a694482187ba0c0f01ae71', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8f38411fd894e11d1aad06d76f739f12', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1f442d11837d2266c1270fd453146429', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8f82570a0283857403cb09dd5111e6e8', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6fb640ce69b8fa48ee6beac523d128f3', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a96959331c40a019a1a796b88f9a8744', '2015-03-08 02:25:07', '2015-03-08 02:25:07', 410780858)  (13.2ms) commit transaction  (0.0ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:25:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 08 Mar 2015 02:25:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:25:07 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 08 Mar 2015 02:25:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:25:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 08 Mar 2015 02:25:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:25:07 UTC +00:00], ["id", 1], ["updated_at", Sun, 08 Mar 2015 02:25:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:25:07 UTC +00:00], ["updated_at", Sun, 08 Mar 2015 02:25:07 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 08 Mar 2015 02:25:07 UTC +00:00], ["updated_at", Sun, 08 Mar 2015 02:25:07 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.8ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 576421514, 'Address', 761411935) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eecd7d57ed582f87e448dc2d785c843c', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c01a3dfddd6f1b57cba3f020f77a6b79', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '68faeac38b0e49f0dccc68330731f7a2', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6e02611976c2e2f6a41771045523e168', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '20741673ee89de4f0e6a715193eb1a63', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4707dba90df595afe719d55205defc85', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a7290c0a917d090dadfb286e9f3d7994', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '08dc61e2d1bbad27a576756aca9d4464', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f24b246cc00be012c8024206ea249c26', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '642c489dbf4e93cd3b598619e8d39485', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e16dc986e5151eab900bc8392ef79602', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 102195269) Fixture Insert (0.5ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b58106e0cc9e23c3f1977f31739795e5', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '69aa98e220c459dd96f78cb2a1ff4ba3', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '434b2496435c466ae3dd695e62188ab0', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '06fb55b984bdd366d14f375bb95acfc9', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-08 02:53:45', '2015-03-08 02:53:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-08 02:53:45', '2015-03-08 02:53:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-08 02:53:45', '2015-03-08 02:53:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '55667d3cbac8cab58fa5683640b50383', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '145fc2d792b1a98fa488913a74003e97', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cbc1269e894666fc6076753d8fc40e58', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e4e33caf8e232307e51cefde6c6bef78', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '324ef655b10bab1f250c4d4cc8d74795', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'aa2ab389738409ff1e7de6487c4a0fe1', '2015-03-08 02:53:45', '2015-03-08 02:53:45', 410780858)  (14.2ms) commit transaction  (0.4ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:53:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 08 Mar 2015 02:53:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:53:45 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 08 Mar 2015 02:53:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:53:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 08 Mar 2015 02:53:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:53:45 UTC +00:00], ["id", 1], ["updated_at", Sun, 08 Mar 2015 02:53:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:53:45 UTC +00:00], ["updated_at", Sun, 08 Mar 2015 02:53:45 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 08 Mar 2015 02:53:45 UTC +00:00], ["updated_at", Sun, 08 Mar 2015 02:53:45 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- The configuration option: test_0001_takes in configuration values -----------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '706abf7a03606b38b77c0d710084edff', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '61cb4c7dd6c43c1b43c2e81fa929349c', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '63d36861093b936f63739ae6dc0d577a', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a3510ff19561f59ae5a7615cb5cd227d', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4688be3ffc34ba6b94f582ad812b7e4a', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '09aeeda5608f22849b9e044dc5f57629', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '93deb3c1e23e3e2bc8f02cb156f68a32', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '209c889f5de1015fb2a128790071247d', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f7ec7c8ae22d4fc2bcb1064ce62ae981', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '506d6dd0fafc90c1d0e3866d96db10c5', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '33a09519385aae0e01494ddcf5800f09', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f6eb8582ffacdba36a09fd7fc1dc0a23', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55e6f0a2ffb7f4172e082cd9bceb8e5f', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ceb0a7d043e83efe25ba61cfcfba481e', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ff60368aac5bed29331f9539eb610845', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-08 02:54:40', '2015-03-08 02:54:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-08 02:54:40', '2015-03-08 02:54:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-08 02:54:40', '2015-03-08 02:54:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '082b56194eac081e445e6d9bfa1714b0', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8337484fa8eb68bd384fe574d4026d5b', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8b99522362e8b28e5b89e76f7c9d09b5', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6d1bbb30567fa83ee52df02864578b51', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '874d1207477d0654bb991f5713efa2a5', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8628f183c9a121cafca774851b801513', '2015-03-08 02:54:40', '2015-03-08 02:54:40', 410780858)  (24.6ms) commit transaction  (0.0ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:54:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 08 Mar 2015 02:54:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:54:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 08 Mar 2015 02:54:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:54:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 08 Mar 2015 02:54:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:54:40 UTC +00:00], ["id", 1], ["updated_at", Sun, 08 Mar 2015 02:54:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 08 Mar 2015 02:54:40 UTC +00:00], ["updated_at", Sun, 08 Mar 2015 02:54:40 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 08 Mar 2015 02:54:40 UTC +00:00], ["updated_at", Sun, 08 Mar 2015 02:54:40 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- The configuration option: test_0001_takes in configuration values -----------------------------------------------------------------  (0.0ms) rollback transaction  (1.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '788bafc84bac7112db1c60812b62e5aa', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd0febb81ee7ab4248dba9550a1835a6b', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5178018e07947227199b3c978005134f', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dff66854f6c83b43fdcc6f49f4199be8', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '995e07988bf2c12296414863bb57e931', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '52c094013536a8f697e97d9e2ee4ab82', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'beddbd56d7d9d1c5689aa6d6d8cd6b59', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cca9fb9304315f52f774217885a69113', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9cb241e13b503ef1833a08e32a3424b6', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '958b458f33840647772d09e0d312fda0', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5ee807b524af10dafa66d99f74f91fbe', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c7ce45510802185d71644471e2004937', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c8e903f2c4169715c61672e093130d1d', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1598a1b08dd17ea2b2538c608e373798', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1b8422dd05b25570c10446c66f802c4f', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 08:52:14', '2015-03-09 08:52:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 08:52:14', '2015-03-09 08:52:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 08:52:14', '2015-03-09 08:52:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6cf1ecff6f2421b9a0a40b077bebfb63', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4473302bcf0524f4f6987c5c92a676d9', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c4083b85ddf68aba5bfba2858ee2132f', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ee52699002f13cf7d2fa0cdc92b1d435', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7cb7df007ff1ab866e896ed530b8133f', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'aa00955405b77e648ad6f650b980c361', '2015-03-09 08:52:14', '2015-03-09 08:52:14', 410780858)  (21.1ms) commit transaction  (0.2ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:52:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 08:52:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:52:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 08:52:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:52:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 08:52:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:52:14 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 08:52:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:52:14 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 08:52:14 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 08:52:14 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 08:52:14 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.4ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- The configuration option: test_0001_takes in configuration values -----------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '72b8a0e6fb09f8cc896fed7589ecfeef', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bb16fecf0cd862fcd290db5b974bc1c2', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ad7d0146bcfcff5ea01b406182b55a2c', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a5cb05b873381cdee8ce9b916987e6b1', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9210ea379bf69157c8344c925804ba10', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eaa7396b83a2adf80929a44ae93692b0', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1b8a2216c70d36105d482a81c9861154', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e7f3b58a39855b9178e62b6e4cb611c2', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '783b8df654e6d7db54038d2cfe90bb0d', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ffcf2783208ae16e8e564c7242e4d072', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6b687829a34ef62dd73814c84da37718', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '73283d2d4a353aafed1a0b5304d397c0', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9e8dd2b861755a80d13fe00d563216a5', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b9f2c133c3d9eb52721ce1bfa02dc911', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a1533e6edfc643410ea4e34b83e07499', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 08:53:49', '2015-03-09 08:53:49', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 08:53:49', '2015-03-09 08:53:49', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 08:53:49', '2015-03-09 08:53:49', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7a919c2a3d82e61fbd2d803b924b1f85', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '59efecc26a487a479c13111082e8aee0', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c7ad62fc551d28575e8365519aa1e881', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'aeb6a8fddc0e5f45759bc3896d300c35', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5a7f4927bfc09e7eb7dcaafdbb2d2c61', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f58f3c46795e2b9f8bdc4f5c8a78f920', '2015-03-09 08:53:49', '2015-03-09 08:53:49', 410780858)  (26.9ms) commit transaction  (0.2ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:53:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 08:53:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:53:49 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 08:53:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:53:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 08:53:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:53:49 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 08:53:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:53:49 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 08:53:49 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 08:53:49 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 08:53:49 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- Project config::configuration option: test_0001_takes in configuration values -----------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4c3448d7cedde742e239d884e6af722b', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1835aca8121dd56488b57902cce9f9ba', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5460a18e96d227fc94570a9eafe0d66', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '206b99870a3a853964e6a18d2cf0f7bc', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'de9a1cacef01f04f42b7588bdedb6627', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8b849362b9224b00886e39237a87fd0d', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b1ad6d575f93ac91849ccedab1b90311', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7d88e06b4171da158d41280fbf2181f5', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6abfc927b0be414614fe070998a5588b', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7315c170ae6e6c168b0928bae9b59935', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '16a14803be78e83e5633f3880c737703', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0eff2a8e3b7e5df445cd4c290623bb4f', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '475d2f60f48d2ce9347bad47539e01e9', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bea931972a613ef4d0824fb8c0e6c45c', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '52116900d369bd74d677be6ef61e16a2', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 08:54:46', '2015-03-09 08:54:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 08:54:46', '2015-03-09 08:54:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 08:54:46', '2015-03-09 08:54:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd6187f43dc15be72bfa83d3190bf93e5', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '063bef9391bb3e7be3a4b0e43e893671', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd3eaf57ef3fe63d2b5779a570e507586', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '60ab0bb640c00eb8475e4e1eecd2f8d0', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a8894c210cc3b7861385bcb7b5814e4b', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f5a6611be098a654addf461010679cca', '2015-03-09 08:54:46', '2015-03-09 08:54:46', 410780858)  (31.4ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:54:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 08:54:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:54:46 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 08:54:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:54:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 08:54:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:54:46 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 08:54:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 08:54:47 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 08:54:47 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 08:54:47 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 08:54:47 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- FakedCollectionTest: test_0001_is named correctly ------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0002_knows its superclass ---------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0003_.all is an Array ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ FakedCollectionTest: test_0004_first is the item ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0005_last is the item ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- FakedCollectionTest: test_0006_counts as 1 or 0 ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ FakedCollectionTest: test_0007_FakedCollection has ancestors ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- FakedCollectionTest: test_0008_build kind of FakedCollection object ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- FakedCollectionTest: test_0009_build is a FakedCollection object ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- FakedCollectionTest: test_0010_build instance of FakedCollection object ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- FakedCollectionTest: test_0011_builds appropriately --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- FakedCollectionTest: test_0012_build returns self and not nil ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- FakedCollectionTest: test_0013_loops appropriately -------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- FakedCollectionTest: test_0014_defines klass to inner items class ----------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- FakedCollectionTest: test_0015_respond_to? :first and :last ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- FakedCollectionTest: test_0016_knows sneeze is a missing method --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- FakedCollectionTest: test_0017_will not initialize on has_many -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e819bc4f12025b19d4b85ffd50ba59a8', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cf4ab3fd451611d51f4d5e91514bd98e', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6bfb19c5a3455f50e1a6b7149694224e', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2dfba36f3e46d762b373e8900cd96c06', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2c40b53b1c890f6f742ee035b4e6a24d', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '31b966afc8374c16f35a5393b5f018be', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1ff12a4671d9dc9aeac6a6d7092de4c9', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '18363cb3b30d24e882241b492f86dfbd', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'abf02d8c606eed94d7f6a58c4899b7bb', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b1dc3a4ffa25e5451af7fd44e9064c18', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e90231efc1b2820cb2e498563065a8db', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2d7cf6983dc7501d142c655deabe61a5', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '328f73dbc45b28c25963b3bc91a056b1', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f57d3b3cc3d0e5ae1a824e2fddf5c4a4', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '82753eff16636e05904046414a9a4c4b', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:02:13', '2015-03-09 09:02:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:02:13', '2015-03-09 09:02:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:02:13', '2015-03-09 09:02:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '99e137944e611941f8b4f7b6dfb45606', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b24ff70718979ea04a693cc637a5393c', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '01b23c8ea632450ff94974b89ec81a11', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '72dd5cf5ae29a4a8856b6cec11255816', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a4909111703427ed1c865dea52eb4bd3', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '375f982fbe68cafc1e4838eaf434a730', '2015-03-09 09:02:13', '2015-03-09 09:02:13', 410780858)  (14.4ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:02:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:02:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:02:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:02:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:02:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:02:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:02:13 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:02:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:02:13 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:02:13 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:02:13 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:02:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_is named correctly ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_knows its superclass --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_.all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_first is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_last is the item ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_counts as 1 or 0 ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_FakedCollection has ancestors ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_build kind of FakedCollection object ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build is a FakedCollection object --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build instance of FakedCollection object ---------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_builds appropriately -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_build returns self and not nil ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.8ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8ebf2ee3ec34c062652ae1353aba4dec', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ed557e72c608dab277223c676ee247a7', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5252c5fa2ce2742a501997610e9e8412', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eb4aaf6285531488be8be31b26bc7621', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 775134066) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9f7735961a969d6660c73a79c9c2aafc', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '67d0c96e79d794cd67d508866062e225', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9dadb57fe427c56b479fe6d5ee1bdeeb', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f0e8e3ed4889d37020a2f1ed9fa5a50a', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3ddff3fc2547cc1c225e0993b8027f0f', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '03832354a7dcb1dedfd37f951c0a8eb7', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c00798361ca9f383155f1668ab00cf8b', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '240aa8bc775d7085c679f5450661923d', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c8f899b080645329ff70b18ddf70fa74', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8db9c7cb7649b56cbda43ac8ff57391e', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '829945a842371bc1203ad620c7385afe', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:03:58', '2015-03-09 09:03:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:03:58', '2015-03-09 09:03:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:03:58', '2015-03-09 09:03:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b057d78c6e424176098007101d712b28', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bcddfe2de3e5cd46aac4a8bc1bb63c83', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eac13a286da044ac093ff3bf20ad7e9c', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd9791a2828a65f94ab64b6583096b2ed', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4427c277d2c5b60dda9574eb55adb091', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '41ff486026ac376472fb3c12afe9dff7', '2015-03-09 09:03:58', '2015-03-09 09:03:58', 410780858)  (26.5ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:03:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:03:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:03:58 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:03:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:03:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:03:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:03:58 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:03:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:03:58 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:03:58 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:03:58 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:03:58 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0001_knows its superclass --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_.all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_first is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_last is the item ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_counts as 1 or 0 ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_FakedCollection has ancestors ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_build kind of FakedCollection object ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build is a FakedCollection object --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build instance of FakedCollection object ---------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_builds appropriately -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build returns self and not nil ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection::class.name: test_0001_is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '73077f2dcbf26857ea3d82ea90667af0', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be08e45f3fc2fc8e0c316084f72a9c5f', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '390287c8df039a5d45f36528e0aedbc7', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c618d47c0e1dcdb356bbe60d39648e42', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9852b0141206d9e19ab5bf6fe3de8d64', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd0eb076e357e6c62f19319c95fe03e5d', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '023a9cb2ec94e051a2b4b8e660a17843', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '40a8f857b00e2f68fe47bd040632822f', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'eae657b192013384d44ce07ec9b36d3a', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '18f46c70e5fe25a7e632997daec5b90e', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1b1ed454f4db32a64b5b50fcd0f34438', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd099364b65a0f8ea6261541901dadf55', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6fd3af2d82d7ced5c52cbffa8308e471', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f59a7709cfdb328e620d61584899a470', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '60e3a3ab94fb946f2cacbe470d1a3ba1', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:06:40', '2015-03-09 09:06:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:06:40', '2015-03-09 09:06:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:06:40', '2015-03-09 09:06:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4e6760d71812091303ea0b6556eab1be', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c4d1c825febf4558d75faff1fb8bb196', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '71f294fafbb1273185dbbf408849c6ac', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '144e13281c0a923fd04a7e27c36e6f73', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '75e8e21972105de9517ece9f23109512', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '84bd4401c0541dba94dc225b14d33ac1', '2015-03-09 09:06:40', '2015-03-09 09:06:40', 410780858)  (24.6ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:06:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:06:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:06:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:06:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:06:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:06:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:06:40 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:06:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:06:40 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:06:40 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:06:40 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:06:40 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.3ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ancestors ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_build kind of FakedCollection object ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build is a FakedCollection object --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build instance of FakedCollection object ---------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_builds appropriately -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_build returns self and not nil ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Profile Load (1.7ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0e4bd9384dc2737c571c1f427357d2f5', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '356a637d954834dfa2699664de75ead2', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '65517839b9032278d50dd19fe26ecc4f', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ebdc04ebef3c0949c3e0ddd7f3da5128', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c8a84bc3c9a205469197da1dd32a14e4', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ed46539cc1c75812f2e2536fc9de5352', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'de6b2c6c2f3638ff7035e6471e090f74', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd6ddaae7f160589d09cecacde133fa44', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8cbf70d82e703310c5ce06fe6889f348', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '602b7e12399e588a84beb12e39c6c446', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3c1594effff0d8b881170d3d40ea1e24', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '356bde08019d8907fb704a8d3218ba3c', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '921160620ae49a041acefed046b9fdfe', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b7fc6b1c7aef54e83abd79b1c43bae25', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0a11cb76863a7ac4b9e3b6cbccce222c', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:13:42', '2015-03-09 09:13:42', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:13:42', '2015-03-09 09:13:42', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:13:42', '2015-03-09 09:13:42', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b42c507aeca2679647efd5086fd1c8d7', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5a30994b022cf172aedc5f2debe3abf3', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '319924cbd0a61894842f6fb9bdf41ba5', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f72ffc9f2eee0ed262b8d70558055c65', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4bac6fc1be996cd69242d9d689a79238', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9092dbd17edbcfbfe8a37a7800261c86', '2015-03-09 09:13:42', '2015-03-09 09:13:42', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:13:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:13:42 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:13:42 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:13:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:13:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:13:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:13:42 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:13:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:13:42 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:13:42 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:13:42 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:13:42 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build is a FakedCollection object --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build instance of FakedCollection object ---------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_builds appropriately -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_build returns self and not nil ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '618874748255cc54f58abd78d0b2c709', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bf8cf06d33912e0af264be01d3ded65d', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8b7c9ed05677757cc3e4f8edeb984501', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6e5a3387c0366e674d4e94e5b8d299ec', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '03c250ce8a11f4e25f68e3e060704f6c', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eac09864675f166ec0662b32f35629b2', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ddf36d1dc544005d2a28c1169dd680cc', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '09e19c57db4f87c5e8fc13d8be646e68', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2a4c2f33f81eda66c12dd3760a2e14f2', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8f8260a8c536c7b3bf512f73ecde59aa', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6579fa9791915113d7ab5757714f94b0', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '32c5ba6405652a3c02d256065d04bcc3', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5890e42ecfa2f4c20aa2de5f7834fcd5', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6bb58ef1ac8480032071017667fe779c', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '066142f2c43a6a3d379984817ff844e0', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:15:46', '2015-03-09 09:15:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:15:46', '2015-03-09 09:15:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:15:46', '2015-03-09 09:15:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '09c44fb96c05bdfc5c14f7f9bef38e3c', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '72e24d94ad4e8e9abf8b367298333d0d', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e011da91a8b1f860c924328a8df7dd8a', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '87186fa93881c7ff3e264b4e2b9be693', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '524103f11111dac09630533ab45c0958', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6949a1630045ddffd625b01172ac5d40', '2015-03-09 09:15:46', '2015-03-09 09:15:46', 410780858)  (23.2ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:15:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:15:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:15:46 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:15:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:15:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:15:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:15:46 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:15:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:15:46 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:15:46 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:15:46 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:15:46 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3cc15485234da9da8105d8a9a967727d', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5f26acc8cbd8b36443c83887184cfca3', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f73ee68a41ea218c9aec0fcfe45eeaa1', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3f37e478798f1cb5232c46ce0cf7832c', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aefdd3984f4b39e836276ac1813ad6eb', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '66ba99f193962df1f3d7f0d13372b4f7', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7dac361d34781c585d94585925d0ef52', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ad8f84bb8989f82eca6bc38b252e42b3', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9dbe090f1e1335eebf79857ea446aae5', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '038e7fb25ee884bcf9967f8005f866ee', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f7fdc53a53ea75a65aef3c20dac12ed6', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ce56bc85f1aa3ed37e7f4543f877bfbb', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aecdeea4807a2d7b6184f64299b0796f', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4bd51a722e8b82211e29b94cd14e3f2e', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a8159fe994db3fbc7b8afdd42796d958', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:22:29', '2015-03-09 09:22:29', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:22:29', '2015-03-09 09:22:29', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:22:29', '2015-03-09 09:22:29', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '791361efa2da0c045e7eff274a0662d7', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a2378f4c22cf0cd17a22c38c8faa7798', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '446515b77f4495464920a5c262ebc4a1', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c0a92d5dfd4b45127bf2f69cb8dafe37', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '847fac7a96ec4c50ec68b4946ef982a1', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'afa63883a3610721ea01cecccfa1abb9', '2015-03-09 09:22:29', '2015-03-09 09:22:29', 410780858)  (28.6ms) commit transaction  (0.2ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '118bf28bea1ea1deeae9a3f7e5a6d546', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e14c3b69d228869682a8bf46783af7e', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c93c57366379b70868a2eb42dc3edb6', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7c20b3d6e3a29549978fd36933fa176d', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '25143fcbfcc04ac613cf4a4eaef5f96e', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a4e7fdd9c4696a76b4dbbff7069c78ad', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ad7162863c3b0999b95951b286ba9978', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '27e8bddc2a7d5398800783f50dcea6f2', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '75763e8ac647a6914b668cc65232a5d5', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '427bca2540b0afcc410731388bc0ceb9', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '72cb9c81cf0eb7beeee33f027bb638b1', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd731d4345491c2efd160b2d79d65c1a3', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'de2233b8412649eec7eedba2907cb3e4', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '592ad630aca54484875691a6b6ff5659', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b618a24454b93c61f2f7de23e5d0f348', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:23:04', '2015-03-09 09:23:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:23:04', '2015-03-09 09:23:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:23:04', '2015-03-09 09:23:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '393141c94091f379a5d944a7de400bf2', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4a7b65a85846c036d11b0e17a6737fe5', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '95e3a0da85b7d31100c319047aa09463', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fd55eae2ca7c606d1f3ebbac29067ec2', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '75c00ba284b787aa3672807ca2b86e13', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0ca7c91284480353c237508630f22751', '2015-03-09 09:23:04', '2015-03-09 09:23:04', 410780858)  (19.5ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:23:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:23:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:23:04 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:23:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:23:04 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:23:04 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:23:04 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:23:04 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:23:04 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:23:04 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:23:04 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:23:04 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.3ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '38d266ee1ce0998d4440a97da5f56b68', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '57fb0a7eed4e6a7c692135fb1fa127b4', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4f6204475b5ddedbe48b0f8addcf4388', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4a6bda017a5049868295293e932401e9', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a7fc1a6dcc51e393145acd01f18d4707', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1aa6fc23ccf60c5e9bb19839062463f2', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8007c5c79129594cd665181585b2a0cc', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '50fcd841c2c2e7a24a9a77f0ddae335e', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd514a5b35fac843335a79d29abd52c53', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd0390ccc0e5aa02381025b9e385f6f32', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fc9cdf114e89692d37e708303bd8dc66', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4f7503f3b866a8cc1024f7185d9eccc2', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '826a7c2843911d363f928346ffc0a9ac', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '635c2cf1663b47dd81fb7f3316f0bfd3', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '25b6cf6ac7d5d4dec5eebbbfe24c5820', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:23:49', '2015-03-09 09:23:49', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:23:49', '2015-03-09 09:23:49', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:23:49', '2015-03-09 09:23:49', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6b8b0ee5beefc9056e1d453f013c2818', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'eb799d544dac3298f484f1de144b6927', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd6ce5249df89225884c03a1ec5633945', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '28cd8c099b4f6ec21c2539dd9c3da2b6', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c86271c155b40d4a71517e8b374e543c', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f0c67f2e58629dedaf8c66d741200cca', '2015-03-09 09:23:49', '2015-03-09 09:23:49', 410780858)  (19.1ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:23:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:23:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:23:49 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:23:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:23:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:23:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:23:49 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:23:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:23:49 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:23:49 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:23:49 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:23:49 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b5f065645d1c39f1d3ab226eaa817eb9', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '06e73486eb07362fc530626b0c014736', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9ff07a319cc0be132c4ebd8f5a42a132', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dde20648d0437c57d24ea073b52bc761', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '32a9a691c404be851ca5913fa199a507', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1195e3653460a06792cdeac498b565ee', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8a8503057a0d9d46c34280150458559f', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '666a86f10c2ec7ea611aaa210c32bd70', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '40b4e459ec16498974bf3cfdc22e5f86', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b8478462209c68f47055d01ba05b24fe', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd6937fe9ee774613816b606c3087c542', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f4c36db4c8620d57d231982780d271e2', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5f9791d7c5ead283d5fecfeb946bc1e4', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c6b1126a1025043686876f28cf470c3d', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b5e06cdb6f23bfd7d098458fd010f69c', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:24:29', '2015-03-09 09:24:29', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:24:29', '2015-03-09 09:24:29', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:24:29', '2015-03-09 09:24:29', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5efd619b8824634ce684cb00e6522e4e', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a01afc82569c6637cffce63982ef0d76', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd87a9d57b58b11d00a823b0f996571f2', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f67b79ae7ecb7853396a6fd9d5526888', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e03d964b82e41e3d96625c3146750066', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '07b11d6071b22a08c6b7e47cd55a4f47', '2015-03-09 09:24:29', '2015-03-09 09:24:29', 410780858)  (39.3ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:24:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:24:29 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:24:29 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:24:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:24:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:24:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:24:29 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:24:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:24:29 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:24:29 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:24:29 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:24:29 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '49b6dd8e9454bcce2dd565d08effa623', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e03dc450e8fc99354d1f9deaa4a418a7', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '69aabfb8ef1b95a9b2d5c24d23ba51d8', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '53f0bc1f0e957e56e8039634f3bfdd96', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a4234c546d72735bb8feeaac5bb2ea76', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '11a8a98fc98ee3d28a3e487367a01d94', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '11f817122cbea18d3d7312e2c8d75186', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1054e7cdb273eeeafd3c04b9b48c2137', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c3fd874b7c6deab5e75c783b7b65044a', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3496afc9f1c09fbea72037fa51530750', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '653f92beb50193dff0dcabd2314fb62a', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dd610d3fd182ece9e067aa2bcd25df43', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd29e07901ffb2d196df90a246c064163', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f8cf8766e663fc665173cf5478c63f42', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b892ad330ca61b533c7c789b721fb56a', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:38:39', '2015-03-09 09:38:39', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:38:39', '2015-03-09 09:38:39', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:38:39', '2015-03-09 09:38:39', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b55a080bd43fbca5b0919cb27ef6772a', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8aa1b17347438d3f4af67c698dec78e9', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7cc6fbb801b67a5bc3f7c3e71cb1eab6', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0e2aa06b10e5b06e3c802395c3ce9ef2', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6dc565afe9f7077c9ced6788b616d569', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ee61300dc551e543d33009c8b88295d6', '2015-03-09 09:38:39', '2015-03-09 09:38:39', 410780858)  (21.7ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:38:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:38:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:38:39 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:38:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:38:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:38:39 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:38:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:38:39 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:38:39 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:38:39 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:38:39 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3e3be3d0816f9ba4e9b1d4c598679a4d', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5a591604bc339709f140dc6b73728afd', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd7d074e67b30aba1376c2fb8af0129e8', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '23e166be73f4046424ca608f6d8900e6', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ad4b61a0dfd2ee4e47d6a5172a2733c5', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '45a90a4f4506a56fc4da27b8b9da245c', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fb4f34c8bba9a91aea483ad8eb4b31a9', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cc6893eef3eb2ea61c21ebfa1b1eb696', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6b3f1e715748e752006edd51daecb5aa', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6477ae2ae66550467b8d5e9949823275', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0040b1d74759005ab3568d98a298b427', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '91cc7b109364187847d0f1f2d9dedc31', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '879ac5b374d04328c2707df6ed811534', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5512cabae7533ee30814e93937d5b863', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '762b44b6a934d55cec316cee08a83376', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:39:13', '2015-03-09 09:39:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:39:13', '2015-03-09 09:39:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:39:13', '2015-03-09 09:39:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b563896c78be6986e60af63a77f5fd47', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '873423a7769bc452f720742d0a8ed55d', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '79c4512619bc4eacf1ecb5c5d6d7ee42', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '77255e6d49f23bac810df79014a6c2de', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c6133b28cdb589c57005a2a49927f7b2', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b4866a03e2625cce8f8810472e065a9a', '2015-03-09 09:39:13', '2015-03-09 09:39:13', 410780858)  (27.4ms) commit transaction  (0.0ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:39:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:39:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:39:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:39:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:39:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:39:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:39:13 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:39:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:39:13 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:39:13 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:39:13 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:39:13 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e53b65faa7a0dce8d76ae3a1cf33344d', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e686b426d152ccee0a3809edba6f2753', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7b23abdf2f50092752fef98112a2ae8b', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0406150e8828440154ceeadc86e33828', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '31eddbc9e8cd8cefc7dab217464cfd7a', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7216849aec778d9841b1626215b9074c', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a8690ecbe16efc113553392520904194', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5799f2ea564c1d4fea691f7130a1f2b4', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '201333b718a3e08d3edd6ee98eabb433', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '81771459e6d04f088ea69ecf7de43cb7', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '745087dd002195bd55f1f95f9a7bc910', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a4767677edcf8c20f030f8cb9055027f', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '00de3fd83dfeda96001af93ce6ce6b1c', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fa2cf503623c8188dec6f1db2415b681', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f2073683832bf4f9578bc50af31c905', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:42:18', '2015-03-09 09:42:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:42:18', '2015-03-09 09:42:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:42:18', '2015-03-09 09:42:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f214df13d0d19df73f81a5ce00efdeaa', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'aec2e61a5dba15f4524dcd668f9a1226', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a414ee1b190a201b1daa868cfa0b8270', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '466d79db7d599a4d9a552584e05133b8', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ce32e0edee7824274301951cdd14b2d2', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '77ac9a8f6f9cd6a3988b1d0dd00e4b25', '2015-03-09 09:42:18', '2015-03-09 09:42:18', 410780858)  (14.8ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:42:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:42:18 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:42:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:42:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:42:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:42:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:42:19 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:42:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:42:19 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:42:19 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:42:19 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:42:19 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eb6afc5746223b6182c70de2e639724c', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1b3068f44f0771c84e94a66770b0f894', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '05bada9c737f972110f36a8e7029943e', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aeee45fd98bf11d600dd24fcc5de429b', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '79c71b6c64e4eb5ddd3d24f395ee5753', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7d943da3802ad757133092072fe62637', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'df5061e3c6cdb5fd46e59c41ed9ceb2c', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2bdf544e2076d73006e167fcaf75bbcc', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1ef7ddf8c681c68320c87c55bf577b7d', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e79e16e00302877250d75dd83d859f73', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2c89238d8d8b875fd3a89853663fb3e8', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e7cc4f43b15b486889feb2ec8211dc4a', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '13f73656e61044400e3f328658ed9b6b', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fb2106862748806f74a4aedb83fadae0', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '799f73d6f48eeb88f2fabaa342e26537', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:46:52', '2015-03-09 09:46:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:46:52', '2015-03-09 09:46:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:46:52', '2015-03-09 09:46:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b40d117a4813fd8b7027b8405bb9158b', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f751ba2e3b2e931757342d4ffa06ca31', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9230516be3c86ca66c5a608fddac296f', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '45fff1fc568543ecca67cf124462bd69', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cd64ac578c0b72ead23ad4aa0500f710', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '723215721f6bab9d37c9bcdb5f37a400', '2015-03-09 09:46:52', '2015-03-09 09:46:52', 410780858)  (42.1ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:46:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:46:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:46:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:46:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:46:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:46:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:46:52 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:46:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:46:52 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:46:52 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:46:52 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:46:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 576421514, 'Address', 761411935) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8da1a130a960fdde52e4403e6c603178', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b0a7d044fb720024d3107827367bea1', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '38123cecc9be2f2ed0c85b99f1aa53c4', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9ddaf902e2adfbb1cf04a2f7ce94bbc2', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fa33c77c2a67fffb68576d37374f361f', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e1640427a82bb541dac2fc9f10c77e82', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '21ff6004d25f8e20600354a054e61db5', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3f6cf9d9006bc180d5a563083780e596', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '34438678f7a3d4cd99302f38683ad29e', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd68548ffb2e7f365cbd284584b55e293', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '56a1ac88815c0c4276595c8fd6473429', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd35e5c52c4b4e80d3cbf5f7ca04761aa', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '18b59fe705e4af0898d71cfb19cb2efb', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9681972afbab8325336fd61caf8b2c75', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6ec5832105aa0a896859b2c9dcacf8db', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:48:43', '2015-03-09 09:48:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:48:43', '2015-03-09 09:48:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:48:43', '2015-03-09 09:48:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'aadb640765d63b6fbd5842b21a994d41', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9d169da23e9a7199fddd4458dad97346', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8263c4f3c3e5798f7d7c04f9dea5a998', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9cca2e750136b15b8443e4e35612527c', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '20ca1105599109bcfbb50c31720d3ea9', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5856286ec7eec24836ff9b30431ed4f3', '2015-03-09 09:48:43', '2015-03-09 09:48:43', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b1e735d492b3a1662f4e01ccd546ba3', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1e8342d453ebd8ee9c0f0514cb6af0d5', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '21164d5f16a2fd07d0aad1c9665ee05e', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a22a6997b44e6c61c147d4cc60d23b16', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ce1a457b162c18a11e858a9117f6ac69', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'acaa743d77fce68febf136fb0ebbd7b5', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a9a43f8549f3fce086df6e315228c9a2', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ef27e4eba0455fafb18d05aa8902c26d', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c1c3382b99dab43f0d4ed29d6ef1c500', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2db77400e7167d68e481fb2eadfb8476', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a12152df5b83c7e9f276d7e9f50acb5d', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7d11df8eaf26a384c130a606b414dd9c', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f9a17b0bf81b0f23e597fcac1f4385b2', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c45aa774c85ef2cd7ea551a05f6d71d9', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '60fee6cdd8dac325c1da7415e3d86a81', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:49:48', '2015-03-09 09:49:48', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:49:48', '2015-03-09 09:49:48', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:49:48', '2015-03-09 09:49:48', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b905b56c90c53f326f67c76569601f96', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9b3d01cfe06505186500ddee3721f42c', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3eff1ed00c125e942a39088722a9f090', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cdac59d7c262d5d8382b53fc22c5fee2', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7770ce4680e1effafa85b311ec6dbb3e', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '26a9c3f2f53acc7b7adf6007fc2e793c', '2015-03-09 09:49:48', '2015-03-09 09:49:48', 410780858)  (31.1ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:49:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:49:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:49:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:49:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:49:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:49:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:49:48 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:49:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:49:48 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:49:48 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:49:48 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:49:48 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '35ce2033cc7155140132f6dc462b99fa', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f56d9d9cd98f3efc42979ab011272d70', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6ca40180cf17090cb1381e52a82f7e73', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75b8e500a8f7af3185d6f9758765fcad', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3c6243bd20bd023a1243d7d118e71acd', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8af3823213c5ce71856c941e7aa6265d', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ce1524048d2d42a8f0c1bb4fe943d369', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e29df01c916ffef8c8bd079f0ef75cd3', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '246bc87734dfed5997a25e4e63d1e6f3', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6f6c9e45e4a8a75e685348f55e7d1b7e', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e68684c38dc7537a48ff914a264edb00', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '09580b473274444e01f145b4d9ab2c67', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b89efa5cd42fc2a0ba43523f3adcd178', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5fb31bc99cf5d42301c679214c4ffcfa', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e5f210d02536a40411e54cbd591ad504', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:50:53', '2015-03-09 09:50:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:50:53', '2015-03-09 09:50:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:50:53', '2015-03-09 09:50:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '60ec0e41928cf5b55f82f2e3adf5889c', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cace6764d6e2da0d72773466b0364df1', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5b38faaa763048900407f06d2177e3d8', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c724db25301cf424f025488e35947972', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f51a401c75cb63c446bd2edd4b4b9811', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '67e91d710c4729dbc184c0d02dbcd677', '2015-03-09 09:50:53', '2015-03-09 09:50:53', 410780858)  (14.6ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:50:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:50:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:50:53 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:50:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:50:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:50:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:50:53 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:50:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:50:53 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:50:53 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:50:53 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:50:53 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '00cf58a3cc2cfc1c69515226aee89336', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '34f02a0e0b29813043f4d1dc56fbb83f', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd21123851a989c709867f945a9699913', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1026b7d1d78aa9426ded89e7e3aac82d', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '16d32e331fa17df3520a8662c54f586a', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '47e44c555693b904499fda36486bab9d', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '35d3b59299d5aae282ca9215e8d29616', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '641164d53b023887263d4c2e20568205', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4ee6c08f6a83dc9730306ec12df472bc', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8b8e324e5b6f64f32a1fb1495d8e332e', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '101c08383166a929e3baf47ac31619b9', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '43489cdcd3981cc16eb1d5afc9d09614', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '82c1e31428500fa889ae1a2ae746bff6', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee2e328fdb5b26be93bbd7576394d10c', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1ef2aab9a3717e4899192c06733da37d', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:53:42', '2015-03-09 09:53:42', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:53:42', '2015-03-09 09:53:42', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:53:42', '2015-03-09 09:53:42', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c8466096bd8e61fe5b2a6e959746e090', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '79696f48691e3a54e99cc9909289d35d', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e7d847df1aa645e8cb6be7b5bc9f3e68', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '25b771f4d43af66cb38a75672e5216d5', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0eff0ee6f85b60e526d1cece0bf1b422', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b2ecc57321df8528bcb2da77c56c2e00', '2015-03-09 09:53:42', '2015-03-09 09:53:42', 410780858)  (18.7ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:53:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:53:42 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:53:42 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:53:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:53:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:53:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:53:42 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:53:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:53:42 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:53:42 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:53:42 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:53:42 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.3ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '135002e4306eb66c747165bdeec92a94', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0660630b82335090ec6cff4df19d6d2c', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '188a21da6a0078b6c66bf865a2ba9d52', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '34131d0d3c1f4f9ae4159c8ab5e73730', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '13d8c6d655b5a759a62947c5eea272bb', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5b45c46164d68316653fd9cd417216d0', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '43b583b7510b149b2ee75d1c98d677ba', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '848a91e54ad52f52b803922553149fcd', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9ea1e360c5df4d93f943a59fc28e461c', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4f7a63cc3c99d01ce9dd3c6f3c8eeca3', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '627b32e626c425ae39168013cc120cc8', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bea6b8e82c86bd0120a4d24b5346aceb', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b60999b9cab75104b32b72a2fd439ba5', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '99fc634bfea1b371caf3ee662f2ddd05', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d7dd33f7503b54d5132a810c57ec735', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:54:06', '2015-03-09 09:54:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:54:06', '2015-03-09 09:54:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:54:06', '2015-03-09 09:54:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9e88881c7e442a9413e8fc73229acda7', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2c885bd03644c10c305dc96c5212e032', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2bab1faa7cf90ff65c8879e569906eb2', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '73c9808dcfb0c09d4aa0afceb0e39273', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '69dc5b6478db48d7309147fee57af62e', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e665ab2202b7fdcb7432f108a91ef9a8', '2015-03-09 09:54:06', '2015-03-09 09:54:06', 410780858)  (14.4ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:54:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:54:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:54:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:54:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:54:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:54:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:54:06 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:54:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:54:06 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:54:06 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:54:06 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:54:06 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4ca0b5d546cf39fcf3cd66592ae76c97', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a899cfb39ac0479a4b4aec2d044fbb2a', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '47dd93b58ceb1253959ecc7434cb55dd', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ce8a0dd21d719dd856014cd641b1c0d5', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fa395ae16231bf7f52f9f16c696588d5', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0a2f1b4978d7345a3d73763dd5694b8e', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '02c5e72d271daeace950d8d8d98f4f60', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '569a47e68c84bf7b95b0b4f1a91d0607', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2e1780524f04a2a0df80664da8bb7ca1', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8f54f8b61b6f80e80cb72fd0810a6589', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '73082558e1014282af97ef4a8a1b84bf', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '864f8588888b6bc94cc96e9ccedac744', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '91c0010f0025abba82d421ebd9930d5a', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '92c0fea74eaa8436f7a07c0461954f30', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '31f4b0d33a508b5b2d2eb4bc90858c62', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:56:01', '2015-03-09 09:56:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:56:01', '2015-03-09 09:56:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:56:01', '2015-03-09 09:56:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '79d0decd75723f07e35611956cdd8faf', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8374dccab0ca06b10992f9f445f40c45', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c6c72952ceacb44eda8090fc49849ed5', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '286263577164a39540bdee93e80fb1eb', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '53771a68b5dcb0cc515bd934d3f480d3', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b1b83383ba5b9ee86f8d47f0a382b053', '2015-03-09 09:56:01', '2015-03-09 09:56:01', 410780858)  (36.0ms) commit transaction  (0.2ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:56:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:56:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:56:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:56:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:56:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:56:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:56:01 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:56:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:56:01 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:56:01 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:56:01 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:56:01 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a5fed5faaee258228f5d832d27195429', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '17f8fd89084c01639a3975cfb88a779a', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '34d4bd5075acac4bbec35edfb728affc', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '73b5e8f4ace2e1c57b1b462070d8b94c', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc9ca3b9637a4691627dce384cf862ff', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd449200be185c22e9736c4a16fbb5e6b', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ddc2bf976d0071e267f7ee52647011aa', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5511ea96ea94ca95bc03752b742995bc', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9dba4e482db30bb0dfeb594b0c832125', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '63b37adad2289865dbcc2d544bcf0341', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'edbd7b3b050f59ed4d2e4477790975f4', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'cefa7cad015addef0b33ad5ed2556f39', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '662e977f2cf4a517356756a96fa62daa', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eba21b79f2be5013dec6989d3e64e3af', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd9d4208d246165aa3688f41228a3d981', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:56:17', '2015-03-09 09:56:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:56:17', '2015-03-09 09:56:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:56:17', '2015-03-09 09:56:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '544f045b43cbbacba3d4c76d2baa7b4b', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '686a1c2680f7e58162237c8ad59fa38f', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2e1b8558a7a79b899d4e64f7f65468fb', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '620cbe58e6b512a3ad96b2bc913dd2c0', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4b8f9badaa66f5641ad24318ad6c631f', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bfc356ff56170f8c7bbccab5113dcbba', '2015-03-09 09:56:17', '2015-03-09 09:56:17', 410780858)  (29.6ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.3ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:56:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:56:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:56:17 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:56:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:56:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:56:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:56:17 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:56:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:56:17 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:56:17 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:56:17 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:56:17 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ed374ea150e8d9704110eb4d74ef884e', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'de5cd28ae3ef647d236f84932cfaa9b0', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cf6df2cdfaea2819d3c60623a56ea652', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '423326ca5db192c87c31d8959c36599d', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f471fbddeba8900dfe76e1e4b3a474c5', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e1ff18b3619615991d988e552cc8a11c', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '351f5d2571b2ef692e502e53d283d924', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '63b7d776772112cebc9bb4bffb902cc0', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a8a41a96d828ace579774817721f11ce', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'aecaa6c2cd47f4095daa145decb38ffe', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4ba174600d6a66fb9db6b01a68cfea09', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0099ec2bd35c1a5910a86d6c8b6dc968', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd631903a246a5c43f3f4f11786c717e7', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5f9b4cfc67963e9f545e1d795c693b83', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e01645891cd66d1ebb39cd28654b19b0', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:59:40', '2015-03-09 09:59:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:59:40', '2015-03-09 09:59:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 09:59:40', '2015-03-09 09:59:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '12490559803b7d694ed6b324e6617126', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8193335c3e6cf6a382209e2a8465b5a1', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '50b661f08f9a6cadb0b6e0706fa983d8', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '335e83ad414803c744fe72bc341a88a0', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c7506aadfc9c16decba832e8a252e8a7', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c524bf09f6658a5fdbed4b593ae11e14', '2015-03-09 09:59:40', '2015-03-09 09:59:40', 410780858)  (19.4ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:59:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:59:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:59:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 09:59:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:59:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 09:59:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:59:40 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 09:59:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 09:59:40 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:59:40 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 09:59:40 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 09:59:40 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_loops appropriately ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines klass to inner items class ---------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_respond_to? :first and :last ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e64444588da3e653a742fbf5ecdefa7b', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '36898d02a40fbd05ea51dbe293e09a63', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eb8f4918e17d1444b7206dade5734edd', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cacde5624433c515dc645f0e7310e7d3', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9b8e3454c8a81cb4d065c08ed5a0b00a', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f15db7093ef697d055dac7422ce95cf9', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'bcd0f06fa42d905fef8b3ac319f056d4', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '612f8ee0425ad2364a0216e3394099b9', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '25498f29f4c23ee59ff798ac9f7c6d96', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7c704be940d56e9ca92991992764614f', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2cc825b42cc6bd7aa47e382c8f91d631', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6d57c1a104a03070f99a4042c1aa185c', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7abd94f2476b3a8b86b8d00b9e533ae4', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cd912ed312c7898141f6e253842ff41f', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4c69bd0d32245d2473e08a4a8b436832', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:04:23', '2015-03-09 10:04:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:04:23', '2015-03-09 10:04:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:04:23', '2015-03-09 10:04:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a811b1e4cd16070b5c9c0f5256418a9c', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e918349f191c34fa3921b061fb3931d7', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4e368370a1e1d21c0105eaa253764735', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9843604c66201b28621e0b920c73ae80', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bae2805228a936c0c81bb209bb579bb9', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'da564b9e83928ba85c2f46095420f06a', '2015-03-09 10:04:23', '2015-03-09 10:04:23', 410780858)  (20.1ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:04:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:04:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:04:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 10:04:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:04:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:04:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:04:23 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 10:04:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:04:23 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:04:23 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 10:04:23 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:04:23 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4de908bc33aedef9b214647d4f97020a', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b34dbd8eba8b3b7f4b37276fa198f8b', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f65dc8c9bcae8f9bcea48a7317493c9', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '94880f35a3a4801b2776a53ddfa44028', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '42e02d79f20138759004417c76cf1b34', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cf69ac8c9ada50174b84b506feefcddb', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '83106b84f6558908a5f88de83c5e1d31', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5b773ab3705398cdcad91a06b265c77e', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7fa855daadc51aea97cc5357d2ec37ec', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a6b0fc757ae838b34d8d260ae432e58f', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dc923ba38ba49daa168f8d4373ab202e', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '45ada44e835d78437ce2c344db6afda3', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e43683ee78ffa6e350b5dfa72624761e', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ffdb0db64b2e7288cf192aa24687f4f4', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd66676c09b983eab52940078859116c8', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:06:44', '2015-03-09 10:06:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:06:44', '2015-03-09 10:06:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:06:44', '2015-03-09 10:06:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f2b497253ef96dd059cc368667cb13ec', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2ae2d667cbf04ea1b5d0b610ceeb107f', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4ee098f8395d6dffd281ed9afd98ea94', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1abe586a593cfe05f6bf12dcfcbe173e', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd59de6534005c23a98f98dffc397d98e', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd55341773372ee5a45a51cda5ee7dd7d', '2015-03-09 10:06:44', '2015-03-09 10:06:44', 410780858)  (29.9ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:06:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:06:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:06:44 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 10:06:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:06:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:06:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:06:44 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 10:06:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:06:44 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:06:44 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 10:06:44 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:06:44 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b05452e5f1c196bb3f5b775a329acfc0', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd7afd38ed0a2e5e8438a468cbd647fa4', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8aa01be1e55a71568c831c9d4dc54bbb', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fbce79ef348f917dad65a98c12c9c3d1', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '98e45982f402a9a3680a07a8207b33b5', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2269c8af830111abb94b1020e7fcfa4c', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7a0d1379335706c056061cafece103d3', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7abedc6e06e63a76faa14fa564faed97', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cdeb862cbce64f5ff5098069b548842d', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e9777b3323f50c354e6996b1f026d1dd', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '05cc582e6b65a93c5e76c79a6ad1ba61', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '555adb1ffd4a0af7ad891647ea6ef3a1', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c385ce456f118ed5a91e3744759a3d0e', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '73cda316952709f81d3752123de0c031', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9aef55a816408da0d04765ce6d361c42', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:07:16', '2015-03-09 10:07:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:07:16', '2015-03-09 10:07:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:07:16', '2015-03-09 10:07:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0fb45940a1844a8730cb3306f0b1ac7e', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '78a8179fa5bd039428bcf1b9f5e33629', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '39b38026998da99f08d11fd193b7af1b', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '02b42760fce477b95520409a1002d4a2', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '890feaac3dfaebe9e61e6f6e975bab67', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd6777956a07a2925781c2936029c28ae', '2015-03-09 10:07:16', '2015-03-09 10:07:16', 410780858)  (21.7ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:07:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:07:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:07:16 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 10:07:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:07:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:07:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:07:16 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 10:07:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:07:16 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:07:16 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 10:07:16 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:07:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PbtTest: test_0001_AttrSanitizer removes conflicting attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- PbtTest: test_0002_BuildCmd returns build command ------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0003_Reflects retruns has_one and has_many relationships ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0004_ReflectsAsClasses one and many relations as classes ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PbtTest: test_0005_IsReflected gives boolean of child ----------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PbtTest: test_0006_SingularOrPlural responds for child relations ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PbtTest: test_0007_IsSingular tells child singleness ---------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- PbtTest: test_0008_IsPlural tells child pluralness -------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PbtTest: test_0009_CollectionProxy: singular or plural proxy name ----------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0010_AsCollectionProxy: has_one emulated collectionproxy ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PbtTest: test_0011_AsCollectionProxy: has one or zero items ----------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PbtTest: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6abe0b88d01415f00e65702c3ec0347b', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '384211b64b32b48363e5ad7fb4dd831b', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5aee7eee1293f894749d5b16ec4cebf4', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f1d0722d498f076247f268b9b50ef723', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '043f7cf4b28092a14f0aa6a4ab6e2018', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '908dd9c97b8a460d4715a462173a2e98', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1bc138f8e00708dcf10118026fc1ff25', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cdbd97a0bd5c2faab4c2823d0c7a74d7', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'addd311d93bf58807e7f8264299e539c', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f7665d99c9b34a34aad130369b6d0dad', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '403dd2c18cce0a2f0e6c4c1fb95c011b', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'be64f8d919f9ee69ec818904283e0116', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '58241f5256f0eb59d7ea220b7348a5d1', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c8cf519afceb4b3c6b288a01191227ea', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ccfaa04a803cb008dc134af4e0126641', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:09:15', '2015-03-09 10:09:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:09:15', '2015-03-09 10:09:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:09:15', '2015-03-09 10:09:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '86874b44890457a34d36c7bd0d319ce6', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3cd3a2c9dce9e73c70665107f9f48487', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9c52d45e0b2726c212e8be9dc6f9f5a6', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9f9bc604fdde940cf3ec18c27681a846', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8396ac05784774263fd44bdd0c833c53', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6bd8cc63356a77d5867043e5711ab81e', '2015-03-09 10:09:15', '2015-03-09 10:09:15', 410780858)  (13.6ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:09:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:09:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:09:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 10:09:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:09:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:09:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:09:15 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 10:09:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:09:15 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:09:15 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 10:09:15 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:09:15 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy: singular or plural proxy name ---------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy: has_one emulated collectionproxy --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy: has one or zero items ---------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy: has_many uses AR CollectionProxy --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8d0f54748e5bf948381c7d2a715a9f60', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '46899259fd8e50dfd726c9cb4b5c768f', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '25401b02ee921f16974c6e3649164878', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2c783728e05cc1980e55254f8c3aa6b7', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd65f2aec5448cdfd48b9263a61172e76', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1a3fd9cd258bdc9a900796865202642e', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ce0cf45c42aec03adee3dd5a734ab825', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3cc7ad2efaf706539bb5bbfc5dab08a7', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd381620abb40375b3582a929a48dc546', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a6a105c3ba0e62855cead5ce468f064a', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd509c425cf662a61c355053d954e2b28', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0c3b1ef4de265c64625db726043d3562', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7ef0d2807edac636aa7a6297175cea15', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cbabd41108bf6159a4935b61afc6a46b', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '226385d926cc28959163eecdde7c4aca', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:11:58', '2015-03-09 10:11:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:11:58', '2015-03-09 10:11:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:11:58', '2015-03-09 10:11:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '726574f9a36d1e86f119239ae3233580', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6af30cbd63fa319a184e54c9469831f5', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cfd42c308a1c5f03b59716b0512b62c9', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4f1ed1ab18da3baba880d027dd63b8c0', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7cdcec6dd8e1618c9498368458f7c78d', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '93b62c4bebb4b308df76782fee7b8fb0', '2015-03-09 10:11:58', '2015-03-09 10:11:58', 410780858)  (35.0ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:11:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:11:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:11:58 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 10:11:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:11:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:11:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:11:58 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 10:11:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:11:58 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:11:58 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 10:11:58 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:11:58 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy: singular or plural proxy name ---------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses AR CollectionProxy -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'af84f8ed993e67e46c2b2b04c0326c4d', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f3d235ec15f8fbfc4e97d0037b61cb7', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '262e40d17e7f6a65fcbdbb521d07ef57', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'df7848749eb01c9bb54684c5f89d56ea', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '782891b2f91bf4c307aaea13ac707d67', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7957d8f18ce1b1c6ab40ea4b4ec20f17', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '08f0de27d0dec2080cfe6f7782667a53', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '67b2afd8aa521d3f670d9867f3e0d19b', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '51b629fb68db05ec935100cb843fb724', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '68314a90e15024a0a485f6662e1ec1fa', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'add4621cb8b3ba2d45f6362f1670cf00', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '063a8b16f335e9a6733672a1349da4ad', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75474dfd6ca1f853a0054754e598e929', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '143b14a33970fee11577cb9e106437dd', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e04c60faa416d238b82f4d77efcdd00c', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:14:36', '2015-03-09 10:14:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:14:36', '2015-03-09 10:14:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:14:36', '2015-03-09 10:14:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '95e42109442d5a2f4bfa19b62799e9f5', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5218ad36427ce117d4fbd1f3cef8e538', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '15ef7b098eb75927b342c644b4f5cc19', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7f86b6620a5bb481cb7fc6e297ad436b', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5f9d3b3e05a0ea5ecead11adf19fd3cc', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '305b9ac4396ba5bbb3d7ef5c8561ccbe', '2015-03-09 10:14:36', '2015-03-09 10:14:36', 410780858)  (14.9ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:14:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:14:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:14:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 10:14:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:14:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:14:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:14:36 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 10:14:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:14:36 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:14:36 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 10:14:36 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:14:36 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy: singular or plural proxy name ---------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses AR CollectionProxy -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dc58a73ccca8bf231f836dbfaad6a572', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4e4a7d0014f7f976b044784562147819', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5aefb329a7cd162be27c671c1adb34c2', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '062867be5eda48b90c3ee987c08c2de7', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1e123ecac000a23d7d37b1353054a75e', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aca021f894ca8728ca34228005f25280', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd904e740f95f9341855de4d31b1c4a59', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '703a5d925c386b1a16ffb6416a401542', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '65d85f95867c284ac9c7f8c3880c9676', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'aebd173ba289893e57bd584a8c5e7ae0', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'be238058992e6e93b31a864e475b820e', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '49d2e0c1376debc65eecdbe921aff060', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '19bae2ef195b6ec93be3c8a512cf3358', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '47d54e827f143f804fcfd7fb42cb24fc', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d5fcb2054a94236d3644bb2d584b31d', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:15:25', '2015-03-09 10:15:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:15:25', '2015-03-09 10:15:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:15:25', '2015-03-09 10:15:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2c5ab388bea9130176966ff001ab2eb8', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8f3a4bc5b14290eb702327b503fe2fb4', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a90409e0d4fca85ad453212d1533d31d', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f398b3dadbf8196407c0a5600982b20f', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5753890cc3bae1af245b9ef464447d85', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7bf7f948ecdffaace2f24ddf2f1d5640', '2015-03-09 10:15:25', '2015-03-09 10:15:25', 410780858)  (25.1ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:15:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:15:25 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:15:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 10:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:15:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:15:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:15:25 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 10:15:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:15:25 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:15:25 UTC +00:00], ["user_id", 1]] SQL (0.3ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 10:15:25 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:15:25 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses AR CollectionProxy -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fd0d0651a3c2ec79103630def2e8e28d', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '563fb426ff43c63eded0c6252bb809e7', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fecfca28b1f9d42a613c011971897d01', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '81b6fe38567b0e2262afd2bea0f08563', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '72db88e091bc2cf8699e92c1d13f35a4', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1ae4a06c3b765df3fae16738e362e4c2', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7033743559b35c559a2e5f0f3720069e', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'db107cb4cab30365f72f4579fee294b5', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '207ee6c8b4aac9ed202588bf60f7e843', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5e1786a6a0fee78675873f7554a6cb08', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '453c54e857c18a46ae62ad46b06bacd9', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bb94ef1a5eaeec6bbbe8a7c162b5ac00', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e5ae44fd8f645ef7bf21b9c164fb00b6', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '43d1a82673bd95e87699e1c5d4b6ccfb', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c307ea69a9fd6e663d5573687fa8b39b', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:16:34', '2015-03-09 10:16:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:16:34', '2015-03-09 10:16:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:16:34', '2015-03-09 10:16:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5f4d3055fab22a2dd268c473f9c060c1', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5cabe280344630319bf29c661192fb86', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '117c8816eec11c6e655bd719677eb20c', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '349d2fa0e8b6ddb8ef520a56f802403f', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3c88c886813e9e4117d0a40338c8a3c7', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0d37592bbe6f48fe0ed51a368d7d0542', '2015-03-09 10:16:34', '2015-03-09 10:16:34', 410780858)  (14.5ms) commit transaction  (0.2ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:16:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:16:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:16:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 10:16:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:16:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:16:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:16:34 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 10:16:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:16:34 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:16:34 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 10:16:34 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:16:34 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- DupTest: test_0001_has method pbt_dup_build -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ DupTest: test_0002_has method pbt_deep_dup_build ------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- DupTest: test_0003_builds copy from dup'd attributes ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- DupTest: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '01e7ec14ef1521a40dd987eb813b3e08', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3f9f41db76dcc426f88e039ab94c1c88', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd019ad0bea987e43606640d0d79362ef', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cc4e04d73c94cea7e7e56d63fa0f5bd2', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e7d425dc4ab125ea76b69143d7212870', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '66836236007c36d3e772d109803ec841', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 1032612456) Fixture Delete (0.2ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6723ff1f65f3aea9f0938fb25b2d4799', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e12ac02f8fa1065aac4c30f756c39f48', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '078e57a09e754b3ae885c3fc1f2eff50', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1e261d7685430848c44ab6bfc17edd31', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f6498c0da3559025da5ca3aace77c101', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '395890995785053285f18af0a04a5ad9', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '94c08d23c01510e098cf8087185d1be2', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '770c281efdafd117450d084783a6a4b6', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '64cf5fa85da880f30131aedc431a60fd', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:17:58', '2015-03-09 10:17:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:17:58', '2015-03-09 10:17:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:17:58', '2015-03-09 10:17:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2635b0dfc49696dc60da084e0e8dab29', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '197757c2211da5e2d2d723363df44ef1', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '101aa845679f49f323d19d57ffacf1ba', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6ef685ba0c069f419bd33b2d0379aa7b', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '632d00d1bffe5c5ad393055dffbf6a31', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a55cfb47684d4ac128a17cc0f64d5454', '2015-03-09 10:17:58', '2015-03-09 10:17:58', 410780858)  (15.4ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:17:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:17:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:17:58 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 10:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:17:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:17:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:17:58 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 10:17:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:17:58 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:17:58 UTC +00:00], ["user_id", 1]] SQL (0.4ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 10:17:58 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:17:58 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::Dup: test_0001_has method pbt_dup_build ------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Dup: test_0002_has method pbt_deep_dup_build -----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Dup: test_0003_builds copy from dup'd attributes --------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Dup: test_0004_builds deep copy of dup'd attributes ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8b2adb97f1ebd7381c5c4f70f35b82d1', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3d143a40069b7aad6adc4db199ce44e1', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '872ee1e9848204dfd458fe69a96e187e', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '036ca0fc4b1b6ad28fa3a692963fdfbc', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b481aa0b14106b85115a3de3578f4e72', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3c9a71accee09240af127fed45901155', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '03ca1788b8968ff1b07e91933d243632', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fe9cead58a6c8d961d4f8f80cba6a7a4', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '10271d915711ffb69834ff1193debf4f', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'de8d86327cbf7f36fdad5134ba203a94', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8d61ec7bb69e9a54d50bfaac3d4bd818', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd6cf1f4e71ba44ba636d3c4abfc95390', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4292dbc522a45d1bae2968bd1f04f18a', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '985e3745d10e8774de8b074c08679f40', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e0d9936cac96b91042a78ebcfb4d0d82', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:19:33', '2015-03-09 10:19:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:19:33', '2015-03-09 10:19:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:19:33', '2015-03-09 10:19:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '65109907d9d248e63881fa80fcfdb2c3', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a82fc199e6b0b031c9d71891410f14ed', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '86cc6c13b81805a7fc5fafe239a09619', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '53693aa5e0ccf0fc0a9e0e3a7ee25906', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8bd77784d81c1e9ffbd9c59d1e695fc5', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ed32fcce6474278b9adf60876382e013', '2015-03-09 10:19:33', '2015-03-09 10:19:33', 410780858)  (25.0ms) commit transaction  (0.1ms) begin transaction ------------------------------- CoreTest: test_0001_is a module -------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- CoreTest: test_0002_User as not polymorphic ------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ CoreTest: test_0003_Tag as not polymorphic ------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- CoreTest: test_0004_Phone as polymorphic ---------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0005_User belongs to table as nil ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------- CoreTest: test_0006_Tag belongs to table as :user ------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------- CoreTest: test_0007_Tags of multiple parents -------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- CoreTest: test_0008_Phone belongs to table as :phoneable -------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0009_User params name as :user --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0010_Tag params name as :tag ------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0011_Phone params name as :phones_attributes ----------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0012_Phone params name with false as :phone ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- CoreTest: test_0013_User belongs to field id symbol as nil ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- CoreTest: test_0014_Tag belongs to field id symbol as :tag_id ------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- CoreTest: test_0015_Phone belongs to field id symbol as :phoneable_id --------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0016_User belongs to field type symbol as nil ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- CoreTest: test_0017_Tag belongs to field type symbol as nil ----------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- CoreTest: test_0018_Phone belongs to field type symbol as :phoneable_type ------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------- CoreTest: test_0019_User belongs to id as nil --------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------- CoreTest: test_0020_Tag belongs to id as user's id -------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ CoreTest: test_0021_Phone belongs to id as user's profile id ------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------- CoreTest: test_0022_User belongs to type as nil ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------- CoreTest: test_0023_Tag belongs to type as nil ---------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ CoreTest: test_0024_Phone belongs to type as 'Profile' ------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- CoreTest: test_0025_User parent returns nil ------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- CoreTest: test_0026_Tag parent returns user instance ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------ CoreTest: test_0027_Phone parent returns profile ------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:19:33 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:19:33 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:19:33 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 10:19:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------- CoreTest: test_0028_Profile parent returns user ----------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:19:33 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:19:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- CoreTest: test_0029_pbt_parents: can show multiple parents ---------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:19:33 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 10:19:33 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:19:33 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:19:33 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 10:19:33 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:19:33 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.3ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.2ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- CoreTest: test_0030_pbt_parents: one parent for polymorphic ----------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '039b45bcf6b7e4242dd720af69cbae81', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5aac644318118d56b7a240719397caa7', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1c6f7236009e8c72466a9f464c441165', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '52c8196affdfa5108d87ca9a3933491b', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4fcc0b38f5072668eb9e679199c748ed', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c0e73bec55e5b3df3713cfc2d0bdb541', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c756ae7cbd803319f3ebeb9a6101ead1', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c026f77e689eb4e5e3e1d00e82ac5a64', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c3fecf3ded8ab02f5a1a78772d3f13cb', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '428c5929575a9860327a27867e588405', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '92c029de91e625f712b1394d8653afac', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '22da19fba41f2adfc3719119a8e81f82', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b865075c5ffac31d2d24d2f99798a25f', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1cf918f7ce08b69a9d4dcbe68be210ba', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e794cdbda5eaa64482b2ac1a57a5a017', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:27:56', '2015-03-09 10:27:56', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:27:56', '2015-03-09 10:27:56', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:27:56', '2015-03-09 10:27:56', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a4b284c9e18bfcccb846eb6e6ebc3268', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0784e5b447e6cfc0d0b54f3bfe6e0650', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c0daea441659bea078b1ae4ef6388257', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2f58df2c5aec6032544a14f4ba793a19', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '15a3ac6966a0a4c4199fcf7453cc67f7', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7795fe423278fdb067ae9c00f88e5dcf', '2015-03-09 10:27:56', '2015-03-09 10:27:56', 410780858)  (14.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:27:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:27:56 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:27:56 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 10:27:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:27:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:27:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:27:56 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 10:27:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:27:56 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:27:56 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 10:27:56 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:27:56 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '613a837b71c31249902d0fa55a2362d1', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d48413796d38faab1beb0109a9c8a05', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd10e5f5286797706de46a7dd95c6a63b', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ff7eddb62bf13663ba16c24d5993d475', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc020145492795e11e4a1abef223eec3', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'abae14ac61b30f7358c2005fba403c0b', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fe4d68fbfc141f3b1ed10c4154fb8908', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fc9b395ad1223190fb1e0af4f2a9a0aa', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e3d2873267b5e964e8da7e85e74e488c', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '407f23b559006909b9eb9727b994a5c4', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '91b90409075fd8e6cf464e5e090fac3b', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ac3b6024c7303f8cabf1170aeca381cb', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '589a134cfae57baebc3ed0c64fdf86bb', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '512a414702cab8063a644e9b3ac9dd19', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3276c7af1fd0dbc590acd4857c73702a', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:30:33', '2015-03-09 10:30:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:30:33', '2015-03-09 10:30:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 10:30:33', '2015-03-09 10:30:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c4ee8d527e35a8e3c439e411ac0e9b17', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd788b15d94bbd7235e7b5abcc1a32d92', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3774c970ac05513452abbc487ccc4c63', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd6f6aefd06b0a3aa5c96970e7aa6634e', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c22b32e4ad03bd15244a5e5344b8b3d1', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3b3e660197f9b44fea9c54d71ca54aa4', '2015-03-09 10:30:33', '2015-03-09 10:30:33', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:30:33 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:30:33 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:30:33 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 10:30:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:30:33 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 10:30:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:30:33 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 10:30:33 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 10:30:33 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:30:33 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 10:30:33 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 10:30:33 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (2.6ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (1.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6c528f6e557541029f28b8054954ded8', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '633c5b3e1d86fd8f3cf0fcd8bcc415ea', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '420bab69b6cc9c30f3b6d939ccddb1f4', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cf86b6f6d5edb00c2359078c8b2c04e2', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fbb431272f2d900030687a7d185153dd', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5f5c3f2ff3a0494bb15fbf97db535fb', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '529076c4dd57236100d321bcb95c7228', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e653427ea75634d62dadbf1cd7003c17', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f8b3763d7bcd82760ca8a6883ad639f9', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 966629572) Fixture Delete (0.2ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fe06b22703dd1f784bfeae6c74d1f41e', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f5d9d73ca4771924b478b3eb721fba41', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7078ca9beb95abe1be9d1f9d28117203', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4090e501376fcc09053d9224ed4476f3', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0421c97e963103ee77ba8926521c49de', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '51f477a51bafd6e064a313e070fe3f34', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:09:14', '2015-03-09 16:09:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:09:14', '2015-03-09 16:09:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:09:14', '2015-03-09 16:09:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8cb9aaabd2620d564d28721621ed591b', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '11e7f6d39cd18479f91daa5f99de99aa', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '579dace249b3c452490a14eebe21d91c', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '88df07328d2e73fa09e01af0616d94c0', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bd4ebace433e1cb9133004fb12635981', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd5812d1a702bec5bf3b5508626106034', '2015-03-09 16:09:14', '2015-03-09 16:09:14', 410780858)  (26.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:09:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:09:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:09:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 16:09:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:09:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:09:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:09:14 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 16:09:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:09:14 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:09:14 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 16:09:14 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:09:14 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7d98d2e2a8fc8d8421b365cdf4b59834', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '45c2cc0a2b440bf41b5bb73eeb3ee91e', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '418db42193706c0671a6151a7c33d38d', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '33ed4af5a68431dd91ce33e7d228b5db', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '200a997067a43bf110009caed70f97cb', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '380566357e564eb9892273386805ee39', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e19fcbb88b1257d70aee249e383276be', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '67a388a7624187de850684c7ad67f129', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '76aa5c76b5118bceec9a0be9789bd630', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f6d9372a0fa1db4c8be9c5d60f88e22d', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '54a5c9f31be8cef622fd47c98a66f4ac', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '57274db2b063c046abc0eab16ee37691', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd95734bb153817a536f4193cb2a99a06', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7e1029376b12b92dc071d69e26584e92', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb8268f29ffdf4a9dca6be54cb0224b7', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:10:57', '2015-03-09 16:10:57', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:10:57', '2015-03-09 16:10:57', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:10:57', '2015-03-09 16:10:57', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '07b3478ac98756911b7b1c9aaa93de0d', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fd47e28af8e7d719a91d51a9ad7e7ea6', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd7ed032109fc642fd98ca58a5a9aebe7', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6928bb11ab8b05a6dc6a700a9c71eb8b', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a4f1455506134f9a17100ca004447fd9', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '65caba0dd3ee3ec9a287ea540e95bee5', '2015-03-09 16:10:57', '2015-03-09 16:10:57', 410780858)  (26.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:10:57 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:10:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:10:57 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 16:10:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:10:57 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:10:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:10:57 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 16:10:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:10:57 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:10:57 UTC +00:00], ["user_id", 1]] SQL (0.3ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 16:10:57 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:10:57 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8fbb0db663481fd2166242b82426345e', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b6669408109c2157b93397959f93aed1', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '673d3b9a52a72eea1dc717cb4151d5a5', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '41e4463fb6485ce4654fbf272950947e', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '97dd9203cb9b33cf34c322476bda7e5c', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '81139853e20d4bbc5276dbc8a5406dbe', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '102e5640596edf59f99749cf3ca46a1f', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1bfeff22f3fdd66408871276922db289', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '89a799bd7a18cc5426589318eadbf0a1', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a5f2ff1f4b985debad8efbd8b5d9b441', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c11b6ed06210534bddc8a31de124f2aa', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'acec6aed11bb86f5717089258c5ddb7c', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a18b62fd6f4aa8847610d3f036f97729', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0e289e6c154b1d88b2e40f5934b9e453', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a5f30b5507d9d8199829fb149a17b1c', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:12:53', '2015-03-09 16:12:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:12:53', '2015-03-09 16:12:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:12:53', '2015-03-09 16:12:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '81832234ddfcf100848639a0fb8a6cd8', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd56efed571b1cc71aac9a0cbe117136c', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3946760407e258ddb08bf217fccd97a3', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a3a4bc7c010d0a64f58d36226801b079', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '151111732da886f5067055c67e3a8b2a', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '32f55239aeab88d00d693d5298d1e093', '2015-03-09 16:12:53', '2015-03-09 16:12:53', 410780858)  (19.5ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:12:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:12:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:12:53 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 16:12:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:12:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:12:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:12:53 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 16:12:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:12:53 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:12:53 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 16:12:53 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:12:53 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c43f602406f1f34ea553c0d551fda4ab', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d9dbd3f04f3b68a49c47f0fc4b0770d', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0914872889bca317cfb8c45db5d71118', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a9af3f27380cf989e81b245c663f1062', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a4685bc252dcf06ee0b0ad16782ad4a4', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2cc961346b631aea254fb5fcc7fa9a9d', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2ee95a1a0acf95399c734751a8404933', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3e51a2f0e3ee09d2495838d14b34e65d', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2d78693e1c466e0a7f3787df8d08aa93', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '80e74ce6fa6b60343051f6ae07eafd85', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '11134e4d9ba8f738b193f63f8c431d5b', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0fcaec13758fa96eb35cbfe6b66a3fb3', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a94419ca9cb99e2a06482d48cf7b30bc', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b0f74d968f5bbdf457c50d985e356684', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a80249427c1c328079bc7e26462bf7ea', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:13:47', '2015-03-09 16:13:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:13:47', '2015-03-09 16:13:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:13:47', '2015-03-09 16:13:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '543a68d63525904d16e0642c640ba20f', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fd5709193d0eb537f328639d08cc4a38', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cb29f662faaae05f15212c1645df800d', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '85eccba7f13b6e15d58ab3ea6415b370', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6a8f8b32359cef307759dfe7bc528b37', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ea49d22757151d3aeab36489632068f2', '2015-03-09 16:13:47', '2015-03-09 16:13:47', 410780858)  (32.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:13:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:13:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:13:47 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 16:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:13:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:13:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:13:47 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 16:13:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:13:47 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:13:47 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 16:13:47 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:13:47 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3b44b26594495ec99240adf8fbffc81c', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '15dbc3815faaf4298170bd1a15b5944b', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f89953d02db03e478bf9e76923895ab1', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '64a2952eedd898a79e803ebb49971039', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8194d778b6fa17e4ad6b4d1a8831ece5', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd8c2436bd03a6d5ddc60ba4bd770b48b', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c1ca3344892745fd65e4a39dded22c7b', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6a1044229bd1185093da747230f92f6f', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd62061c4dd250db9ac589f8e895e852f', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fc6ead2452e28ea748cc0a0a3b086b85', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd41a050e825e9f120ec902e528098aa0', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e5d762476b9832540a9599f79431f3a0', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cb916ccbbc7282f9fff3c47d2fdf0b36', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a98e7e98819456abba8d54bcaa060fd4', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c79d004be26b79696392b047b009ff10', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:15:55', '2015-03-09 16:15:55', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:15:55', '2015-03-09 16:15:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:15:55', '2015-03-09 16:15:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '39ed9343176edc76002290ece6330573', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f6c48ca246d2d938afbe89ab9a13620c', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '764860c7e7a332360dc81475538aa9ce', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8a4142f1de71d9ee72f55c4fdb1c0096', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1027423c69d62ccd2c147c461b19c078', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '57befcad52827eca38002862981c5c46', '2015-03-09 16:15:55', '2015-03-09 16:15:55', 410780858)  (19.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:15:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:15:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:15:55 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 16:15:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:15:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:15:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:15:55 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 16:15:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:15:55 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:15:55 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 16:15:55 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:15:55 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ce8274f0dc19a4b281271800beda7e26', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '438d87a7a3d0e60b6af5d04e7557cffb', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '55bead4508d23af707d7353d8d181225', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f837c01549d61daf654da9851d814e7e', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3a58b0b070ba2feabe94d64c12430d24', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f7a67951c1bddaf12d2b924365289256', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '78b0d909329eb38d2c35235f5f283715', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '610e1030c30ba1850bf7ccf1aaa50577', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4e9305b2da76f0caf51f75761431727d', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0fe4770853bd23b5b8bbcfc602fc677d', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '46d8f9ae5586e7136c919ca712155e9c', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4186304d8335371f189c2c5b6f3bdc4d', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e59cb10911decc5748291133212ad658', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '97f726f83f04f2b708d890f7fff76198', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e2460d2f3be9837a26ff2169a4dd5ebe', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:16:23', '2015-03-09 16:16:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:16:23', '2015-03-09 16:16:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:16:23', '2015-03-09 16:16:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'deae0d687b5a40cd8e117887deb0cae1', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2427f0a09da9e7bb38425a3c124bbee6', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ae392705893b6453e21274c7e8f3aab6', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2067bec6b137bf6356f11413623e7db9', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2092992d51eded969da69f714b211bd4', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '16eea0f7cd387b1708f1bb6c238aa82d', '2015-03-09 16:16:23', '2015-03-09 16:16:23', 410780858)  (14.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:16:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:16:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:16:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 16:16:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:16:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:16:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:16:23 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 16:16:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:16:23 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:16:23 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 16:16:23 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:16:23 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a982ec3a6559de2c1b9a13708260a23c', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '207d6cdb108591cea291ee0844a91f98', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8f2e48e5364febe9bf2e83bef1646ebb', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8290008d8baeda6a5f03d330e8ad419a', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7d00dc2e40462065ca41f2d36ec6c62a', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0d45da01f3cde2b8fd8593f946e5b1cf', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '64cdb22d3540f62e0924b0146a4c595f', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a83e7ab65a07f65692c6b433a29536e6', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9d559b86dd74e02a75052dd9ac9484db', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 966629572) Fixture Delete (0.2ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd486d20eedda11d448db3e857cb39cd6', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'baecd7b33efadc28cc172e9c5a06d9e0', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f8aa87e1ab5725af1f5b6a963b12c715', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1ffdb1278619d054397985b03c350a49', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b8a9c3e9c28f1d72d78a9bb08ba80e75', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cbd0c73dc8d87fb6d7df4b10b2b87def', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:19:28', '2015-03-09 16:19:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:19:28', '2015-03-09 16:19:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:19:28', '2015-03-09 16:19:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '57a903be31a0d93182878d4ccbba0af9', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7718e8fb79403754b7e3839ce55f4e11', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5c05b5c26aec6ab4daf9373f2f017b46', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e2867bbcfd1876bc838b62d6d69ca7f3', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7152bf273c4325756407eb36cb457e1c', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '919f14e7b686cba0404a16ef72d348c6', '2015-03-09 16:19:28', '2015-03-09 16:19:28', 410780858)  (25.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:19:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:19:28 UTC +00:00]] SQL (0.4ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:19:28 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 16:19:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:19:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:19:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:19:28 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 16:19:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:19:28 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:19:28 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 16:19:28 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:19:28 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '975aad05daad32fafb6f6ba46fc5acdf', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f1bed1e06af2961d527cc62082ceb8ba', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd415e6b037498a6b6a97d6bf79fa2c6b', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd599ccab3df3d008ebc0748b9b617ffa', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4c6f178a2291d3bf0fdd9803e7b0398a', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5e2d2bf2eebdab7579134d9e5ad16507', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c258f471490412b9dde1323984b7b89b', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e769d7f30f407e230be4cf9ce47eb9a5', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'be5a839edea00f5e06d2cf1528d7887d', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '575eceb30c45888778fa511298933a3e', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'edad5ad49f530daa836dcc9a5ab807ab', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd3a5b9006b6e6793c95fcc1d120c7652', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b1b19029b9f243a5c7854821aa75fb9', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1353da384f70debb5724e5dc09b8c496', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '147d2ab5ca6135b4d0ebc10c6c81603f', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:24:31', '2015-03-09 16:24:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:24:31', '2015-03-09 16:24:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:24:31', '2015-03-09 16:24:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '993adf0557aa80881a856334c352543e', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0f50b274cec526d53b44085ad6023ebf', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '66d6112c55e2635bdd426931f2b070c6', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '23aad2f8ecaa0e4ae6d277120a8ffcfb', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1cf8f03d010348c6a9affa23e4e7e17b', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a7769dbce961a642fdf10c81b0adfa81', '2015-03-09 16:24:31', '2015-03-09 16:24:31', 410780858)  (15.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:24:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:24:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:24:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 16:24:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:24:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:24:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:24:31 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 16:24:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:24:31 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:24:31 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 16:24:31 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:24:31 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '82bb761427b4719b39e241772add104a', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '336d6fe6b763782ef3a4c88fc48ed205', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8f0d777966943120b5ff04fea6c66aa0', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ac0f57ed6006c2bada940f5c53b21684', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0a3023588d08b89a6b83ef0944fe5574', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7b2ece5681f6079c8028eb6b8aa9efa6', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '19411d2ec987929b52db668e90ca5302', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '797847b6d38c9291bb4748c8a07f0859', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'afa8680b238a48b2b826c704653ca790', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '31b48c2dcafb6667cdfd1033f8deeb94', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '65046a7a04b2486364a6b44fafd745b3', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b835f068cf064c383fc0229df27f8d0a', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '16e264d58568ade4f21281d2a5082c27', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '05b5697e3aaefc124aef14d7336430a5', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a20aa4705dbf3c3d962e00955e81396c', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:26:37', '2015-03-09 16:26:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:26:37', '2015-03-09 16:26:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:26:37', '2015-03-09 16:26:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'aaa67949eada39f41f724a9772ef92e4', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f2337a2574c3e8137da01e85fc7ff546', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c30d0b1832df2ea3fb334b497beb4868', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7bb83d6608ba919ef282320c6613f195', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c78bfe4d54301f23c10e02c5cac39e55', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6c7e8680ddd8ccf2594b857d8e2d7ec6', '2015-03-09 16:26:37', '2015-03-09 16:26:37', 410780858)  (37.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:26:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:26:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:26:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 16:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:26:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:26:37 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 16:26:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:26:37 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:26:37 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 16:26:37 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:26:37 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb594d3df2655e0d950f8c6a916e8652', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1705f921859765ce4dd34a9ae561b989', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c02cd0c1af700523faccf30d0f393976', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fbeab30044a6310c15988ad42d0cbbed', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '71ffcd5faa9e368c8913f8e2059df6dc', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '706566c08143643c248c28102869fe4b', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '48dec5160b605ede62575bc67700f0f4', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e8e260b5d97e03ebbfd8736f65fa2f48', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '68c6116aec0ca6adb5c453473a870513', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e031f8b3f4c2a6a2e02a80054bf1dbdf', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '01a60d06a4faad688edd57eb15109ae9', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '57aa47e10880cab2de0fafbdd46291d9', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb1b6378c70f213a47946ae0d5a50b60', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '50ddb69c308f5d3bebc6ce66b49cb241', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fc2845c9063ca59de2c8a391dc377412', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:30:59', '2015-03-09 16:30:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:30:59', '2015-03-09 16:30:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:30:59', '2015-03-09 16:30:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0113c96350a69c70fe88106bb9072050', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '35cd04085faacfd9ae56c13a3dd4c430', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '382f394fa581be30828eb1a7a8692a8c', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5b8b46a5f6bdd32ff5f09daf7785441e', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9eee4f46ef1a460e447738b99f63a969', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'abdc9be449806c39b282b4c045ff1fdd', '2015-03-09 16:30:59', '2015-03-09 16:30:59', 410780858)  (25.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:30:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:30:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:30:59 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 16:30:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:30:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:30:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:30:59 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 16:30:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:30:59 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:30:59 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 16:30:59 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:30:59 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5df9232c76ed9e4b3d925452fd61a8d8', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c3db046ec1fff3bbb2b12b07397ea6b6', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c32f5540ebab46188ff0e54946f7e5f', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7f194960ae872eaa57f046b5ce3b8914', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '02dfc80ae8023ebe4577f37bc4d6966e', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '64a15f2819de27c907d03c053c3b4a47', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6c57dbf2f23bc2d09ef23584d9588a61', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a6f2fba236352ab9388c992edafca9e7', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fd3ea2d618935b1e7a9968ad89a41fcb', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7488bdf0c79398fe04cb7502e368082a', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a3823d8621a615bf2bf38367207f441b', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ff04a96291b0131f7e2f3a10df112cc4', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd04744c0f4cb35e6e642a7a2ccb63534', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9224ed1082c136477558a8c6e5a082ed', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5c13a70a97a33e06b3bce66a675d955a', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:32:03', '2015-03-09 16:32:03', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:32:03', '2015-03-09 16:32:03', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-09 16:32:03', '2015-03-09 16:32:03', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5dcb4245e0c3bedd04f549191c2adee9', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a0f6139208e82c29f88c06d23234fed1', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7d163b649e46b2b5fa8a8e5bb55052f7', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ca2fb53f9e732e4fbf15cc10f90e6527', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '784f9c851d5fc34dc7399af38a4fed65', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5ed6d668376cdd1db2dbaf0a2e552d2f', '2015-03-09 16:32:03', '2015-03-09 16:32:03', 410780858)  (13.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:32:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:32:03 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:32:03 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 09 Mar 2015 16:32:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:32:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 09 Mar 2015 16:32:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:32:03 UTC +00:00], ["id", 1], ["updated_at", Mon, 09 Mar 2015 16:32:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 09 Mar 2015 16:32:03 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:32:03 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Mon, 09 Mar 2015 16:32:03 UTC +00:00], ["updated_at", Mon, 09 Mar 2015 16:32:03 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (1.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a750fa9c58e28453e80cd5597a85803d', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3fb43c1c69fec60cc0493064ac32daa5', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '773763b279dde48890d6f83fd9282e17', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0ca6e1ddea490e8d52dac9379350ea85', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0c05a5234be0cb2c5669a55805ac4ca5', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4286354ac3cfcfa06ade83d76bb16e52', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f768262e3ec92040415c3ed3676ba358', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f9b8ef33e7c1c77ad92267806978294e', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '762ac77869bd935146aaf54d3d253b18', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8acebdcceadf964dc2d494d2de434b73', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1ca838a85e96346e3d9c285f38c9adf7', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ab40a0bba2d22ee4bb36547bdc514a71', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4baf28e36225ed8c8d87d1d0dafd84e4', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '662473885544895f2a559707c3ec7e53', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0c254d8983cf6fbca315c2cbac878d50', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 18:15:21', '2015-03-10 18:15:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 18:15:21', '2015-03-10 18:15:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 18:15:21', '2015-03-10 18:15:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'aee03e384409143fa955c438f145090f', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6ae1045d9bda3f70916f0784a6f88db1', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '52fa3262e7c01a7ebd449b6ea2f50a8a', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1a47a6e8ccf4a78c88f98139e12a9432', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '44f352b2143fbba589554855be35e0cc', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '74d262cce21135ed60b2a7d4c3bea5a3', '2015-03-10 18:15:21', '2015-03-10 18:15:21', 410780858)  (27.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:15:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 10 Mar 2015 18:15:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:15:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 10 Mar 2015 18:15:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:15:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 10 Mar 2015 18:15:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:15:21 UTC +00:00], ["id", 1], ["updated_at", Tue, 10 Mar 2015 18:15:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:15:21 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 18:15:21 UTC +00:00], ["user_id", 1]] SQL (0.3ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Tue, 10 Mar 2015 18:15:21 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 18:15:21 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7ab187d6bfe070d5e4a01f62d84f95cb', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8858743560d894cfe927f8f31c576078', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '99d4238d90f657ed157da7042bdbde14', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7702901c47d039821e624c0f8ebab746', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '44bbc50e080541c84e75ff3f2ba88389', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1bf3084a3c75ff9406eea4b90a0a019f', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8f6dfeaaeb1f5597a583b858a19fe0de', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9ff496cf695cdcd0c041eb2ad7bd1079', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '62b827712132d7dc26d5b489d460ad2a', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8e49a69a282185a728c4b5cf113dbb66', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f55f564eabc1901c806f5e49cb86f2cc', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e5430aa369721015432a3b9fa9f4784a', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ca281b745b828c6d19a17c17b3dbe59d', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'addb51a3f4bc1bdb150506a5153432a2', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '016d75e177b09785aa9a4f3e2b552894', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 18:15:30', '2015-03-10 18:15:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 18:15:30', '2015-03-10 18:15:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 18:15:30', '2015-03-10 18:15:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'af4e79ed244d73215e689cf2d85d64ea', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '46b710c630ef9afbd2800b87aedb3572', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '34537af0f98b73c1056c030c5b4edc01', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0bbb1059a77f014ad25edf3722ec93fd', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '574b03e3b745c98bca2e8c4cac4827c3', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1f2c415e8cbbc74d093f7dcced044396', '2015-03-10 18:15:30', '2015-03-10 18:15:30', 410780858)  (29.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:15:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 10 Mar 2015 18:15:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:15:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 10 Mar 2015 18:15:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:15:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 10 Mar 2015 18:15:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:15:30 UTC +00:00], ["id", 1], ["updated_at", Tue, 10 Mar 2015 18:15:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:15:30 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 18:15:30 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Tue, 10 Mar 2015 18:15:30 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 18:15:30 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c9820d7592d3c013fe1bc2171e2adf75', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '93dd57951dee7385ebac5feb570287aa', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a613a37188c2fa716326888083d1ff27', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9538f8668e564c293f31152d95e8c624', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e64800896ad2f894b8394fbe35c8fa29', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '126d1ddf06f8a202e32ecb2c09efa402', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c8a333a76d432c702e1b14da912eb3f2', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c724a9e3d0c7f4e1bd393436c90022d6', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e43e82d3685efca1fd8ffdfcd4779881', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0cd8788880b149213f5bfc2c9798e836', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3b1f71ef4c2f44cc6bccf924152bbf7f', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '02e4ea014a607f4e288f019027fa0ccc', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '47b7f11103f1ec7bb9b444c426adeafc', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cf9241662d9f84155540ed5597530408', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4397962ae2bcb0f0f53f3a644dcadba6', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 18:29:00', '2015-03-10 18:29:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 18:29:00', '2015-03-10 18:29:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 18:29:00', '2015-03-10 18:29:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4dcb0430303397d061e2912324fe317f', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b54889d33d82a8b3c06e2affb1fcc841', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '968d3cd5ce61151ced03ebf0d35bc854', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '98d518dfc16939c3596919a1178dcf2a', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a4c0a2b24d5801cad9447c368fc49212', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '81969d82f6c3589655b3608ee6eb5ad6', '2015-03-10 18:29:00', '2015-03-10 18:29:00', 410780858)  (14.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:29:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 10 Mar 2015 18:29:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:29:00 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 10 Mar 2015 18:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:29:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 10 Mar 2015 18:29:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:29:00 UTC +00:00], ["id", 1], ["updated_at", Tue, 10 Mar 2015 18:29:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 10 Mar 2015 18:29:00 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 18:29:00 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Tue, 10 Mar 2015 18:29:00 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 18:29:00 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e2710e960ff981953e0c02a683bd80e2', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5d171fa823315d34969c8a99dbf790a7', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '96fa7bffe5b048a4e4408e3b56522852', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '04e1383e6eb80fa4131c828efdf824df', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4818285cec67d646037170beae708400', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c35f4b07ea4ec14749e6209c3474ea8d', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1c12fbbd45c4559faa1cf0e263da36df', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7bbd8731f3f8101a2aba88a26c769826', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4caa744b4904cede8569c0d436376e0b', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'df5523ff3630a149bc42b55a8112fc64', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4e49601f0b4a28a46a7beccc78f75ce8', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ab7355cc4e556d3cbab6eb8c82a12ba4', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ae939e68d8fbd3225513b16f62585b18', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '902ba976c0172110f1e670e2cee53e00', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '162f0fdec486899a5f108d84ea527361', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 19:02:47', '2015-03-10 19:02:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 19:02:47', '2015-03-10 19:02:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 19:02:47', '2015-03-10 19:02:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'aacae981d8a70374cf3ac65bade2f33e', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bc9266011dfbe8edd2983991f5a9110c', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e658a671184eef52b517bc26ab5cce55', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '993c2fdaad59df94477fa765fe8f8a55', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '970de2cf6d6f69a019f52ad78eaba954', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '146601c3cef78e141c272fe3fbc1a884', '2015-03-10 19:02:47', '2015-03-10 19:02:47', 410780858)  (17.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 19:02:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 10 Mar 2015 19:02:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 19:02:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 10 Mar 2015 19:02:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 19:02:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 10 Mar 2015 19:02:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Mar 2015 19:02:48 UTC +00:00], ["id", 1], ["updated_at", Tue, 10 Mar 2015 19:02:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 10 Mar 2015 19:02:48 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:02:48 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Tue, 10 Mar 2015 19:02:48 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:02:48 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '78d7cab391665541d7009af2362e85bb', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'feef92fe8ffd45e7e63a6017d7b53559', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'de5330935750a1f11f99b43d1c368357', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1fc9c2273bfbdb362281f4a2e14b8a58', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b6faa8eb54e1e8d75dd88cfe71e2f8af', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '16c1cebd877a25c9c471b3c86926fe5e', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c5566780504de5c67e13239a927eff76', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '85f4a5268803f3f53be95c113dc6a071', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5c58ca3793e6e77b7f6e8826ff0ed3b7', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f8d604c5e7886e5f47d1dabba8aefb52', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2e5200dab3d063d579165280537b3bc3', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c9a2f43d1009b0ca58540b779abc6b06', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd894902f42245970a7ff298e44bb988f', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '75a15b66c1c631c04ad22917d24c896b', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd75c240d97d5f7ea7ba0d651403fde21', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 19:09:47', '2015-03-10 19:09:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 19:09:47', '2015-03-10 19:09:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-10 19:09:47', '2015-03-10 19:09:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'da29594f1cac0733bd07b4d8bbdfccca', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9ab4575cfa21155a4a387934fe515c20', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '040cdf09a042c2bc957f5bf303dc243f', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '670f771175fa71458e35487deb4a3056', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1ef94725172720112058701789014a4d', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '718f577ff49067cbee81f605494cd03a', '2015-03-10 19:09:47', '2015-03-10 19:09:47', 410780858)  (20.2ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 19:09:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 10 Mar 2015 19:09:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 19:09:47 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 10 Mar 2015 19:09:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 10 Mar 2015 19:09:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 10 Mar 2015 19:09:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 10 Mar 2015 19:09:47 UTC +00:00], ["id", 1], ["updated_at", Tue, 10 Mar 2015 19:09:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 10 Mar 2015 19:09:47 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:09:47 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Tue, 10 Mar 2015 19:09:47 UTC +00:00], ["updated_at", Tue, 10 Mar 2015 19:09:47 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.8ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '18194981af865b6d250e2a88ce03326c', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '15e424acdb55efec12f02eaa0551c659', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fa45123e5f42e44238e519aa33f08e2b', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '399efb9ef127c43ae9396bae08c4681b', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1fe82f4f8757e3a716f341115dbb541f', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b974c9d7224d6f581f73288b758d041', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e893dfa67a26c80120b7e85c70a7daf9', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f259f8e0f9337d156a65dcfadf5bdcbe', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4ec26586d11621f535dbe7d1fb9d17cb', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b9de1d225a8f5b4eabc75c13f528ca54', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cef8a48f69041f6e61eb72214c779b57', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a91fedc866c100b9626710f9dd4e83e8', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a36f4a22e3827bb835316f4a7f26ad89', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c062e7ae2716abd397f74b4c5888f433', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'db4f7fc60a1c47d04799b8dbe70f10fd', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:02:49', '2015-03-11 10:02:49', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:02:49', '2015-03-11 10:02:49', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:02:49', '2015-03-11 10:02:49', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1d65bffb6e3e76fa76d0693f1c0ef2c1', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8a3bd79a6a0eddde3b0089b81883a15d', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '38f625f3ef0d57d94964f2c3a64ff283', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '73fa1a9d27f274de42dab865b47806fd', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ee167509006fcedcd5908d3bfd5dc9de', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'be1f6dbcab015617e1815dc4dedab7a0', '2015-03-11 10:02:49', '2015-03-11 10:02:49', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:02:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 11 Mar 2015 10:02:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:02:49 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 11 Mar 2015 10:02:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:02:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 11 Mar 2015 10:02:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:02:49 UTC +00:00], ["id", 1], ["updated_at", Wed, 11 Mar 2015 10:02:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:02:49 UTC +00:00], ["updated_at", Wed, 11 Mar 2015 10:02:49 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 11 Mar 2015 10:02:49 UTC +00:00], ["updated_at", Wed, 11 Mar 2015 10:02:49 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f02a9eddbe5dcfa13b25911ec797d23f', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e1c78c08968c497e1e391e2c4bfa2087', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fd8762b77eafa5bb3bac7048c5153cb3', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b461189db7885115ea9626e325c08c15', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4c430619eeaafda6ee86357b109782a3', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e56db5b722094d7d0c2e42fd612fd55e', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f24aa5c50f46dd71483cec0324755b35', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '45bc21b99ba297ed1151c24f56462016', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9c626a338b7c056c5075e51fb002b9f0', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f5fc7694b3c479997de305e43bdfff1c', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b7afd1c4b77fa79dfcaaeb12931d08ae', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e6d4ec1b37fd19fa273b30a32a3fca6a', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0d91377560ad6ec5dec060ddf019e4e3', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a0bbfb161a245e03dd917a6e73575096', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '055a9329ada11193fd39ec6b920c302b', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:03:41', '2015-03-11 10:03:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:03:41', '2015-03-11 10:03:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:03:41', '2015-03-11 10:03:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '002116beba8d347707302487f97ea45a', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f351be2cb42949bc014f34718d8178fd', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a785a4fec7660d6c490deb4e3f982a2f', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a34375de34bbb6c6afac347d0984dd31', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '549e1e68da1bbd95b97ebc5ccbccd68c', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4d5d8265cdb78750f9b7e16d8c7aadbd', '2015-03-11 10:03:41', '2015-03-11 10:03:41', 410780858)  (22.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:03:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 11 Mar 2015 10:03:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:03:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 11 Mar 2015 10:03:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:03:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 11 Mar 2015 10:03:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:03:41 UTC +00:00], ["id", 1], ["updated_at", Wed, 11 Mar 2015 10:03:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:03:41 UTC +00:00], ["updated_at", Wed, 11 Mar 2015 10:03:41 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 11 Mar 2015 10:03:41 UTC +00:00], ["updated_at", Wed, 11 Mar 2015 10:03:41 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'af304cca25ea689beadeda34f35df26f', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6c92e38b093e2aec77459441c8e4f231', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'da243f428ab4c23e78e0d0c026a4887a', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '229456cad18b4de955077a04bb2f66a5', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fd1f95e4ecaa518abbd7ea07d7b3b65f', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '62f5457eaff531addf40ef3db4c55feb', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6504118c91a631dff33ecd5e52281fbf', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1a1fa3cefafe02b28eb8ff468f6797ff', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '097f3dfb3cd52486933417e78ac06c48', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bd10b5793d4a452edee22a7eb35164e8', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c41175c64039838c3bea5ca0a011f7a6', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2ed938a3250179b712c1e5921341accf', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '39594192ac0bb581a9ea35049aca0dce', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '816df367f2b61a5dd76414dce0f5d26c', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b96b2d660c7d284e05e6ab5791a4643c', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:04:31', '2015-03-11 10:04:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:04:31', '2015-03-11 10:04:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:04:31', '2015-03-11 10:04:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c735a6bd98346772fff5b4de9a40cb0d', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'eb124c581a383281b22661fe0b93edd9', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'af31b196f4903d866096789eafc5fc6e', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4473a1c3f9b760c62611021c8156e7b2', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ec7b51e3c25f8f602ee0a609d2dff698', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '124b39e288e91c1428cb25015969f26f', '2015-03-11 10:04:31', '2015-03-11 10:04:31', 410780858)  (30.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-03-11 10:04:31.894744"], ["updated_at", "2015-03-11 10:04:31.894744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-03-11 10:04:31.899400"], ["updated_at", "2015-03-11 10:04:31.899400"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-03-11 10:04:31.900645"], ["updated_at", "2015-03-11 10:04:31.900645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-03-11 10:04:31.924809"], ["updated_at", "2015-03-11 10:04:31.924809"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-03-11 10:04:31.926214"], ["updated_at", "2015-03-11 10:04:31.926214"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 980190963], ["created_at", "2015-03-11 10:04:31.927301"], ["updated_at", "2015-03-11 10:04:31.927301"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0309968096f95700212bfdafb7807210', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3e293e240e5fecede153cd571aca04ab', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'faac63246fb6c71d40de5a97e8f4f1c4', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7b08ba5e5300c772d43ab9c1ebb2395c', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '68a66bc037834d925e0d6ce0dd982f95', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1fcbd48f36849e79e06be9bd4712a6d5', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1ad1f3f6eee82f0338311644520ceb99', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4d2655841245a97d5337fa12d1a617c0', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fb6d13e5d3ec461ea0dab9314aa270f7', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '63e95941df8b2e07f68fe713cf75ebc6', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '10c0e92735703291eaf134f4a203c4bf', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1ba76d673828061e59cec5a8d4fbe881', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0cca3e4e16fb7dac555ef66875332582', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62f0d14d59aee1f038c37a68d79b5fa7', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '60711879efb1fabafb278b94f77ed2f0', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:07:02', '2015-03-11 10:07:02', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:07:02', '2015-03-11 10:07:02', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:07:02', '2015-03-11 10:07:02', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '15abc899682cf8e0c2ad7464c9de70e1', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '72c158ad849c6b649ad7220bae28a0cf', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '71575ad4cefbb1960de18e4c9235ef9d', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c344004d725a9408455b0b2f8782b993', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fb16939d07a5d4b4a4a8f3a21b4c4b67', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6ca403a583c4fb422a993ef3001112cc', '2015-03-11 10:07:02', '2015-03-11 10:07:02', 410780858)  (31.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0004_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0001_#fails nil true false Class #method :symbol --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-03-11 10:07:02.400478"], ["updated_at", "2015-03-11 10:07:02.400478"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-03-11 10:07:02.402146"], ["updated_at", "2015-03-11 10:07:02.402146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0003_#errors nil true false Class #method :symbol ---------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0006_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0010_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#skips nil true false Class #method :symbol --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0007_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-03-11 10:07:02.433294"], ["updated_at", "2015-03-11 10:07:02.433294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-03-11 10:07:02.442415"], ["updated_at", "2015-03-11 10:07:02.442415"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-03-11 10:07:02.443692"], ["updated_at", "2015-03-11 10:07:02.443692"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 980190963], ["created_at", "2015-03-11 10:07:02.444896"], ["updated_at", "2015-03-11 10:07:02.444896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2e29706a4f1c93f0ed8aa37a8057b35d', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '92a387a6cd5f38c7a93498f1e29674a9', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ca483bfe5f07a784bbe8ad6d8f53ca34', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ff35eff508bfcc26c93bbc94dff266b8', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd7b07d3ddd49bbaaf2876aece868d93c', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7963409cdd5e35ad63209956c1faf5ac', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'afb08d16b49aa68960690b5b1e76b699', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9dc9ec51df1dc2c31c19713177e744f6', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '71b383b43fc50a2e341d6cf292abb768', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '71c6776ef4befc5362cb3e4b1f6e2790', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '98e8bfcea96a382800cddfee1b8e4392', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c09dec9361cb74eaa7f7f1485a0a160c', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2828abe07f93b744b2ec8a06539ab5c8', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '404d971d0c37a4827003a85421f56eec', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '12859df6c772e69661fb994dee588389', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:09:16', '2015-03-11 10:09:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:09:16', '2015-03-11 10:09:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:09:16', '2015-03-11 10:09:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a59d21fcb5422fddc9da44a2e7126bab', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5870fc348b1b771fa583dca076ebf773', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd3b55287acf5df5315b02e01f76b547d', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '91e40d43f2076fa8a23f15a8aff8ec09', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5c6185b853897109c552bad2f5fdb9f0', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5cc4130d881d898d74b149f905f2053a', '2015-03-11 10:09:16', '2015-03-11 10:09:16', 410780858)  (13.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0001_#fails nil true false Class #method :symbol --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb91be441ab171fc9f110677db89f9a8', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '35ce5d60d7d45cd04efb53989d22733d', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '881fce46a25774c1e0bc13c229b03880', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98cf00bcd0783c4aea1604cdc7754a07', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '60b279d9b24997e3f0fcb4ba1f4c35d1', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '49d08225b3f3ba13a7384f37184f13e1', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3fce4f3d9217d8f9bd7d1973f9588add', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '76571439f304cb77de33258ba446d0d2', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c151f0e6fea53c715dbb8744081705f9', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '56dd3eec2d9f83a6307ac02ab78bab62', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ea4d3eadc10edf456032efb890ed8893', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6f8f2c3cab87d4373a9a2103986c99d7', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'caf86dda02e371c52aeb70bc2d63854c', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3c08e92a575fe30e514510111eede78f', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c3082b40d67da59e61ef528f05ead4c', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:12:27', '2015-03-11 10:12:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:12:27', '2015-03-11 10:12:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:12:27', '2015-03-11 10:12:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3a6f92f9312f9f5b313522726d70e6ad', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c0840ab930a8a7fb16b2ac92063485c9', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9b98913576ed9729ac9227a24c26b05a', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '32e904eece12838526b1b4b557207404', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1a3bfecbe3c9fcc9d0169eec41418930', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1340ab593c1d48baf96737ddcb6e0b8c', '2015-03-11 10:12:27', '2015-03-11 10:12:27', 410780858)  (29.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0001_#fails nil true false Class #method :symbol --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#skips nil true false Class #method :symbol --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0003_#errors nil true false Class #method :symbol ---------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0004_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0006_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0007_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0010_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:12:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 11 Mar 2015 10:12:27 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:12:27 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 11 Mar 2015 10:12:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:12:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 11 Mar 2015 10:12:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:12:27 UTC +00:00], ["id", 1], ["updated_at", Wed, 11 Mar 2015 10:12:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:12:27 UTC +00:00], ["updated_at", Wed, 11 Mar 2015 10:12:27 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 11 Mar 2015 10:12:27 UTC +00:00], ["updated_at", Wed, 11 Mar 2015 10:12:27 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bf58f947c436c239e82de94cd4f9ef2d', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5ddfcbb24850939dd3000d4f7de34403', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '609e50faab89621d9309992d10a03f17', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aed00f2244233785bf974d08b87fc662', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1df0273013242d6f8ea4ab5a176c8e3c', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1ec682e145d79250bddf92389fe870ca', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '53b68da4f26066e3cffda68b1a5af9f1', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8552c506fc285bae605d58b5311cb3b1', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1afacf1d79724c6d0b52bf43d711045c', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0036ae5e8f48e19dbf7c51dd6025eadd', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '562d6138b313d839da9109083a41857c', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '53c0f4a5d9709785c02dba5979a4957d', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '23c78c7d24cf53d3d38da4846e7152dd', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '44dd4fb5171cc9561efd4bf59af3ed9f', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '88b124918fd5a2f1e7fcf56b9481e1d5', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:33:41', '2015-03-11 10:33:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:33:41', '2015-03-11 10:33:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:33:41', '2015-03-11 10:33:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.3ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '02fab3ddcf436575f6989b5b007818f7', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9e3a7d2a74a431192657ad645c4566a8', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0d80e032cbdca73c42231c56c71e333f', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '016d2958f8c71129aa459dec0ce49122', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '55d0c996f1000a9e9fb8a49e076ed86c', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '22adb27eee3e5bbed37a66e824f34fb4', '2015-03-11 10:33:41', '2015-03-11 10:33:41', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0001_#fails nil true false Class #method :symbol --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#skips nil true false Class #method :symbol --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0003_#errors nil true false Class #method :symbol ---------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0004_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0006_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0007_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0010_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:33:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 11 Mar 2015 10:33:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:33:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 11 Mar 2015 10:33:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:33:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 11 Mar 2015 10:33:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:33:41 UTC +00:00], ["id", 1], ["updated_at", Wed, 11 Mar 2015 10:33:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:33:41 UTC +00:00], ["updated_at", Wed, 11 Mar 2015 10:33:41 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 11 Mar 2015 10:33:41 UTC +00:00], ["updated_at", Wed, 11 Mar 2015 10:33:41 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5bd79ff9001ca291e64c6b652e5cfdc6', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e8d94441645bb75baddbfc52b468fe18', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6623d65360749a599875c6408ed6aa95', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2a30e4acc2722f0fdcd479e91043c96f', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7fabae41603207f546d696bc4dd93801', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa6299a5787c3a94affc5e09441287ba', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3a13e9515ddbc5803e9102c2bbc2dcf2', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'efd2f966da6ceb4f09e177b1dc3e89ad', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f10a00c970ccf7b50b1e05117a2d2a71', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0d577788fe609165a2e0060c5abb4313', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '91b0afda9536c98c45ebf97882356ca0', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ebe5c2a4b364f93917f353e09b7ca41f', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '22c477e8d36533e534445ce0c3872aa9', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a32ca20d0b16d8e39ccd04f3f690d709', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bd9ab51e976e615aace74b92107fc111', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:42:43', '2015-03-11 10:42:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:42:43', '2015-03-11 10:42:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:42:43', '2015-03-11 10:42:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2e4d1d2423b5f5fbb636fbfdd8fd3af4', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '551411c31f594ca7af6f6d364d736751', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '11919b3a0ff323c1a21e4074c031c614', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd05535b55e6698651c7abbd2fbe57154', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '64e4c617b45c7db13b952802341c8839', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '83ee942d679209ce917f7ab9112630b8', '2015-03-11 10:42:43', '2015-03-11 10:42:43', 410780858)  (25.6ms) commit transaction  (0.2ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0001_#fails nil true false Class #method :symbol --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#skips nil true false Class #method :symbol --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0003_#errors nil true false Class #method :symbol ---------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0004_is a module ------------------------------------------  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0006_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0007_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0010_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (4.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:42:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 11 Mar 2015 10:42:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:42:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 11 Mar 2015 10:42:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:42:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 11 Mar 2015 10:42:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:42:43 UTC +00:00], ["id", 1], ["updated_at", Wed, 11 Mar 2015 10:42:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:42:43 UTC +00:00], ["updated_at", Wed, 11 Mar 2015 10:42:43 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 11 Mar 2015 10:42:43 UTC +00:00], ["updated_at", Wed, 11 Mar 2015 10:42:43 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'db7ab109d66e26ffee9f287f1ada63fe', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4e92bebb323e3386b36e574283c6ac6b', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '63fdb71594ba0a66b60e596b1bc74a79', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '723b4973798eae9079cefb775871a6f1', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '673f9cb079be1a1410a8cf9a3ab41980', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8b727a9cbf9ef58dfc372fa427cfaefb', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '289bd066757308522970f5fdba2c04c4', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '97d97d6b0fe39bf3ca3fcc83df37fab5', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a37ffcdc98b4037aa79a7a4c1f9e080f', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '23a8b7be3ac739f4ca278710a4a82f1a', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '21c840e4b9bc8b53d75a131243808d35', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 102195269) Fixture Insert (0.3ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '15e8e65bd0ba2bd08398b255a935179a', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 483796712) Fixture Delete (0.3ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '001779123336bea35b5ac118c697c202', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c4bedd3e27458b5ac7b4ebc5c200d1d0', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f87af3708b7e6e588d5de3869b152bc3', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:43:23', '2015-03-11 10:43:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:43:23', '2015-03-11 10:43:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-11 10:43:23', '2015-03-11 10:43:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0a64a6fa365fff64045836faa6dddcc4', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd584743e5e6ba4dcbba4a2ebd3e1065e', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 1035759634) Fixture Insert (0.4ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4fbe4fbbb31c1e1238be9d5f00633cf7', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c937d078722de787aeb9731496da8c03', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b1da654ac418e684bad4c7f22e3177a7', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ef6a81c1175a83008bb66f246e8a9df0', '2015-03-11 10:43:23', '2015-03-11 10:43:23', 410780858)  (16.8ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.6ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.6ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:43:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 11 Mar 2015 10:43:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:43:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 11 Mar 2015 10:43:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:43:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 11 Mar 2015 10:43:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:43:23 UTC +00:00], ["id", 1], ["updated_at", Wed, 11 Mar 2015 10:43:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 11 Mar 2015 10:43:23 UTC +00:00], ["updated_at", Wed, 11 Mar 2015 10:43:23 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 11 Mar 2015 10:43:23 UTC +00:00], ["updated_at", Wed, 11 Mar 2015 10:43:23 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (1.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e4e63ff2426077c93c9d0e749c8e8383', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '787a2cbab193986a246d660c68848b56', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5d94c0a65428537546d2cd6ed7874b5', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8635ea1f43e748ec4ce8a7c37bf507a4', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6ed8e2854f8a5382d23bd280a683bfeb', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b77f600bd822132a7ffe05ed9acb5723', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'be1e72074e01e1e67b0255b82a40291f', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '317efbc7fd6a61ee02c0d2a2c90edb57', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2b0602db0d7cdcd086b7fa5ccab545a9', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '15c7a744b115093878eac04951cd04d2', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '580415562d46c5f3572670355737e55f', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9ac64ee5ffca44e3ac38df76d549ebea', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '00001854da92dedf385dc8f2f9b34eb9', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5b97ff3b5d1b2878179aa7568b551157', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '19af7e6a3b5003f97607f450f2aae1bc', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 18:56:41', '2015-03-18 18:56:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 18:56:41', '2015-03-18 18:56:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 18:56:41', '2015-03-18 18:56:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '145acee5719590adf362be0ed783aada', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'de2cf6d40ba898f99094240774dbba46', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '51f176e5557acb7f9e3d62bf0ce5be43', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '782e5170500ff369c6413412570b2cf9', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ecb55310a0b9d7922f67c8d82b4ac183', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e4b2ee9542c09c32af3ba61480e46f7c', '2015-03-18 18:56:41', '2015-03-18 18:56:41', 410780858)  (23.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:56:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 18:56:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:56:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 18:56:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:56:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 18:56:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:56:41 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 18:56:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:56:41 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 18:56:41 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 18:56:41 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 18:56:41 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c74d051fdebdd6574a3a94b99948521c', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '583c75de290c31a84a3d3563ed59c93a', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 1057142427) Fixture Insert (0.4ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd67f26445a0023cfa1e32eafcef5f2f1', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '20b89e89330debe060c8b113129c18b1', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '38f2847744b473cb998f42f859c6a919', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7a37b074df9ace7764cdd65200eb5b3c', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b8a5d57e0930bf13700d21f1e28c7918', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '14002593325eaa91133ca7833422608b', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'bb3219dd10b7c7d1a491e48b689e3e8b', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a7dbe0f957f14ca4245c00c4e04bdb3d', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '822f07119dd9694648ea22c12064063c', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2c6de0cae6b82f8727f5024d57a85cc0', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dc4fcdebd48c67345844c113e15670c4', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '314101ed5a82f769d1a6e66220644021', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f4d2be17046fbfe51aeba37fcf21f8d7', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 18:59:18', '2015-03-18 18:59:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 18:59:18', '2015-03-18 18:59:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 18:59:18', '2015-03-18 18:59:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 421646738, 336964236) Fixture Delete (0.3ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd30fb5ca70e3f1196863e90577d17b3d', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6f83a92b784d56d4de0c32e28365d08a', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '130a0970a1bb8dac8a36a086a7682f2c', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1411526adef4ddc8bec0a284bd54b40b', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '718cdd0b2c1674624d0335ca5cc4eb2d', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ef0561ea231d085053f8ad6d8e3ab84c', '2015-03-18 18:59:18', '2015-03-18 18:59:18', 410780858)  (18.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:59:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 18:59:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:59:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 18:59:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:59:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 18:59:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:59:18 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 18:59:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:59:18 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 18:59:18 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 18:59:18 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 18:59:18 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 106545386, 'Address', 633598004) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '24de9e16f8efb8f125bbbb984030cd60', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0ac8d97edd8194a25e59202376996580', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c95e702c4b59255356d8cad335978503', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c34cf78d8bfb0abab2d8996552b67989', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 775134066) Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b6ee581e47ea8776b5a7496425a05848', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '85af899c9a0f1fe7b7fcd6d45cc8e9e0', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '828fc1a8d587e136cf5f834388ad06a2', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1df3d60ef9ffd2feec5a506da9d2f592', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6307d9c3f73ab0bbbac9edefd60cc4ae', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 966629572) Fixture Delete (0.4ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1b948f273f7ff4181a017dd0dbee1cfb', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e1834e13ebc3a4e586760e81a6da9357', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '01706c3df671c02b1fbdf207a5cdd744', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4ca70e473243299ddf2f8dd17a66d7a4', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a9c25eae2164d793ccddabb1fe8810e5', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ea4508a1f9e69f0ba5a7149736c1e8cc', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 18:59:55', '2015-03-18 18:59:55', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 18:59:55', '2015-03-18 18:59:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 18:59:55', '2015-03-18 18:59:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cd22292e8971c61051566ff56c444ac6', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b5468f86a759afce3baaed3ced0fc181', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 1035759634) Fixture Insert (0.4ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '74f35072b2d31c3c4b19c327e18345ff', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '09e15a316a7448213e57803fab04c3f7', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd4e330e238be0e263e5704a54656f353', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 970698464) Fixture Insert (0.4ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b510a83c020d6c787098811d740886ca', '2015-03-18 18:59:55', '2015-03-18 18:59:55', 410780858)  (25.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:59:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 18:59:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:59:55 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 18:59:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:59:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 18:59:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:59:55 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 18:59:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 18:59:55 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 18:59:55 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 18:59:55 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 18:59:55 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 396855775, 'Address', 1057142427) Fixture Insert (0.5ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'faec4fbd3ddff7c567f473dcb2aebeec', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0c26f13e0697be5976c9e748e01088e7', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fbb6c78e0319ee8f2be4df62c3f15791', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b6475678b1d59bc3ba8ae41f96ececdf', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6a92aab35e08f64198cd3016142c5439', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '618b07125e2684eca92b7e70b0d6abad', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fb068b31106f796bd17bbcad97134b52', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9efc62576e84fb5fa3fdf3efff45086b', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1967f90e32eef5b248950de9313123e5', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a9d9f858aa785f51dd356d8a4aa885a4', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9bac6b119d36144800aa279f429c6fa6', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5c1d8c5978600cbec0c71632faef082f', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 483796712) Fixture Delete (0.3ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '538c24234aeb336285e971d9b84bd099', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '20d2338e2582dd1a90db6a753d9f04fe', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '471ed55d4f46359d0f4498c9d3dca392', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:01:41', '2015-03-18 19:01:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:01:41', '2015-03-18 19:01:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:01:41', '2015-03-18 19:01:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.2ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e9b78c84dc1c1c2a2ef9328b8449a88b', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '35510a27c2ad156f29a6ebf3fbb32812', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '71c2fb6c4641c2ed3dad5715dc3e349f', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '693949a9f9bd38bbecca118a6ec79cb8', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '44cc657d570d7e2411cd5eaf741005f8', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '49ca0f19ff9f706a059946ea70209512', '2015-03-18 19:01:41', '2015-03-18 19:01:41', 410780858)  (24.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.6ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:01:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:01:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:01:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:01:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:01:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:01:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:01:41 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:01:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:01:41 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:01:41 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:01:41 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:01:41 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c8cfa7544074905356d5027f6a48bda9', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dac41377b1a114d1836c0d8f1465b5cf', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a366cdc527171b5cbb5441bbe6584aff', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2fe2cf1370454273a755ec04bc54e62c', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8230b0b591636a104548327c43bfb46b', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9afc6de69b31981c41ac2694c5f01fb1', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '792b99dab408ad5cda1148ce2e704d92', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6aa05019c7c5b96eb3b009668d5f19a1', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd521e476a079a2c4b7ace8546bdee740', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5a7fa19dc0624cf05bac1d2693a87ca7', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e408513efeaf927509f719eaa615a244', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '83e227e2b5070835e1438ba4258faa19', '2015-03-18 19:02:27', '2015-03-18 19:02:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '97693ad0fa834e60ca42a9dfb5934d24', '2015-03-18 19:02:28', '2015-03-18 19:02:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1368af56d69ea505206a6cd3ed486e8e', '2015-03-18 19:02:28', '2015-03-18 19:02:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5aff645708674738a9bb57029026ed17', '2015-03-18 19:02:28', '2015-03-18 19:02:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:02:28', '2015-03-18 19:02:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:02:28', '2015-03-18 19:02:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:02:28', '2015-03-18 19:02:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:02:28', '2015-03-18 19:02:28', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e023081a9dab5c76c441567a5bbf4673', '2015-03-18 19:02:28', '2015-03-18 19:02:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3d6fb63171c0332a2b3781435217ea0e', '2015-03-18 19:02:28', '2015-03-18 19:02:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd10f0edffe137c22d0d168117a7e384e', '2015-03-18 19:02:28', '2015-03-18 19:02:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '68b255d0d6996af57fa5a965562468f6', '2015-03-18 19:02:28', '2015-03-18 19:02:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'aa30189743a6bef60651c43335e8408d', '2015-03-18 19:02:28', '2015-03-18 19:02:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c5d7cf5ee7cc2be23a9e6ab711fa00ac', '2015-03-18 19:02:28', '2015-03-18 19:02:28', 410780858)  (14.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:02:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:02:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:02:28 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:02:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:02:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:02:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:02:28 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:02:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:02:28 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:02:28 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:02:28 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:02:28 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.5ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c4b3f950c2261f90cb0c261a7694b1af', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2543bce33c210802adf75bdd2e52b8c3', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '53083efbb055f6136bd030d2e9e6ab1d', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8841922009347f823ea985e8006fc4e2', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2563497fb915b309d7a13098b7be6241', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '04219672a5ea170901ddac678f99cca4', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6e004f2012c55bb7d22f9e9a2bde5982', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c7387a56c258558e444f31ee15c30365', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '20a99bc1ee983d868887e8aff3fa5889', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '492a8f0e1bde0b65c0c4bc13115f87b3', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b4cdab1b40e29c76ea51d0a03bdf6490', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ba83f2f37b2faef1181f0fa97cda7550', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '881111862c7f65db9fd73e6c8759bc8e', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01daca6472baad76713a3655de54bec7', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8720ee09d72f554bb3521268b2c0e0d0', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:08:56', '2015-03-18 19:08:56', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:08:56', '2015-03-18 19:08:56', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:08:56', '2015-03-18 19:08:56', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e0690eafe648345814bf1cd9fc917d6b', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3f3ce50b707a3d5e2abb77d7476f7ee1', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd31044812223656bb85d99afabcf67cf', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '886418b08ffb0881b9efb6c8cd2c0048', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '62107b7afb6261923c231b2db208b5d5', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7a44c14016d8e9102659599bba6364df', '2015-03-18 19:08:56', '2015-03-18 19:08:56', 410780858)  (25.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:08:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:08:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:08:56 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:08:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:08:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:08:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:08:56 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:08:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:08:56 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:08:56 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:08:56 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:08:56 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1c042bdbfd97150922a36fe62fd2489e', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b663aecf1ba038b5cdbb60ecc71a00ee', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 1057142427) Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7be6565a9e9c97915f3551cc01e5e84e', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '347329d1cb3c38b6ee6f0647095724f4', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fbdfc8c97dfc0ef70e5549d6c866b88b', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7268582b65563db927407dda4da8106a', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7d1017dd6a9efdb445c4009b7482a2fd', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7e227d4327a1014eb00aea8ca41dc4ee', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '010eb1c2155fd4b27d1197cfab2b829e', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 966629572) Fixture Delete (0.3ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '241a55a969de8b65663abeba3583c7c6', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c07bb9005e45ff58470e509ddd61f93f', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 102195269) Fixture Insert (0.3ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'eba2eb1bd0df9129e9677555e0efa6d7', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cc9ae34cc8cea00ea4c488b0fd299757', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '70a8433bf4e29d8d6bbf0b108ba3e638', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0653e0eeae24a97d204cff6f9aa6ee01', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:11:37', '2015-03-18 19:11:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:11:37', '2015-03-18 19:11:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:11:37', '2015-03-18 19:11:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'abccf56e121c1082520c9de34bc92a12', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '543edd90a138ebfad9ff0a7182a77a75', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 1035759634) Fixture Insert (0.5ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '94a139a0f6af016929cdbe64b4a46f99', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c720b00f1552bffac681d4aa7e1965cc', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '07938b566bbe79861ca021b496f1457f', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 970698464) Fixture Insert (0.3ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '16da8a3ccb77b226e518733ea58a53c2', '2015-03-18 19:11:37', '2015-03-18 19:11:37', 410780858)  (27.2ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:11:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:11:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:11:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:11:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:11:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:11:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:11:37 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:11:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:11:37 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:11:37 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:11:37 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:11:37 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (1.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5124921b0f7ad4eec1364f297b687e65', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '33c02533f09c1c9f84b0e83b78e5e1d5', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c1cb4d9da42b2e790f532944acdb7b50', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f88f8fc5bf05a2f112a931899940342f', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7a91b98ee9bcda29a34b8c75403cccf5', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6acab544cdcd9cd66b822a52b86acd75', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd15e99c207d1b9c77d04e61d4dace100', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'da5c15fd5f3bb53b51eba32bdce13a7a', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3cb305c76482f1797afb6f8ca298e492', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '537b0884e16114348010276794e2e744', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cec660642fdae0026e1655799c2927a9', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8527630d6a87f69316dc454680260ca8', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4eb0513e83aba2dc45dea5c161b3fb7f', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c473730821458955949acbf1cf070f71', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '602f349a8a343c8ae6c6d36051f69bbe', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:12:33', '2015-03-18 19:12:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:12:33', '2015-03-18 19:12:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:12:33', '2015-03-18 19:12:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e1933818392273c03caaad7bf2f43b58', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '494c8234e60dd3d870436ada36811019', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '67c251b8ac552c0ceec6635580c7027b', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5998a36961e5a74711bd8de28efff52c', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 819246218) Fixture Insert (0.3ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1f897d770f4599e71e79f87b16eec357', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '56f2befbd29668429ffe40316ba810b1', '2015-03-18 19:12:33', '2015-03-18 19:12:33', 410780858)  (14.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:12:33 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:12:33 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:12:33 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:12:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:12:33 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:12:33 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:12:33 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:12:33 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:12:33 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:12:33 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:12:33 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:12:33 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '981fa93d53575cfcf56a2e6e850ffb6c', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4ee6633a2a9da7f13c9a1e5488f9c9f2', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a7746ccae5d8b70d8d92d5cc673d5ab', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8fa1dd0095a569905ca0475682774e8f', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd6f195d157df0edc9cabb771058dd9ef', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '85abf752f0f1a2b99483cbc8fd0523af', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f15747f3316a31b9efd5b34189403bf7', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1f2f99a75d6387a4e0f3c72020a4cdc6', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cf2317d2d6a3446d4e242c74e085dd47', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '55f5766c8d3602524cda858c59fc2741', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '17639189cd20f3724be734f25221a9b1', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3b6acbbca8fe9d1c9ed4a72fc2dd97ed', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '05dead2979df68778a1d384f393008ff', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aa9672aadf9b1e4c282eac95d7f294f7', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f3100f793b1b942b42e16d85cb8f5f59', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:13:06', '2015-03-18 19:13:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:13:06', '2015-03-18 19:13:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:13:06', '2015-03-18 19:13:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6457a44c2ece3a60c93a867aaa81a8e4', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '424cb60878583bec611e2fdc516ce45c', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '059e303a93b891ceec2fb5a9ac386f0d', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '32d44e57d44615571ed805d27ae38c2a', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0429d112ca9d9ff66808c6ea95509147', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e887995d9e115124d72ccc96a550bc74', '2015-03-18 19:13:06', '2015-03-18 19:13:06', 410780858)  (19.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:13:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:13:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:13:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:13:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:13:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:13:06 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:13:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:13:06 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:13:06 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:13:06 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:13:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5862e7d84c72f719795456d7b9b2122e', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ef60525596c8c090075d785a10eb6ad4', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e950b447fa40d39954c9634fd7476b3f', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bf50883b6975a8cc3afb77064cbe063a', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bfe5bd149450fa04e03233e360260d48', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bd8bc715d861dfbb9102261f14ab71b6', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'df5a65dce934248e706a5a4f9acaacc7', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cef48d81e69ebe6471f955cd83f6b991', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4092f158347c8e1db7c56a50c460408c', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 873565849, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '78332c98f4ff0f589c5b5bcd7ef01015', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '83a65192b0d13b827e95b445e8733c4c', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '160cedd6c766795118047d74ea8b8a85', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '02754235461ea7b74781d7b6026d1702', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ced9b640c5599451738a2acb9621f5b4', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ddd27c2d3c1e7631a8c9312ee738d570', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 762608046) Fixture Delete (0.3ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:14:17', '2015-03-18 19:14:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:14:17', '2015-03-18 19:14:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:14:17', '2015-03-18 19:14:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '62881f9771f6015fea6fb3eec0d3037a', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '72472753be14f1d29cdedbddc33eac38', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2b3ae6bacd8676ef132fb2526cade2de', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd29f522151eb74b23cf098d8a201d4ed', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4d9e88cc321121cae0fd63e30eee63e1', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '81573bebcf4e0d5f36fbd0f04b8640db', '2015-03-18 19:14:17', '2015-03-18 19:14:17', 410780858)  (19.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.8ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:14:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:14:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:14:17 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:14:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:14:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:14:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:14:17 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:14:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:14:17 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:14:17 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:14:17 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:14:17 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 396855775, 'Address', 1057142427) Fixture Insert (0.5ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '507b253b3383cf7a770aa84097248e9b', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5a22449f6a92453d16b0440887d01b81', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c23db8d6a4dbcc4119552ee764979baa', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '81185b57feb863b6b5d3921dd673d2d1', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a37ad94330f8c5df7510b33bc020d51d', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a025c51f2800b80ed60c5493217f546b', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd46aecc4e704169001dd745de0a3e4ad', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '86bae336b940998ae1b46d9505a7eab6', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2df5dc9bf8adff3a4a7ea5b73ffd8f3e', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '31146535fde14ad95f23c59e34d499c7', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4cce3bd09c0609e453b94b692fc29be8', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '842eebb0aeb573106b07a9d75055a1f4', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 483796712) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '385adde84849c453ef84bbc5b1359117', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fbb8caffe76d8cd0b7e02e75f3b15404', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 689259936) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7d5ddcc5bb0b7c3fb2de3d9d31830e17', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:15:32', '2015-03-18 19:15:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:15:32', '2015-03-18 19:15:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:15:32', '2015-03-18 19:15:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 421646738, 336964236) Fixture Delete (0.2ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e5d7ce9e89b46fad6e390e52e0510261', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9041631c5d009decb06efd05fa31e0dd', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cf7615b770b068383a1d8f609b0de28f', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.2ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '653d282fe14950d78ebabf59716d4593', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '670137680e136516d776a9ef90bfb62a', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5490787630c248911f315fc9729d9929', '2015-03-18 19:15:32', '2015-03-18 19:15:32', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:15:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:15:32 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:15:32 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:15:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:15:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:15:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:15:32 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:15:32 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:15:32 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:15:32 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:15:32 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:15:32 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9fe94a98ba4baf68162c2a877880e5c6', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8fb29a8c48c4e19b00878dd1dacb7a98', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9829dc9712e0089b72dcc52f80309671', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9a06ae10a0ad05a2394615d8447751b0', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b75d17fef14388a1bc0a00102d60d9f8', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '91588a0ed50524e905b17e6f7f2edc59', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '67cb9d29d62c4c93293199a86e26c44e', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 261299535) Fixture Insert (0.4ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7648ec86eef45ddfbfca2e7ea80d491e', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd25513d8c2ee965e0c416dc52122fd00', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.3ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7b5f62e971d7e93a238d82cf1f0d063a', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ef71c607a0198d1f4e80abb6662eecb7', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd6cddbedb20851d169b8eb1566efc07c', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e094092b83106a8c5e36d0058943192c', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '99e6d2f587c3ad4629cf71465f79ab39', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0fb36ab3d03efc5809553fbc27cbba9c', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:20:01', '2015-03-18 19:20:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:20:01', '2015-03-18 19:20:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:20:01', '2015-03-18 19:20:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7da6c927a55fc79424825b15b4906a51', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0e505de9bb2f3796086b5d5de537f37e', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f07687286a535e2f740ebbdfd7e4b731', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8496a8e0010f576e9c58cc9b64e381ed', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0ee2fa90386432270fbed405eec00113', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8c278f1d16d5df24405151fd8c591980', '2015-03-18 19:20:01', '2015-03-18 19:20:01', 410780858)  (13.3ms) commit transaction  (0.3ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:20:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:20:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:20:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:20:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:20:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:20:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:20:01 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:20:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:20:01 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:20:01 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:20:01 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:20:01 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ef48ddd9e07f9195cb52dd3ca9d24fb3', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6168f68d7b5985af6f61792f5ae8ea61', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dcda303576ac6cd44c9f280192c402f1', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9c7dd214ee759f8320f9d9e8e74d1bfe', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '801be51b98365844419757f3470dd998', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2b2be44b1dcef62917afbb53d4432b61', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 1032612456) Fixture Delete (0.3ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '22a52a13a8f25970e91e3ce1d3144697', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a14561fb885be03e576016ab62c1520e', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0ef214d149d99d025ab80651bdbd15f1', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd71c1436b26ed3962983cfcc7cd6bc65', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5c3e3f1d6cccfc4d900256ae69ab5f71', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '47333724d75a972663a9925ee054b19d', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2c02f8783cdba4ddc97d3320fd775c0d', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '58b851497139392dc908d3db46c2f383', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 689259936) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a7c6ad9809d73a96e8a416651440bdd', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:20:28', '2015-03-18 19:20:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:20:28', '2015-03-18 19:20:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:20:28', '2015-03-18 19:20:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ebe394807611338f7c523cf180522484', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4cfee1b7969db512a39c16637c53dddb', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c9595d00a103ca0ff7028dbef3f73359', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0f2106be3de96c4369a90e4c213363d1', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd31dd5d8cd07d5b758c5b462e0046f36', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '43cd7f14efefdb1d05e4c65d4381efd4', '2015-03-18 19:20:28', '2015-03-18 19:20:28', 410780858)  (15.4ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:20:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:20:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:20:28 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:20:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:20:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:20:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:20:28 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:20:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:20:28 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:20:28 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:20:28 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:20:28 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0494beaf4835c91550f46ab9c3b686ba', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0fab9781439cf501680a028ea5eea3e6', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '75ae23d1b677bd103bab274beaf84dbb', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '92764dbf758fe3fc2df094f2961e6461', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fe6cf3f7868dc29950c1fb22d33d2a59', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '78fa2e7d7d188bac947cc55ccd9e1120', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7632493e85b7960d784f6eb19e5d4556', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '73e0887dba997f551effd2e3c3ce68b4', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '514c67cf1477841e2206daeacd98ec97', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '87e8c840d0d8739f8821e59d2e8e4e5f', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd3900fa5086514227e0970bc60be6b9a', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fe4b5b150e839034529f5782b61ac5a9', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ac7c984d9c93305c8ddd96de3b3d3911', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0fead47993fca79b972d835cc9fae330', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f3feeca5fe93732ab68913012fbe15e', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:21:18', '2015-03-18 19:21:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:21:18', '2015-03-18 19:21:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:21:18', '2015-03-18 19:21:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1829e6ad316a10dc1acc08f073b8f4e3', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8a111cdc8f3bba0deb55e3deef2cbc4d', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a79524bef90c9124afebaf7c47b3d093', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2ee7329483ea8f5d3071d9f226115bed', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2d1cfb2fdd494abee5f1ea4a11c6f67a', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd81369028cc23da8276429d71728f86d', '2015-03-18 19:21:18', '2015-03-18 19:21:18', 410780858)  (15.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:21:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:21:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:21:19 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:21:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (3.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:21:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:21:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:21:19 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:21:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:21:19 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:21:19 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:21:19 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:21:19 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.4ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.5ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '11da1da1e0f18d6e75238cd41d46fd52', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5fa60d810420cdf62f5ea972154f0793', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eac6636bb517a19c9958e195a8d8cb04', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd6dfd378d8b7e135721dfb0e5068f730', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6dc68ebc6c78dedac85d4dbeab8d006a', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3bbd9a0a832dd75b3c481f836b7886f6', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2e2973d31399bc34931632af2f7df8fe', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6643a8e10ba697f82e8295e7a7184379', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fab14b2fa2a6c05e9cb059bc81e33537', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a8bc2996584f187bfc1a26119922c489', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6921883fa43ea58d9c12a9f68ef584d6', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4eeab697e417cf318b2b772cbcdcdbdd', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98505965aed4ee9029dc1ffd65a5bd17', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b92893caea785847b78c43be15bd45e6', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8da8ce9a1ffff9c0c83ee743bf6a968b', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:22:14', '2015-03-18 19:22:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:22:14', '2015-03-18 19:22:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:22:14', '2015-03-18 19:22:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '74584b1358d133eb17787e715b5e65b5', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b958c221a5d64e8f7ef005c4940db38f', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd3692813e66447a83a9026e9b66a952b', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7617ff60986780d358c2bf3c8ece855e', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 819246218) Fixture Insert (0.2ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5983e6f144a7237eaa51db597adf6ef8', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '316ea1b9cb65e09c4c3993bf6256cbba', '2015-03-18 19:22:14', '2015-03-18 19:22:14', 410780858)  (24.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:22:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:22:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:22:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:22:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:22:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:22:14 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:22:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:22:14 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:22:14 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:22:14 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:22:14 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 902541635], ["profileable_type", "User"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '551782da6cfca021d2f77062f33aaf9d', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7ffc646ef95072db74687588bc57bcd8', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4f4113e5f31a6e5bde5e7246ee10a21d', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '806c435146d4d70004fc6cc953fd715c', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ae63d8e979de99f0cffb51affbef8f7e', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '07abeb6439aecbb6c52e5d857310e865', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd20b737281257e9724b910cce81f7c18', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '60abe65f39b1e10447c9c68a4cc9f895', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a2544a4d9a10b58e429cfc64e900b1af', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6c43661cde3952c6fd093911ba39548e', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1e988805509454a1fcccc3e257281b43', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a6f2a7fa5311fc44ad68b5711f1b0233', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3c442f8062284488eff9f8e58db21923', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 1053526200) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '131640dfb0922677732da950bbb54bfc', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '973cddac986bd2a48f3f42632d131e02', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:22:35', '2015-03-18 19:22:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:22:35', '2015-03-18 19:22:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-18 19:22:35', '2015-03-18 19:22:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '018aad4df7626994c48002f094c6a5fc', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f93a41fffbaf8813f116691309110993', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f3fe2042b95d167b10214bedfed169e5', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ba14e19316fb62b8b0301d438fe4f490', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '15fe7e79181da0e969265e4785c5b777', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bd5bd2580da694e1eabf161cac9d5d1b', '2015-03-18 19:22:35', '2015-03-18 19:22:35', 410780858)  (31.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:22:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:22:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:22:36 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Wed, 18 Mar 2015 19:22:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:22:36 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Wed, 18 Mar 2015 19:22:36 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:22:36 UTC +00:00], ["id", 1], ["updated_at", Wed, 18 Mar 2015 19:22:36 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Wed, 18 Mar 2015 19:22:36 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:22:36 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Wed, 18 Mar 2015 19:22:36 UTC +00:00], ["updated_at", Wed, 18 Mar 2015 19:22:36 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.9ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dcbbf9f98bca401556409c5b8392c24e', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dede1a88dc93240307d5cf28e4a738b8', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '07a6bedb90eecdf40ae95bccd8eca63a', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '985247d1bfc108f482f053a73a6ff6de', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '56b4de998270767e4bc6233ad04e2dc0', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2c2fdc730ed743ab5611ec5796c57a86', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6063c85464bb6a2a12d9916cad927fd3', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '214f627ccfc4ce03cfd7bd9c7c1da6ad', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ddafd7598363f2ddb5ecba2134549ea4', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'dee2a8e65488d5a4a15a7af83bd2f1e5', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4c0e8e9903af89d17c09967c506074bd', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '44589ff81c3660a2c9f61366dff1f531', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b700252c0cff5c34e7bd647ecf773851', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '57e48a35252af555695761001a7ab982', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '68ca97de8f5a91bc6e2a4eecca372f4b', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-21 17:17:08', '2015-03-21 17:17:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-21 17:17:08', '2015-03-21 17:17:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-21 17:17:08', '2015-03-21 17:17:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '48505c97bb99f884ea1c751e628bdc11', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd240130eb8704f3e964928d257d0f5ea', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '80a974d83dfcf76ab1a75696096c5ad0', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a82fdc8074a6f4a670835a2ef676f692', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '56410a58dc287bae1aaa5e582e7a52e4', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3bc3d7b1692bd5b4dbd43082b84d35fc', '2015-03-21 17:17:08', '2015-03-21 17:17:08', 410780858)  (19.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Mar 2015 17:17:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Mar 2015 17:17:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Mar 2015 17:17:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sat, 21 Mar 2015 17:17:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 21 Mar 2015 17:17:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sat, 21 Mar 2015 17:17:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 21 Mar 2015 17:17:08 UTC +00:00], ["id", 1], ["updated_at", Sat, 21 Mar 2015 17:17:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sat, 21 Mar 2015 17:17:08 UTC +00:00], ["updated_at", Sat, 21 Mar 2015 17:17:08 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sat, 21 Mar 2015 17:17:08 UTC +00:00], ["updated_at", Sat, 21 Mar 2015 17:17:08 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.3ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f6f81455ddcf3a13c9b53b5a2099dbb6', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '186fd00001dff520a58373ed4d5e49e9', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e235e532edc636283b1ee28b1b741ae2', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '35d56bba6721310661ae64236e5db2d5', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '216bff0c19676b5216a4dfe12d4d5a33', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2ccc9e7cc821341fcc5c0c08b7c0e142', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '01009e4601fff129b70d0bfea7078dea', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7fa561332757554b2e67553d56565494', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e7b10a4e63f90ebd84adc683de84e77a', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '24bc8838931fe39454d83496a7f46b69', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '080a272bdf327aaa6cc11469e19d9f7d', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fa162502ed0bee975d3166edf8611988', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '496fa08d73c782556b54649fc1704f13', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '33ab36bf8f0471fba0018d0c9b1ad9a5', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9d7bf4dc213801f8a7f93b18f7f6e041', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:07:56', '2015-03-22 02:07:56', 902541635) Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:07:56', '2015-03-22 02:07:56', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:07:56', '2015-03-22 02:07:56', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '06a7001f61b847fc664e6a9cf450a47c', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3166fa8f80b391d9c9934470f8a24aca', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9b5795a550839aaf140526e3c0773b5a', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '65a01ca9c9b0f3db7e37e03c2c9ebdb9', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c782c2a28c5e03e5f8a65cc7abdec8a0', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd6f5ff6a432b44b0b126573fbf695963', '2015-03-22 02:07:56', '2015-03-22 02:07:56', 410780858)  (33.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:07:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:07:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:07:56 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:07:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:07:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:07:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:07:56 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:07:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:07:56 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:07:56 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:07:56 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:07:56 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3b4905f93259fa76d7fafd8a9eee220f', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5c72bde0a618417aff8b926dac19b7fc', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '61a0eb02aa1babdaf977392cedf3cdd5', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8b426e79f30ffc90cf32cfe09513efd4', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b2aba6ee131d22c9e02f29d680530b90', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '971faa2da5e1fe98f74881c97a330c3d', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '086a03efb11ec21960d8790902726aca', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '94fc403b633d18a9bfedba1ffe25b6eb', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e6df88b90e3df69c81b21b33e649430f', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '78595fda495ecdfff2403d1760781913', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5275e13a576f9dc0f757f0b922d693f5', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '19d692be053afa16167d8d37517e0b79', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5daf6946e71f29ca7f8064613e046bfc', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1db3b86e7d58af6dba7f1bc35484f74b', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8a9597b263dda09bad1a0e788f6e32ee', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:09:10', '2015-03-22 02:09:10', 902541635) Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:09:10', '2015-03-22 02:09:10', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:09:10', '2015-03-22 02:09:10', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '575f21754ae8347a8c4263b226e69ed7', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a124231fcec92cb4eb80a145e1bc3944', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '74dc6d3f93c0473ca7d871af056cd416', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2bb86b1964e1461dafd9431d0642e099', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8f7aeed418014dae9f99000291e75dc3', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '14546e396a5bf20127e4f713f88136fd', '2015-03-22 02:09:10', '2015-03-22 02:09:10', 410780858)  (15.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:09:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:09:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:09:10 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:09:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:09:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:09:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:09:10 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:09:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:09:10 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:09:10 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:09:10 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:09:10 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e99a9f7872214eb8c337dee5ba806b5a', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 761411935) Fixture Insert (0.5ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1855fe126cd5cb7b28a49f57675dc970', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0ddbe5d1098ac40fbe95c9b3c68c7f32', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6147e2203b542867c65a822e263b9499', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '624e83d4a0f353109acc5cb407bded95', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd2f073fefcedaf04de06f3d353cd100f', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f0ce9c04404e520dd599b46803913352', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0398c5321340eb68f7bed037a026c5fa', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 478996145) Fixture Insert (0.6ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '45b9fe24ecbe75b56e0af794ff97fd0b', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 51822084, 336964236, 849808553) Fixture Insert (0.3ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e08db72c15c51e244721861f8d8d97e8', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f3ff9284be2d4e719fb7146cd4a0e355', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6f605009e573ae2516e6f08722884e09', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '17c1b24955af46119672672bfaf1becd', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '04bf86df3a11868849343208b0457a38', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '62fb4f7c5b315bce25d4237f3ee3d288', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:10:34', '2015-03-22 02:10:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:10:34', '2015-03-22 02:10:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:10:34', '2015-03-22 02:10:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '00b4c504790d328d2c578f5d7946930c', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'afdb352bc2126ec94596bb57d84cbae3', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '596720c6c895a4e7581d966242caadf8', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dc5dd248854f634e4f3f797df2bef667', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '27f627a041522aa5a5427348c8ff9487', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c00a22c744c532b9a7a0fd6b82a37c44', '2015-03-22 02:10:34', '2015-03-22 02:10:34', 410780858)  (22.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:10:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:10:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:10:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:10:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:10:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:10:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:10:34 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:10:34 UTC +00:00]] SQL (3.4ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:10:34 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:10:34 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:10:34 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:10:34 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.9ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4576693de4cfbd9a61b75252ca316fbb', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '47f960ca776cee18c58293a1d3b2167d', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ca3d10c7b475fe63db491ec35dabb4a8', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd922586c3bcfcbc99c0f6b5d5fc39a93', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fe267b472ab99e146c1aafba4d24ceaa', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 971855462) Fixture Insert (0.4ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cfd00e611b7ee0289758b133f3e06c6d', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f28dcc3f49673ac80aadc1d458e0e579', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '208f5b718807673f3ef29aecaec99eab', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 478996145) Fixture Insert (0.5ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7bf400836903a4f0ed8e0699ba4f7657', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f6b9334d8f070da46f65e1c750abeba3', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4f28864520948fa3eb3da5e179820e57', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 102195269) Fixture Insert (0.4ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a8484c6a701598f7f0ba659e93d2fb92', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e06f6a85fa444fef3ea58f9a96c8c767', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9f7544d7668090f45f90ab03b91f003a', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0cc263de6c884773f25a63496fc08df0', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:11:31', '2015-03-22 02:11:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:11:31', '2015-03-22 02:11:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:11:31', '2015-03-22 02:11:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6d50afe80307dd5adbc71cb27eca96bf', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'af5a848a396d75719a3abbd6e7f51cae', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dab41e04b21693289e28dd8519c8298a', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a453a73cb1e85659af3d7dc47d69b7aa', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f043aa140abb25507a76552fdad4c44c', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0e40cb146ada3dfcd7f10a6973c45504', '2015-03-22 02:11:31', '2015-03-22 02:11:31', 410780858)  (28.9ms) commit transaction  (1.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:11:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:11:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:11:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:11:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:11:31 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:11:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:11:31 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:11:31 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:11:31 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:11:31 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dcda79c45f631d5d86e4bcbb221991ef', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6e889850882adb27cd6639b8eb4b721d', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f2103d93e2b06224babd097455f42f3b', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 633598004) Fixture Delete (0.3ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3868ab6c77cd2bf2fd5ae8ed6f618d7a', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e76002736860f18ce400bd42568399e3', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '765e76f0a18aec1bc6154d20a9e383bb', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b2021014d8bdae9e3aee25ef150625b8', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'dfb96428323f0e1a42000a55e2305bbc', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6010b4516fb5a4fcbd3f97549c12c334', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fc22d633237dd4405cfb8a1d47340308', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9f901761281f4b67f29414c2bebed6b0', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c2c9d55a208501017a11a1944bb4f6b9', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ae9fe4963212af4cfb4a64f1a0dbed50', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 1053526200) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e1d91ef8b0edec5d0cbac8294eeae767', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ab74089b92fcc5bb172715683a549a34', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:12:08', '2015-03-22 02:12:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:12:08', '2015-03-22 02:12:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:12:08', '2015-03-22 02:12:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2139a7fc6020730971cccc7ba62409f2', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '907700aa8ae93855927ddcd3ebc1ba6c', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a4ac16054a3241bafcfb67ef33143acb', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '26ae0b4b572c653532d0e5998b87186a', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4477d9cad40f3aeeaa606669d27dc541', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fd17a549d729495000ff6ac39d26fd06', '2015-03-22 02:12:08', '2015-03-22 02:12:08', 410780858)  (24.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:12:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:12:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:12:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:08 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:12:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:08 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:12:08 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:12:08 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:12:08 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '99a92ef1d5af6ae13573068622fad1ba', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c1de2bc86fc13de798385f489c14975f', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aeb7d3781de4ddf5d6e0da013956b5a6', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0cf5268a52cac0a9a0005dab52abb972', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2217e87c91de767cb41d32db1bf12286', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5a315d812a5867f4d6bf8979e7d602b8', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '26c19d042194d667ee0550081a6688e8', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '85b2ed0700456bc3d0bf6f2a3a0aa0d9', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e44a6cb9bfd4017efc1db70669fdf4e5', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '828e85a8b981a8f6e31d4a320b06f2e1', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0cfa4d3e7b61b80d272f24edebf25b43', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '88bf2ac526b2484ee6072c8c50a38a69', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7e986da6e5900f52027928478c572792', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '829164d5a9dd2c1db23ee91aefa1f5e6', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '98c3482cd1ac1754549516ac46cec5bc', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:12:25', '2015-03-22 02:12:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:12:25', '2015-03-22 02:12:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:12:25', '2015-03-22 02:12:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5bfb5d5d8adadb61673d402289689c8a', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2bda53a89a20f6783dc62dc4ac8a3e3e', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '86a1332fed00d5741c6610455f3ec8a5', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a510b01fded572de05714d1d97b68e56', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ab8637e345a463d12a08dbba80b8b9f5', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '330efc90ce90aafbb3ee237250105c4d', '2015-03-22 02:12:25', '2015-03-22 02:12:25', 410780858)  (29.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:12:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:12:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:12:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:25 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:12:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:25 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:12:25 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:12:25 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:12:25 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '943292fb8ace28750c8c48b908155989', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 761411935) Fixture Insert (0.5ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '825912f07d9565d5578cbe604b2f2e48', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f304be230afcf1244056ebe55ed6b8aa', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2ec01c2077204ab022cdc4a21a5f43df', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 775134066) Fixture Insert (0.5ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c1e4688b359f12707e378b33df61e55f', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c2b0f99bdec79caf0019409313c02afe', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4e62dcb6ba8f130ce2fcdf423c1a2626', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4e74b71f7ba0887852f5a737282f7582', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '99a9463b71e19d85222e3ca729fbe02e', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd153e2d9402786f151f102c2e681e242', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8cd32e094dd61a02ee74a236344dd7eb', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd24f30443cf88a594578719362e85393', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '64eb560eff1c56b5966e3747d9cdbee1', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f8311372ede74ffbaf4d12f51f4a8741', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd3df23e97c1fd93724d46864336d549f', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:12:37', '2015-03-22 02:12:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:12:37', '2015-03-22 02:12:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:12:37', '2015-03-22 02:12:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '287099af57187badcc3b1329a7ce0b54', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b36b61280e01a7453fc90af8d496b569', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ca4b03a4d602cc8b563645a212ee97cf', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ca32980a8428f500aa3b1d5ce06960dc', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8918c25a00c6e15ff34e66d320eb598a', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '82a64abdf04f8e7a3a1c71d5c3a76ff9', '2015-03-22 02:12:37', '2015-03-22 02:12:37', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:12:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:12:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:12:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:37 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:12:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:12:37 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:12:37 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:12:37 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:12:37 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.5ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1250057045588e863db35ffcc431d75b', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3e092fed3b69f869c5b9a86a2f5fc0f4', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '32d1420973e4716062f935df76278ff2', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8b36e33c8351e506d11b9c9ec4b9aeb0', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '714b0524048c17a699a0f894d528bfd0', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3249d5e3af3830c811a885ea0696ec0a', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8e488d2c1e4433ee7bbe91e2e1d3ea16', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f17fe7925a0eadba2a14deacf9146044', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7794a5008b3deb44475652f0f36c0903', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '80eb874f08cbc17f7a8232e1196863fd', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ef2f848c861920508d09e746fbded544', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e753449a10be9b6bc53c0f960ef66a30', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '606ef3e1ba41c4c180c522ca7415a8a0', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd05857312301873a9b435d719d73c82f', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b4fc23911b8e1a70b95445ec6e80ee1', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:13:08', '2015-03-22 02:13:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:13:08', '2015-03-22 02:13:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:13:08', '2015-03-22 02:13:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fc13bdcb630b425b516bd80194a971e9', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '44f4467f0ccb2c975138e6679973d931', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dce6b96207182afdc4b87ef3faa634aa', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '025c3b6599504597fdd87d96af827f13', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bd271effbd638e0135d0e43edb3df30e', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '091b6f14fcff60e691aec20236312f3a', '2015-03-22 02:13:08', '2015-03-22 02:13:08', 410780858)  (26.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:13:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:13:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:08 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:13:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:08 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:13:08 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:13:08 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:13:08 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '91888b242496c6b960966058d54d2137', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8846527f85011591515ff99a93de590c', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4eb2d5cfdab9f7ae4d3acbe7762d2361', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a673819cbf741e0bbaf07d06c23c6641', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b1dadd623956d52b4a5da6e0e9ee10e7', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '43d72c7dbad4175da2ec12eb0636f939', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7700b53e98a6bb8b4aa9cb2b07cafecb', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c97861b3cef3b27f4b4f70ae25d70135', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '328d993bb7226067611006e2b5535d44', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b088a19b368081ccf6a4a62c8e45cd44', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '571ddd6f96ef65d3eb9b436674b4cb63', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '85b18a89860cb03f7ece39fb09d726c9', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b08a58c6cf6ea30d9d9060c42f611bb2', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3b830c226109f33028f15e1f4279759b', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6dd5e4aca11beed1d3c79ab835f23f37', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:13:31', '2015-03-22 02:13:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:13:31', '2015-03-22 02:13:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:13:31', '2015-03-22 02:13:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '42e0f059c6fe9a98ebb406108e32c618', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1c0365146114e8a56b535b8b7f43f252', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '27582dda5eacdd950c24e15c9a70f115', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1fe9dd2dfecf93674d61d12da4e5ec80', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '260c9fc7801230c374459f75bd533e0b', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b2d6b888f0694ccd66b5c6769fc3fe1d', '2015-03-22 02:13:31', '2015-03-22 02:13:31', 410780858)  (14.1ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:13:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:13:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:13:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:31 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:13:31 UTC +00:00]] SQL (0.3ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:31 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:13:31 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:13:31 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:13:31 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.9ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 396855775, 'Address', 1057142427) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8bbdfb17934252d344da500430dff58', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '21cdf26f8107c96aff89383efa05333a', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8f5875422f2426d0879b4da8699d0182', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bf644502c8291da11e1e3ad5e7280618', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0a9b26fb4c95ef13e189b447cb4b2209', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0731d7c7b437ab425dbeced1b04ea82b', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '44a8c87bb54b34419db67732a255dd20', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b91e7005994fb02d58eb21c6a2300678', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a2d67e38b0c8cf012c408b3cffe22de9', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f6513baf9905c86a14a285e30cfe009a', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2e29ab9ccdf10dc4c7610854068e9bb0', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '62d75fde34490f1d3a305f53cf714d39', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'feaf3c39f5f9e0d2c0262081a1026b37', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0f01c4644269526ed6b598c2faf1d238', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c3849373da13df7a491e19dd26559d34', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:13:45', '2015-03-22 02:13:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:13:45', '2015-03-22 02:13:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:13:45', '2015-03-22 02:13:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'aba864295c2c1446f7685d4d8d6d638e', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '58136159d6e27a4aefbe6ae9374035f5', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '408912266b52789aa3d803dda0fc184f', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0dc5a84abcdbe310bc1cd4dab3102dda', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '51a40ed23488ec2c8303f211f5964fef', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '40902e2a93e71d706588fae9a3fc8c78', '2015-03-22 02:13:45', '2015-03-22 02:13:45', 410780858)  (17.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:13:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:45 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:13:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:13:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:45 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:13:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:13:45 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:13:45 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:13:45 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:13:45 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '22b3ff15757aa8a01230d23b13889487', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '445b04f1000ef70620c0e9d2c94370ed', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '351b58803991bd4047f15f1724f2ec8a', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd7a01caf6c74382bd666b2708e9048e8', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e050a5a61ba65f55fd2855a076c02bda', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a3a90d1ab3921ff8a0264ab4a8912d18', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '74a51bbd31487c5fa7084438dff5d6e5', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 261299535) Fixture Insert (0.4ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4466de3f591fc122d57b085eb322baf2', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b77e65e5d11ed5446f18cd7813e358a1', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:14:22', '2015-03-22 02:14:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bae4c9791e7f3d0a1bc5ae9984f99900', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b4f663b26ee3dfa61358e9b3102324d3', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9093d323e81fd7897faaf3e3a8b66dae', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '235cdb4a7722649ae0913b786c02c97d', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e87fc17f8fe0ab90cd3b103ba416b68', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6ad9604fa6a61400c881a4af205a8513', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:14:23', '2015-03-22 02:14:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:14:23', '2015-03-22 02:14:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:14:23', '2015-03-22 02:14:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7db2bbd76d7ddc2ab5af119dcd20f169', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cbd266315bb4db01996e6cf6bfb5ff20', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '513ae3307dcc11201751d9f2ff89db35', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'af1c12ca8e1a47d644662cb0c3ca76b4', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b7209017eb04946d835c6d2ef944609c', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6be1690ec5a3b68718c9ce4e8b88e374', '2015-03-22 02:14:23', '2015-03-22 02:14:23', 410780858)  (35.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:14:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:14:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:14:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:14:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:14:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:14:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:14:23 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:14:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:14:23 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:14:23 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:14:23 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:14:23 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 576421514, 'Address', 761411935) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '673a455aa0346cb8786d1dcaa4a18937', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e1ab09c8b9b353ff9bbc132793c8f7a3', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '219d3502f79f621242b2d7d0bc622ddb', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c7d5b256b41637a6b554238f06aa8944', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1151d8ab2a7515b9e8c33d2e0a07a5e8', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1b60f8e658f0b3f5dd86605bfaca9dde', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3d08cb359ad8d2179ebf046f2ff2ecca', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '42f6d2ec4acaf0e9bd5998a58d4aa5c1', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '103f1720f13540119c59db97e953fb08', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f22ef88180cceea42e6deecbc5854aae', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'df4ea66b86286bccada1565a48777259', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b3d06e70561d7ac78ccb7705a42e8578', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1e7566c0bf411ac170315f37d9086e16', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '23caff51f30f7778ceef175857c48fd4', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'edd0f9309c7552f6367a36810ad6727f', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:15:12', '2015-03-22 02:15:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:15:12', '2015-03-22 02:15:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:15:12', '2015-03-22 02:15:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1618d0faa6cd3d96787bed30c11e9019', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8bffafe827416f6359052504746d23fd', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2e0e9eca08c52dbc499ffe99006d4384', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e61c97174a0c6365c2c9f9c7c423642a', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '526fc31b569ec47fd3706d04dc258ff9', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2d089bdfcc87a67d2b3caf31a504d5d1', '2015-03-22 02:15:12', '2015-03-22 02:15:12', 410780858)  (24.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:15:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.6ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:12 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:15:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:12 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:15:12 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:15:12 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:15:12 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 106545386, 'Address', 633598004) Fixture Insert (0.4ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '06ab98d7643b3d5a47a1111d66d18d8b', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '66853c1d654500358b85232baafd8295', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '89aab6db09689df645f2493fb268e962', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '491d84ec478ece7d1adeec76a79a6b34', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3059a0a848ff20069e36e84d847fc552', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5697a63993aec23d8898c3b1c8c7a100', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '73deda15f6f79848f6d022b61f9009c5', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1b6779981a1d96533aeaaef7cbb03213', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fcf245aac0a9fd4b3fe75db98e078c85', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f145561b2dc8a00fcd427bc7018b5e82', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a0cc0cfefbbb519a43472bb4a6ba9c14', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7e51f6705545766801aedc6323b3edf9', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ab80134ef04698c2ea32dd18c70f09aa', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'acb6934994ca71deeb9046aa55a79ccb', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7b6ee2cd145f65c1a416ee39a4f9a697', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:15:38', '2015-03-22 02:15:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:15:38', '2015-03-22 02:15:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:15:38', '2015-03-22 02:15:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0a8ed7681dab69815b9bcae813c9c87c', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9661f213dc942a906aab4791f980f6bd', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '71f5e0383f914d339170852435fffd7c', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e177cd25b8497d3196fc8d8da220e45a', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '682fed0104d55f408df309c8e9da3800', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a641f74244b9cc9355a3c206f12a4fe6', '2015-03-22 02:15:38', '2015-03-22 02:15:38', 410780858)  (28.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:15:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:15:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:15:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:38 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:15:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:38 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:15:38 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:15:38 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:15:38 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3914a011333074963cc7ccd02587a598', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2b074660040b8339e5893b152e87fe82', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7df67437fd70dbe9b4a8e29a9ad4f245', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '352d5760742229081f60bfbb084b783f', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd8184c72a29646bbc7421d6c693a3cc5', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0c0762ab4f1052918bed590a11f208c8', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9b7a0eb001bdac158a911c5c01f8c307', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'dacdf6b79f249aab171b18257680a847', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0c3e1fd32d97953db0f250d3c166b279', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2e6bb5c486a18706cb8e20d3a3e7f967', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '70e11b7af4694beded1dacb61a44d4c1', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b1ce0a3a2f9321bdd7e882d108cccee8', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fd03e9361158f60cc67eee8ab4e956f7', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '759f8a3b434e78c3c732b0eb044e2ff2', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '831f5a847f5ed6f2a570da3abe052368', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:15:52', '2015-03-22 02:15:52', 902541635) Fixture Insert (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:15:52', '2015-03-22 02:15:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:15:52', '2015-03-22 02:15:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e0ced5b7235e68acd58724028f60cd41', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1dec55c37928754f5cfe70d4778c52fc', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ab068162d42f00be71d1132eda752c22', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '53997c3d2c21c530889fe5ccbab2577d', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a3c709387db86450837e70989fda3506', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '018f4e8c1472f46b7af66c4b91f0f0de', '2015-03-22 02:15:52', '2015-03-22 02:15:52', 410780858)  (20.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:15:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:15:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:15:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:52 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:15:52 UTC +00:00]] SQL (0.3ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:15:52 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:15:52 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:15:52 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:15:52 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 576421514, 'Address', 761411935) Fixture Insert (0.4ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a22f662eee44870432d5462f749775b6', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4b31de3b345426aed405a7de26246c7e', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ea933748cd2eb8f794f8aeb719864ade', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a370ce7dbe798493aeab13ff304671b1', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e381559329c458ed001b1637b7ef29cd', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '65f1bb031f17c54a2a8a4bad745490d5', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '404d1e954fb9c7624c60f1a06a8b9243', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8f190721b363cfa58e951bd156af3a2d', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5fd7d407e58ada8646ab2c574e063c38', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 966629572) Fixture Delete (0.4ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9cf94828b0ee8521c1701e555693a149', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd35749e69c59f88a0e65a1b993deaf55', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5a409a40f1e5892db35c3a8d6d86d0cc', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e71bfbf180fa75d7255679b054253f8d', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 1053526200) Fixture Insert (0.4ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bfda387f6b06256a6fffd747ccf47435', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'de57c7dfa209d2006fa8614e3871abf3', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:16:26', '2015-03-22 02:16:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:16:26', '2015-03-22 02:16:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:16:26', '2015-03-22 02:16:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '179de64a5d759316e827d848dad41bb2', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a75a0cc2f365743d3c2e98177f8028f2', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8243576e915ed6844d2b14c03ccd20dd', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9a9ca9204f83e66efca28c5a3503841b', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '89931a415d0e23a7e3e0ab8e8611c082', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cec1505bd2e77ca02e99d547e752d39b', '2015-03-22 02:16:26', '2015-03-22 02:16:26', 410780858)  (15.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:16:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:16:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:16:27 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:16:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:16:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:16:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:16:27 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:16:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:16:27 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:16:27 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:16:27 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:16:27 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 396855775, 'Address', 1057142427) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.3ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd0b4241fd00ce6ed76e03b4fc751ccbf', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'da4e9960882b02667517ea75fafcaaea', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8e2b4c96fed2e19fc0751e5263b82782', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ecf2cbcd48c92bb7199047b7e2255d9b', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '98114c873848f03a1754ad022a30bc96', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a2eb09218a748965e4bbd2db1e0f7530', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 1032612456) Fixture Delete (0.3ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '554d5f44bd55f8cdd5d17766aacae263', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '772290e9eb216ea264bdc2328387fa62', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9062b145b5fdaa77500405de41787a49', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2c12f8ca4781ba2115802a36fa958cc8', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '969442eee836ffd926bfb5553b1a7af9', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd187face3ba494d998706c142f8f0ae0', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '14452980ee04507ae457c98dd86d6bb7', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a8f6ccb8682bd71524f9132349f5c1c7', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe9399ac164e83cb5c0bcc29f83ee812', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:17:03', '2015-03-22 02:17:03', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:17:03', '2015-03-22 02:17:03', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:17:03', '2015-03-22 02:17:03', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ad0f64d5e97c40be8d2d133219bc1837', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0213d36f48dcaeb7f313fab2dc09b297', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8312cbf410f104a7c05c3ec540803a60', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '670eb301943142a496c8032fa370a1c2', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fbf410f1d531155efe3ac435e7c0c0f3', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4bb51cad58d898010c3be712f99bde59', '2015-03-22 02:17:03', '2015-03-22 02:17:03', 410780858)  (34.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:17:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:17:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:17:03 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:17:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:17:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:17:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:17:03 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:17:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:17:03 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:17:03 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:17:03 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:17:03 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '554c23d70c5bf90bca07e040153b43f3', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '90b35de5205991f1f0e15401221cebfa', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '672fd74c79f59597eed4a25e7c2c909f', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '355891b4513a812d0343a52163b52ec1', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '34964f8e09e083291025745f20f6a275', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '36118311470cc66a9f74d1a7b3e3a7d2', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2d671f67959465c9469775a60a28602c', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c76b2bca26f9bf9f037901d7041ae892', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c27cb67895c6e5ac1289d4c133787061', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.3ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '09fe8699deb2d1c49f34cd5e30a18f50', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5315eb8731b40ccc428a8004a9b71588', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4af0e25d682586a9d8bca6b148718ed2', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 483796712) Fixture Delete (0.3ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '09fcd466a424e75cfa6319668f7642f6', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c68a5ca7b2fc0bd3d571b044b5050572', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a5b27f1d8b4696790a48935f2113dba5', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:19:42', '2015-03-22 02:19:42', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:19:42', '2015-03-22 02:19:42', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:19:42', '2015-03-22 02:19:42', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e720447fde6cd71c096b41252193cd77', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4c1f5933a63e92bbd9e5c5b5c747921c', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '01da0a20a6f86b9dc93ead3e8d0072ce', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f946f95167941156e2323a77cbfda25b', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd4d272667e78537d2876125da0e86f3f', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd79c2693b7c998c08a2a556f46db6b56', '2015-03-22 02:19:42', '2015-03-22 02:19:42', 410780858)  (33.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:19:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:19:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:19:42 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:19:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:19:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:19:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:19:42 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:19:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:19:42 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:19:42 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:19:42 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:19:42 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.6ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f7b09f0bcb8822fa581ed39f326b056f', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f8906fa445c2887abb831c89c9695b06', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7fc8186cdf920770f2455a75588b4b14', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd8c2d7f4be5561ce0b8ca4e8e64ed339', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e203947e61b75ef903f874c25be62c3d', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9ea73d1f198c77d73dd9a873b36d5dd4', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '997431dcb3682d24934622741397fa16', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '91bc6a583242fa7c7f292c848c3b7fcb', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '77df65e756762694be56999d6f880008', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9e0be3108ce37fec22c0a595449f05da', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '08e614d31b4d64c72487d134b8134ba4', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ca2d1a4a995d35c50734da4dca58f027', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4a7533050770711488a764ef6059703e', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f748304982c014e35ac3107738e77b32', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b5ddba77a158aff26cdd1f51dafcbf5c', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:20:14', '2015-03-22 02:20:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:20:14', '2015-03-22 02:20:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:20:14', '2015-03-22 02:20:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4eb66d24eb4cf2941bf6a14dd37516b6', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bd77f29a1ec10c5961e7b45553118a83', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2f1d9d9cd686392d4d6832383e5d1c68', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '464b670a144ea07d559ad80ae4e575d2', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9776e5cd67e4b2c29d423a7b4b3a812b', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0a8e27c0ee49e868eb996810445020d1', '2015-03-22 02:20:14', '2015-03-22 02:20:14', 410780858)  (35.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:20:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:20:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:20:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:20:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:20:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:20:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:20:14 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:20:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:20:14 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:20:14 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:20:14 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:20:14 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 106545386, 'Address', 633598004) Fixture Insert (0.5ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8de94fb54710035409f738d4ffac9ea', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be8cab24aa7b08c091a1940df8810d0b', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '26da62fd49f358d7146bf851dcf52e75', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ab37913390d9ca4149dde6e9e2964655', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cab0a8cc1fda9ab30ddc04e88fc6d4bc', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b3c20a85866765be2b550d742de329a9', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '70e07327337b6f9f5350cfae0aac5786', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'df6a2fecce831c333af95cff30feb1c9', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cffc75498393d3f0d946580d31bfeb4f', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 966629572) Fixture Delete (0.5ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '34711c0515ca5aedb53160450d8ddd55', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2b8c9d8b9b5714fc0b4c2f2f0ab4ad27', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e6f504055649fbbf979611fdd04f45d2', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fcc54103c356f6e01b4cc612456541b9', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8baadceb8dfd7fc86178fd4d5c44359f', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 689259936) Fixture Insert (0.5ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f4887acc8b38058db818dc551e12a199', '2015-03-22 02:21:04', '2015-03-22 02:21:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:21:04', '2015-03-22 02:21:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:21:04', '2015-03-22 02:21:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:21:04', '2015-03-22 02:21:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:21:05', '2015-03-22 02:21:05', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '20e193de84b7a1a4be54257b4943c09b', '2015-03-22 02:21:05', '2015-03-22 02:21:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '409559d4d1e7c520c36ece2cc8211bfa', '2015-03-22 02:21:05', '2015-03-22 02:21:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8d42311ad34993ec58f44a29995f5107', '2015-03-22 02:21:05', '2015-03-22 02:21:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f1bcebe917bc0e536e85455c29e10365', '2015-03-22 02:21:05', '2015-03-22 02:21:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5342f7e6d2f37a69eddfff72a9ac78d7', '2015-03-22 02:21:05', '2015-03-22 02:21:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '275937121d21e85c122f44c12efa5b39', '2015-03-22 02:21:05', '2015-03-22 02:21:05', 410780858)  (23.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:21:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:21:05 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:21:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:21:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:21:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:21:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:21:05 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:21:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:21:05 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:21:05 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:21:05 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:21:05 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '13b6a22064b294dfb9b13064ae89a212', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1c745a2092148747ff54bc9f74a3655b', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '65d00101e29c0ef9e85ddf3ac5aa3b6f', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 633598004) Fixture Delete (0.5ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a719d3bda0faeb4ef1d02b1db50bbde0', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3d578d0a9620bf1e0d08cee3b5e8ecc9', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'da41941228e3aa3166335ace17113e30', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd9fcfd701fefde87befc17661d85eab5', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd83cc8bde4f8894cd2c571578aa77705', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ae8123cc63e07a3564dc0b345f7fee9e', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd5e0bd65b65f0f19ad17f4702a9e6164', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 343404421) Fixture Insert (0.5ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6ca863acb304f09db81fb82fa6f798fe', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e30d5bcf0b2fdce1ef81ff33e67a8a52', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '404963a1605fe67f439fc744214afe5e', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'febda8d02a7483d040c561d3f54e6d52', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5bc715afb57919b3a513d51a726bedd', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:22:08', '2015-03-22 02:22:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:22:08', '2015-03-22 02:22:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:22:08', '2015-03-22 02:22:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2bd783525f2f9c1de2b2fd3101215c23', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c1e8950390bba6138345ca27daf6c029', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6ba3ac43453d880c226b1c814a090600', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cfe89a316a80eaba842eb59cc375fffa', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd85177e770026d77759fcba795964927', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '777f93e0b591b7e69b14fa17f84db179', '2015-03-22 02:22:08', '2015-03-22 02:22:08', 410780858)  (28.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:22:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:22:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:22:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:22:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:22:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:22:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:22:08 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:22:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:22:08 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:22:08 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:22:08 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:22:08 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 576421514, 'Address', 761411935) Fixture Insert (0.4ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98e5c41ccf31e4e8d7445c1e233c18c9', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4fafc8afb41215b9c5ba955cfb69eb2a', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '553ddb4e7fd20a68eb92e7715ff3e7bb', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3f70197d615d02f347971727e441024c', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b938d0561bf54d2ef0b5396883dfaa9d', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '16b19ec1550c4a81254373c2ec11d216', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3737383b559bbfbffbc4b3b5811c3483', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'aa4a34b973a2ddeed55bc5faf19d87af', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0f210cc142fc131623e07ab8e099c9cc', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cb561827a107cbb2fb8cac203da7e915', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e019b965e20134b672a9487f6ab6d7fa', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a8e118aa69a54ab070e6db8aa456fdcc', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'df3c308e8f8f4d9cf59f5ab56ceb3081', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd465d02ad9b9bb31f048202f02cba036', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0d9a4d114fcad092efa74d58565de7ba', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:23:38', '2015-03-22 02:23:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:23:38', '2015-03-22 02:23:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:23:38', '2015-03-22 02:23:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b7c32881428b99d4f093e9165a0860b2', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5802b27f31ccfb6ce7da3f68bbf8c6d0', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c32d83b6ec24c68d305bcfe982350a67', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cbd26216125963ddf4175ce87a610b73', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1d62707cb15a04cb3cc2f491d50f06c3', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '02f64fe49bc1c84983b6097aa0653cdd', '2015-03-22 02:23:38', '2015-03-22 02:23:38', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:23:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:23:38 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:23:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:23:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:23:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:23:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:23:38 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:23:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:23:38 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:23:38 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:23:38 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:23:38 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.4ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98872eb091e4f5f4e998ef7c1aeea01e', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 761411935) Fixture Insert (0.5ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b1af8a1a19df9dd4c4d1456f0a5c11af', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd74d6dccbaa9b70532ad88ece0ed69f7', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '84243509a68c8dab3d4fa9d9d17ccae3', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee6cd73a4bfd65d305ae16757b13ffdd', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0d69576e5c2be0aa43757685bf35a020', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7934d9d6dafb90272766b1d3b0004ee3', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '623f2a1466bd579fb204122436b64920', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd67c34dbfba84df41093fd6868a380b8', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ab22200b96a98070fcc0ba644a8736ee', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '40e0072fc278ad888e0e1593f2e5d2e3', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5147d479bb81f8a2eb3303dc0a6377e9', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a163b1f183a361e4a483094f64a1c2f5', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '52d2cc9ee89c93437d0e4e3ff966461c', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f30feb597fcb2fc2694f02210acd7e92', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:24:54', '2015-03-22 02:24:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:24:54', '2015-03-22 02:24:54', 380377255) Fixture Insert (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:24:54', '2015-03-22 02:24:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.2ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cb7c3f6357fbc88653f1138d591f13c8', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '50737b05a742aa7c8e6838f4887981c6', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a5e76057c38ed7f458e50b1e660c7038', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dd89bf92e977cdfe3212189e43eee879', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fd3bef662a89398379b4ce6c6744b772', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7e2a9ffaccb9e06a6af6db3a964a1f7b', '2015-03-22 02:24:54', '2015-03-22 02:24:54', 410780858)  (19.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:24:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:24:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:24:54 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:24:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:24:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:24:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:24:54 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:24:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:24:54 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:24:54 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:24:54 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:24:54 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '692678afd0f5bb60a62fdd7e271c240e', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ccaa04eab41afe3c7fa2b4837c3d31a6', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '932002d512f600f9156a10f9f881391d', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c4246ab92896d17e7753fd7b6dbf5176', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '93e5dbeadc9a5aa9b44ddac82b177599', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '11c52b529317a598eb7156493f9c43a8', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '530f9c64d12af8ad36019ff2b3d86022', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a879d15a3de5d5b75aeba443c7097611', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'dfbd081ad9c1400f0b9ee7cb9bf3263f', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '92a8e3220c59754488472465b75063e4', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '91874612efc7316a9f3e8b3561469d65', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '027c6893178c00affd11fe2b1b463489', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c1231c7d0b11e429c55a6dd399400a84', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '73939210804e7b16159ac92925a943ba', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2ce626358d9bda1a52698fbece5f4b3a', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:25:52', '2015-03-22 02:25:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:25:52', '2015-03-22 02:25:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:25:52', '2015-03-22 02:25:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '28be8517358671c389e6a89b1b0f1eb5', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'daa19b0937f7482692d67b7df0fb5422', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '41696850ca24bf7c4862a53cd9a1f10a', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e10e6fc66ac673b8d80a469d865b19fd', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7b5682721741cd241e36b6c9210db6f5', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0fb2b015374412aaa9c08d7a9038666e', '2015-03-22 02:25:52', '2015-03-22 02:25:52', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:25:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:25:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:25:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:25:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:25:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:25:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:25:52 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:25:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:25:52 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:25:52 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:25:52 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:25:52 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '647e2da1568c1950964d8453d647dec3', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b1bf6eefd184854e07542085e2f63800', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e43ce3988ebaf2d55b126da4573b485a', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a2c873eaf83c800f377abaa1743e8b3e', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2bcdc141d6efea93529a2f7bc1d3142e', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dfb13d6a913f5ae5fa0199d2698af7c4', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6b0f7527eefcd5e51f9ddcb71e06cb40', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd559bfa441e3024f5e146ee0d25713c1', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2088467e469559be8fb7a1d15887df24', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8c97c5b1f804cde7b32ba1ac2aaff293', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dd127ba25db6734a8b5b6aa5e4e85eac', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 102195269) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd2a617b74660d71901963a9ce3225668', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bc7e170490e062b037ad673b1b4adffa', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bafb22c582fd519ede75d43301b1e351', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a124f0d865d80709d30888592f2dd138', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 762608046) Fixture Delete (0.3ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:26:16', '2015-03-22 02:26:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:26:16', '2015-03-22 02:26:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:26:16', '2015-03-22 02:26:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd44a516c0034e8dac6973eb1799a8ee8', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5b0161950d6906230a2adada5e7878e0', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bcbfd00cec847910cf12a57285336f3f', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e5319c3058027d6f0480f0c9d28daae2', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '16d7eeedd884f051ddf0696f2d7e5053', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b4caa4fdf0a6cb398d1f8c023db9a838', '2015-03-22 02:26:16', '2015-03-22 02:26:16', 410780858)  (19.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:26:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:26:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:26:17 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:26:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:26:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:26:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:26:17 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:26:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:26:17 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:26:17 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:26:17 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:26:17 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.3ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '40ada7b94cac010c0479c38ec437f6a5', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 761411935) Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1ab23f900c073cd460c58e29881f2bdf', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0c0a0bc65ddea290750ca65d1b9466a3', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4feb7b90e980048c99063da857ddd36a', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '29634bb473c8a687ae28d53629767e8c', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9ae43bf29f77be21e88e7fb9de5a15f3', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7071f3f4f4847a00cba309fabd52dde4', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '69e855753ccd9ecb6eafe9182edf1bb7', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 478996145) Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '068933e57013b9052e1b59b1c3d99e7e', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e4033d0acd17587cdeab5b47e224fa2c', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '95c2e82b11878078ccd3ab9ef4f7a4eb', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0b6a36255ac80f25faa03e81b32fe0c2', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bc16cf8e787b17f2d81e1d0b46aaf389', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '594c21cde7479e7d34e3bff5cbd6c399', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6624c6b6d5c877ae6f94667a488e9916', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:27:05', '2015-03-22 02:27:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:27:05', '2015-03-22 02:27:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:27:05', '2015-03-22 02:27:05', 619379998) Fixture Delete (0.3ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6bcfeb1b20f5f7355c124ea4e69fc0b5', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'eef13f039d674bf1bebe7c6add4576b9', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1a3b0db339d527f7c1d1a1b32ad9c35a', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8bf4642c27cd189313d6f952e464241a', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1735efea041d15b066c44724aec8bef6', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd3785a597a913ab07be83b98f5ae65e7', '2015-03-22 02:27:05', '2015-03-22 02:27:05', 410780858)  (14.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:27:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:27:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:27:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:27:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:27:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:27:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:27:05 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:27:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:27:05 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:27:05 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:27:05 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:27:05 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2f00a008c137592958bdff2777b09cf0', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '869dbc40328aeb844ceabb35eb1fad5c', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '91132aef05008dc65cb93afdda598637', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ae3e0515a6eda66d9de39da4402a03c7', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2bc52d145fc387a20976e658aa2fdb5a', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '75b2fc878d45e2b79eab09f0bffd789a', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '15db5ff036552f570cc0c0aa4533a41d', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 261299535) Fixture Insert (0.4ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '81580012d79d5c8c8a4c8b9cafb54381', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'dbbf4d2e01487361f64a8064b0115423', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3727dad4a84cf47d57fe6a220bf082ee', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cc3595fc78845e07da5fa51e3aa92dd8', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8a71977d7c1b02854efb6a6b99ba3527', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b7d5c2f01ae3379b3d9cc93b2a946a57', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fba7bb59aa0fcd6cb80cd92d876f9f26', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a68e5b7caca16c50fda00dafedc9ce95', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:28:10', '2015-03-22 02:28:10', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:28:10', '2015-03-22 02:28:10', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 02:28:10', '2015-03-22 02:28:10', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '222c3f5df0690ee03b6b1cce9b63bb58', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fda8a7063c78aa9bcffa1792a27266f4', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '28feff9d326673a3a25072d0d2cdaedf', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f1cd379fb45aa0dc6097e781d63d741b', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '683905c161f03ea34e0cfc5bcc8e962f', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cf1004e495c4deadaf750ed220994adc', '2015-03-22 02:28:10', '2015-03-22 02:28:10', 410780858)  (23.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.5ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:28:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:28:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:28:10 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 02:28:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:28:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 02:28:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:28:10 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 02:28:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 02:28:10 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:28:10 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 02:28:10 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 02:28:10 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9d6d2999eec594e7ed42a39a20d86a4e', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '78322b74295021a16a99ff2c773a9d5d', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f7640925eade87176adf9ddb61b9f642', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '90bd1da1c86f7beffcbaad1edbd448df', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '76fd9b53a5e12ab574cee724900894de', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4948af7310b01c633f5c6e2e8551056c', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '07fac9828be0f4959e067133546773f9', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '27a7f628ffe7cc9cd754392471a731a1', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '892ea42c3226fa21212988d4d00667a0', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 966629572) Fixture Delete (0.5ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '112c2371e119a92ff932816d105bc56a', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ddd05f5ceb9f3866155680d4afa0f984', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 102195269) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8e7d1c2000e3611e997396523d32d63f', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '93c6b9762e4686a5beb5cc9ea9a0ce83', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2b407aaa85a2de378e5b632efcc2108d', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '233bfff5e0bfa7fe125bc6575f3354c7', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:07:40', '2015-03-22 03:07:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:07:40', '2015-03-22 03:07:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:07:40', '2015-03-22 03:07:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '42195d8adee92bc733be04d83485406f', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e105c48e6ee7443649df9c0c4be3b079', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0af1b0ce9a01ebf4fa62e0bbc3b2ad9f', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b615e7c4908f1ceebcfd389288832b34', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7cf3e45eb7128d810da95bfe81c4ca44', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '33235ed3a571b1a1a96b35696fe92cae', '2015-03-22 03:07:40', '2015-03-22 03:07:40', 410780858)  (14.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:07:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:07:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:07:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 03:07:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:07:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:07:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:07:40 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 03:07:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:07:40 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:07:40 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 03:07:40 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:07:40 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1a917311c72ea811f0b11db19e9e95ee', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7a63f2560cf87d010754b58b03a7897b', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'de9d4765783d3e945b2079243c70ce5c', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2c7915ebe5a2e4d7f5c1a17b67dcbec7', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ed9171ac05612142ec0e4ee90a50d592', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '26a0c80621d88bdb27563008783e7c16', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'de4fda2ebf728fff4b926e21c1fcccba', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '35d4febd5043da6f529b288a87cd4e65', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4a532c2ce2d1196ec63c72a502cee43d', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5bb495b4b92db54fd41ec82eba725d3d', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6347201f2504662d94fe46cd348f69e6', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3ec17f97dacb9c9b6ae8517c1ef42480', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9bc0c0a5d5f73223fd5e593df0b6af5d', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '31e8d8184e86045f7c8f6f91c9d7c34f', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '740becb0d2ce8ee6511e911f6712941f', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:09:54', '2015-03-22 03:09:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:09:54', '2015-03-22 03:09:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:09:54', '2015-03-22 03:09:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1e0bb7997e93acf46d261ae83b08be1c', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '769e50f9e66b3d0af1f8b9962899d65e', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3b620947d012d71cfc1bf88af1f778f8', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '79864a53ab46c6e0c51b316bcbf52e8c', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '046edc0363f1f449889de0413751c6fc', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '74b6a8271932b2701906da7b395f0760', '2015-03-22 03:09:54', '2015-03-22 03:09:54', 410780858)  (22.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:09:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:09:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:09:54 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 03:09:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:09:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:09:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:09:54 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 03:09:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:09:54 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:09:54 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 03:09:54 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:09:54 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (1.0ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f242a9951e9cc7dda51b066f7ded30e4', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ecc61592ef04602f266b328f339738dd', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '52b3fae86baa415d475734b229868f03', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5c9d6147ad215e49095ff28ab7436fc6', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c5c15c67ab27482246fb722d8ccb17b5', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ebf43a29a0b61a3c92fc533c54f7509f', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a872fdfd84650ad1ac496f758d86c632', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '74e57e296d245003c8e0971d94b5a915', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fe80c1d52c01e6a97aaf8024b90010d2', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f75ed0af7467404d98944b5a550564a6', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fe44f5d973f975bd41f4c51cd8cc3222', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f6e8e5c7981da0b310453cec5f9d3fcc', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7a3acf1bec3e1419870a0587f16c6ee8', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4434bf96e1514743a4b3c24adff00fc0', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '080f899336c4e51d57887a80e7d7aa0d', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:10:06', '2015-03-22 03:10:06', 902541635) Fixture Insert (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:10:06', '2015-03-22 03:10:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:10:06', '2015-03-22 03:10:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9dd8ff6e55801d244c840889b3533c02', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a6b1fe6df9d5dba16066a71516c2afad', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fdd997cf10965b0640bf51b9b8eb5077', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '41134cfcfd99bb5c27da2e4e57869cdf', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3d9c467cd1f0f59c642c1d1375a8a3ef', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6d8acce03082d8938e436be6cfcea99b', '2015-03-22 03:10:06', '2015-03-22 03:10:06', 410780858)  (32.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:10:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:10:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:10:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 03:10:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:10:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:10:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:10:07 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 03:10:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:10:07 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:10:07 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 03:10:07 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:10:07 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '593a8a539bab5b207543f4971b2a76f7', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '921be123cc3d8f92cec642dfa766a13b', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e7a50da01d30e1995a7c4653a1de0da4', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f809dc723f69c2f8c8de32189a07350e', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1935944a0e713c2e76b841f19b308475', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6116db56894114f82b27c5d5effbbf75', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '330876599928502419a5c200267fb8ee', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd99ed146ad890a9319d4efbb15fc57da', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1b2ed612b4853801a83f3c5dc9114d65', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 712317748, 336964236, 849808553) Fixture Delete (0.6ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a55d54e3e8f1662c68ce8f8f0b156861', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6ff1850a318073ee02e695631087cf5c', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c8f2c8a366a61f586150a646219d0ded', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f88aad4c8d7a19514961f6760ec9a9f9', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a5b536e7505e71317eadd6c029aa7791', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '47f3a6f188bef8521e845bd5059280e4', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:11:58', '2015-03-22 03:11:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:11:58', '2015-03-22 03:11:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:11:58', '2015-03-22 03:11:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '50e46eea1fcb4118051a4ed2139bd0dd', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ca9ab43a9dd03d831402b515bf9e6841', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5bbbb1ca0ab31fb712303fac30071ebd', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2885577e6bfd2d5dcf9366c309608c8c', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '95cb5aaf9b063cfafbc9095fb1cbe443', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1eb810405ccd947784137f8997779fb8', '2015-03-22 03:11:58', '2015-03-22 03:11:58', 410780858)  (22.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:11:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:11:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:11:58 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 03:11:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:11:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:11:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:11:58 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 03:11:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:11:58 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:11:58 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 03:11:58 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:11:58 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 396855775, 'Address', 1057142427) Fixture Insert (0.5ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6626e97196e05c573ef62abccbdc9195', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '31cce55b2577116dcb2f3f9fb4aeec0a', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b6b97e97987bffbf3231d314bad4e4fa', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8f4377baadf75886ebe9efbf9aeb131', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '639b5693e363ff204e0167149dd08316', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '55aa18bdb8d977ac09dbdc1d151c36d4', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f8838234665feb5e932f75c2bc4961e2', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8adf9b57c19e40ffae7cc1d508a0fd3c', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ebde4f69ec2a9617f76748c9568efb97', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ef86300c71b4cd8c760f35f3f8977fa0', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ee7153eb2236bad7770e7753232eef40', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ef51fde587fd08826f26844b749cb786', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b2c9063b58f9f61b17c6409397765ba9', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fb841e10b116b7cb03c72409d49ca3b5', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c95a59bb082368010ed4508ee8c8e204', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:15:40', '2015-03-22 03:15:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:15:40', '2015-03-22 03:15:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:15:40', '2015-03-22 03:15:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.4ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '18d46b7fb6869f2a6068d09afabce2aa', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5478303b3072c077779fa6aa2efa4f48', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b397ca1793e5bfa7659ec3b6fe26a68f', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '885aa37c218b5deabc99c48a3cf259d0', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd4998973368ad27c6eac706c57c166c6', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd3ba4bfe09b94a37fc07648478a93ccf', '2015-03-22 03:15:40', '2015-03-22 03:15:40', 410780858)  (22.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:15:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:15:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:15:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 03:15:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:15:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:15:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:15:40 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 03:15:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:15:40 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:15:40 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 03:15:40 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:15:40 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd24cf80c03b6a575557e6fb3d1ba3fae', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '550265a42295ed1102d86d1b2998eed1', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '40a9f244b9605b779fde4fa36ce3bacb', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f156a3c19f1b5f63edc40d791de9c98e', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bede129255bb45e77df53d799b80d152', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5ef9ea2f6ae0fec0d861aef0687b2f7c', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7c877b8ea914b8189d06063bd9b07561', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5455563e98e94e2125f45d3fe6f7fdab', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0c106dc1f24eb5639a0b7edf5a331715', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '83d3a5172564a4e2e515df44dee7cb07', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ab2d3d64f1932aafed28e6ae112fcef8', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'efb99937fe456b2a104f9cd179357943', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cc84043345b878e4f3d3970d4e450f39', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0038a8ef2ec9c334ef891e0ac5bbfa0b', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd5eead3ad97987dafb740e7d9c88fa4f', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:17:22', '2015-03-22 03:17:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:17:22', '2015-03-22 03:17:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:17:22', '2015-03-22 03:17:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd2d85203ed1968e939fb644b4dd900a7', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fdcc7d76f7aadd5e097f2fd69a1d811d', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd0e050429e5ef196f9a184e1f17880e0', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '54716b5db8ed164082dc1b2d4faf1a3b', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0b6b4fbcfb70ed80714f77b8827b6ec5', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '34539dd53a181e6b00f30bd5bf5f0d68', '2015-03-22 03:17:22', '2015-03-22 03:17:22', 410780858)  (21.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:17:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:17:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:17:22 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 03:17:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:17:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:17:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:17:22 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 03:17:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:17:22 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:17:22 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 03:17:22 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:17:22 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.4ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.3ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '95e35c7916b58bbbc473fdd8e5c402ff', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c431a41fc510d79531d1594f18b6c919', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '73acbc71a8c07b23087cbe16d8940a51', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1f813059528644d3c2c0305cdc0662d6', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '777cd2ff846008c8c47a58d316a5b8b6', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b507fcbb19bb3c3c4aaff5b2dc6fe231', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '50b87705844f615cbcebc6856446601f', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '67bbcb0d752ceac06698c8cb5f687efb', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd1892d7d5a9f67deea59c2e3287def4b', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 873565849, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a0e42f181ba5e832f4f99d1f2b537518', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '88fdd19ac20ecdc8d6bc4d974c2813f1', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '989f125a2a73eed17cc713687546c3bf', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'da369b88ba6e9e665501686698b992da', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7d5327c01f6b984854ef08b555c2b001', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eb8cb2eebdcbed5cf3f35420080eb33c', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:17:52', '2015-03-22 03:17:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:17:52', '2015-03-22 03:17:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:17:52', '2015-03-22 03:17:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2ea465759479c7bdf4d3924f209c0c10', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '77a24f2e15e53446641b35a455f9a21d', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '365e04ffb9a5a065a0271d516fd3f194', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '902f97292cdc931d987564020fc87c57', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f3b6937599707de2a63636981befc35d', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3c1a8c5a9a7482d3fcd26a888cc8ffdc', '2015-03-22 03:17:52', '2015-03-22 03:17:52', 410780858)  (14.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:17:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:17:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:17:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 03:17:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:17:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:17:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:17:52 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 03:17:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:17:52 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:17:52 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 03:17:52 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:17:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.3ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1a51895b2c731b2ae0509bf672061e2a', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c9c040fd16b42d502f8adb3834cc9c7c', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5b6ab228f1fde575ae0dade58be27596', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 633598004) Fixture Delete (0.5ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'defa6642c71083210dbf489e49fa9b23', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dc6314f4006f4eb05d447adcbf88a0b1', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '84dc7dd320d0f8bbd35ca4ac896ae48a', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '866a3da4b64b5ee5a4601d7b08b946b4', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8f3b052ae5b4a87effa2a3292ce3f72b', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3014761d6465434a126137dfb816e277', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f84bb13a0d2fd59382c568e7ab4d8a9b', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4f1e38dccf0ab3b08565e97f8e08a5cd', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd11b23357c6a77d9730ff58aa2df689d', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '72b9ab512c696c315482127411b76c7c', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb0ec4a865757926a672f2d65eda29f9', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ac377df4ae31cd4b7dc0ae55ed32538a', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:18:42', '2015-03-22 03:18:42', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:18:42', '2015-03-22 03:18:42', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:18:42', '2015-03-22 03:18:42', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1e3294982dace45af2e6672950d0c30c', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3240e467d234a5df04674ee9f2565fd5', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a7e8f5c18cbad2da5c69054fbe1f0e2f', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '632a78a410abc7f6a75fb0b8028f6418', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '48f1a8d86e93036e8309f7518568f6ae', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fc8e54bb843cfc475421b1aca8037a14', '2015-03-22 03:18:42', '2015-03-22 03:18:42', 410780858)  (14.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:18:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:18:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:18:42 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 03:18:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:18:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:18:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:18:42 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 03:18:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:18:42 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:18:42 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 03:18:42 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:18:42 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.3ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.8ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.5ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '93535b018d3c6fceac9dcc2ad98e2c52', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd12aa6ffd217ad9fa987d334f2c60fe0', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 1057142427) Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '814584c101c0311290033bc4a28b9166', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cea31ef35d1e3d4b2432f6f1f2e112a6', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3cddc4af0caae36b537bad4b559e0e57', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c9fd3bed79e1a4640f215b803ca1a3e4', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e3418aabdcb62b37c2f42c4a7a0cb9d3', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9de3e3a759646232cca972f397544e54', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '301429d5d9109616835491af5cd72c2f', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b0f091fa3d309923097016e47eb9d016', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 343404421) Fixture Insert (0.4ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2d6a8b6508650b7253e07d79e3251d30', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'abbec1dc8e0b00874935063de2a2acb5', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '47b712157c8f29292ee479f531e5ab42', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '00573345bb05861272096b0d8cc95029', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 689259936) Fixture Insert (0.4ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a02f25d3f0d7221617fc0d2e7bfd1f21', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:49:25', '2015-03-22 03:49:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:49:25', '2015-03-22 03:49:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:49:25', '2015-03-22 03:49:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '156ef13f22fd943fc680d059b6bcc4a7', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e2049d05425a017d372f361e214356fc', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 1035759634) Fixture Insert (0.3ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5e78827781f5bee05e519446578d9346', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0667e9ea27e4c58fea3d62daaeefb51e', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5abb9887477e32c5edce8a0c3a35ec84', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 970698464) Fixture Insert (0.4ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8b35d7aedc5999bf581863bc57271edc', '2015-03-22 03:49:25', '2015-03-22 03:49:25', 410780858)  (21.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:49:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:49:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:49:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 03:49:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:49:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:49:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:49:25 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 03:49:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:49:25 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:49:25 UTC +00:00], ["user_id", 1]] SQL (0.3ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 03:49:25 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:49:25 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fe9c2cab979103d1b554dd31d8ef0ed0', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '235f708164eefc0967535faf5e3a6c6d', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c6dea6aeb472f0feb6804642a7e15893', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '86b65f0f5fc80f35f112d1a83c6b4c0e', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e0f04367938269d9f826760a588c1f50', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a112aac68d1e57f484a73b993fbf5cf7', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a028b021014012da6ab236b6c10e9b4e', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9cb09b32f797e1a52093902567df215a', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '546e25a2ebfc2559c1ffd07d40362655', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ab891c637e3a1ca62c04ce43134e2825', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7657507ced37296c0d6256c90125eb27', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c2b10dab9f1b25e0fa47c901412a7a58', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e4755b522c9f5597b0aa0157d914cfcf', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '80988852b00c63335a833938ef6f2515', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5a656d6fc6d9b38646ed2d5a40f7b3c3', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:52:56', '2015-03-22 03:52:56', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:52:56', '2015-03-22 03:52:56', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:52:56', '2015-03-22 03:52:56', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '14607fc774e062d80dd736254d60caa3', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '96968b6a555afcc53c4cd55c08b2b798', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cf1406dd6416bd309ad52afc5277e69d', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c2beaabf91a3b068157915d00d8f2b39', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6d402e81aee1f350d5302563f53ee823', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1b58ce13cef9e7fc5350e83182f473bf', '2015-03-22 03:52:56', '2015-03-22 03:52:56', 410780858)  (15.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:52:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:52:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:52:56 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 03:52:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:52:56 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:52:56 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:52:56 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 03:52:56 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:52:56 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:52:56 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 03:52:56 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:52:56 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '247f02f332deb6c0b79811a9929a3fbb', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3728a21aed5d63f6a8a639c316473186', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '67f12d5236255f8a6e5173ee09dac623', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4f1ed6c7162ecef769d3ca446ea3b45c', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9906150020a1fe8b328ec5bc3e65c28d', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '423fa046af34767a1f38cd588f2cb9ce', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd6a23e1d9fd8e8c6eb7de080d6a6d05d', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a589baacad4f7e79ac887829cdd13c54', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a3206f2488a351a80d5a5bc58d101b7a', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '95f7746a02f7dbdae73a477311a1b95a', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '700cc2fab38c4e32f60e4c3f583739fa', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '09caab920d8c14eb1553673bdc143569', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c7a57bdb8320778f81ef7f5f89778441', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 1053526200) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dc8f9b1c40f020f02829022197e13793', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b3d1cef3245834e1dda1ede5741816f8', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:58:24', '2015-03-22 03:58:24', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:58:24', '2015-03-22 03:58:24', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:58:24', '2015-03-22 03:58:24', 619379998) Fixture Delete (0.3ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '28b1d65809621c5ebe206bdf916b2828', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6f09fa13dabeeb2badeb5166795e2c4f', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bb4cffcd787967357af7419f45d95c8e', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a4ae24083ced1f8f5a7b4e932ab84cbc', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f0ea368fb4016e5ad552a9e7c4cb0325', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4707efedd11e3bf86a839a99d159d8aa', '2015-03-22 03:58:24', '2015-03-22 03:58:24', 410780858)  (23.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:58:24 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:58:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:58:24 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 03:58:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:58:24 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:58:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:58:24 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 03:58:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:58:24 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:58:24 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 03:58:24 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:58:24 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2c9c0740c08bec88a1f0ccffc1a7452a', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '80c5d33c9a6f4ee637aec4a0fa68d7dc', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '65280dda4f933ba36c464a9ff9281e0e', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '590fa84a047ebdf8b15aee32c31cb16f', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6dda5744c39baab2046094266e6292ec', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8fbf800e367b5fcb4b933eb2b677ae4d', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '463d80081a7eef30c5b1ee1201344780', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4edbf1eb2773cf2cbb1b50b15e9623c7', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a7158337ae2123a0f0ace23b1f1cae71', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '693ad39eaaa376445708f782c60c3b91', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'bb48a6bfd35e0a300dd536fe4c420cb1', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e81f31c1884acf8b6b7ff8c52097e9ff', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd94a5e56becc5bbc6dca73a2245f5022', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e8c6e9ef363d680f03025eb12a1d71e', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9271fe3d2f6992639c8c17f8a56c714e', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:59:30', '2015-03-22 03:59:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:59:30', '2015-03-22 03:59:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 03:59:30', '2015-03-22 03:59:30', 619379998) Fixture Delete (0.2ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6918400ac277bf4fe9df7564d725e59c', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '674d67940dfad58265bfaa05c4f21a51', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '240ce4a8ce7ef9b5195b97241a83a694', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a8e780750b3d046d04fc7ac690821ed6', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '03e68943998cc2ea0853110e6c789d41', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b5ee47231fee84b0dcd12d5d33fb0367', '2015-03-22 03:59:30', '2015-03-22 03:59:30', 410780858)  (27.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:59:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:59:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:59:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 03:59:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:59:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 03:59:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:59:30 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 03:59:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 03:59:30 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:59:30 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 03:59:30 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 03:59:30 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 576421514, 'Address', 761411935) Fixture Insert (0.5ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '94fb9071aa3b1102796d5e2ae4f12bea', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fec3ba6889a1c672b5868ea62ecf3cc1', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'db58afb61adc0561c0a457f8b1854601', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '39a01a04b886a64daa544ce484d1ad79', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c872f6e8a17e5d94fb290027e0272cc3', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1d0f41d0db11e2fc57470fbd51718605', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4375f702a707b32a083f4c6945bd1ec6', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4e081c749a051ff148fbf539b31c9a05', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a186d400a855016b9aa746d5d9e76374', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5ed59165d35f7aa7942fda61bb4d8cb7', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a82e1de539c6f28e1a81e96e26686fbc', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '59bc80628f9e4742169d7c93f64fa3ea', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2c199510aba5b9f6d9ef8d61250969b0', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 1053526200) Fixture Insert (0.4ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '590754dc48fc2e9bd93b7306e45f1d52', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2d230c94583e498bca89d498145e5d4c', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:01:48', '2015-03-22 04:01:48', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:01:48', '2015-03-22 04:01:48', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:01:48', '2015-03-22 04:01:48', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '73f639f902400719fbbda5461f181360', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e2516ec9907644e9e3e08070fb995573', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '04d3fceece6f2965c8c89a1440bc2b31', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2a6bed82c7c215bad6892b6c4d937236', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd96c6e1c9fb71cf31c41be2da5a9be17', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '39d448006397c3905db61af59f374ebb', '2015-03-22 04:01:48', '2015-03-22 04:01:48', 410780858)  (15.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:01:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:01:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:01:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:01:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:01:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:01:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:01:48 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:01:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:01:48 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:01:48 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:01:48 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:01:48 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c2b2783f98b8a0213ca03f80637536dc', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fd1b31562d826edb291128bc90a44f16', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '956eb89ca8833d3b9a29729c77f4d238', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '50f1a9e89dd3caafdb8edf4f13388bc9', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7a76dfc0dbe531b6ffb6f8b1a108eec5', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '80443c264c057dcf580a3951a7d3578b', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'cb67ca01ab477e5e554863cd4e58d03f', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '01e69f6f3aa72666023e386760de6467', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '61f87362b4881e0269c91d0bcdf7d09f', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6fef0da1a973fff723255b304d148fe8', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5b318397002d6adcb1a172c1f6a7cdf3', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a5db90f80b5821a45325214d1b8c8015', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b263afa1153f67432fadc36b976cbe6', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '475eb71bae1a3ccd415115aae786957e', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1daaae7673ddbd26836df5289674dd08', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:03:13', '2015-03-22 04:03:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:03:13', '2015-03-22 04:03:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:03:13', '2015-03-22 04:03:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ed10abfebed1a42189e993ee559bd8ce', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f21c7cd5f758f8bb099386c590fcd311', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f4fdd21c78470c1ab9178b844fd7c88c', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '91a2ea4f698e1a6289b3a523915af36c', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ef379b0649c65e9eb39f06d07439c85e', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0bd2605f98ba81789758729b96ac2d8a', '2015-03-22 04:03:13', '2015-03-22 04:03:13', 410780858)  (17.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:03:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:03:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:03:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:03:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:03:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:03:13 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:03:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:03:13 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:03:13 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:03:13 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:03:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.4ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.4ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.4ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c50fafc23170aea42c9b739f4326becf', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6320ab6278aea9b0ddc0f8aeef4600f8', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7aad9d448987ae235d07af6aa71f3140', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a2055dfa2504dd249bad577afde8334', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '816b7f53cf7ccc678b87c8f8adaf819d', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cc393cbcd47cb3f63fc870978fefc564', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd092471ea44ecd3f9a246ba98d982751', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c9a2b865d4479c112346983c41ade3d1', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 478996145) Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5f810631a8f69a646b153dac977c8574', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '34c6c55d6edbf733eb79bf88c942525f', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ce5ce58256add4882122cb1feb309930', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f9a7480914c2486b5b2212b24da64a0b', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3da443213297bb5e94bad1126bb86642', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '00bb51593f8479c72a92b1633fe60c8b', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 689259936) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa024c17a2bdff74a630c74724415577', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:20:38', '2015-03-22 04:20:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:20:38', '2015-03-22 04:20:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:20:38', '2015-03-22 04:20:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '33b7c564511ae4add23bb16caefaddf3', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4a17934b23967ac9116abb4cfa6b35b6', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '082d2555a075e948060a4533af7aacbf', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fa624abc88d79766b83435ec1ef11fd6', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8f04dd1c373e6c3a5d27528af448d1a4', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c07eec48c8071498f639ddc08a9a9b55', '2015-03-22 04:20:38', '2015-03-22 04:20:38', 410780858)  (20.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:20:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:20:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:20:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:20:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:20:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:20:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:20:38 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:20:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:20:38 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:20:38 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:20:38 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:20:38 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.6ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e920944b25e61401e957ebf953ae727f', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eca4b0bfb593d0802409e04f1556d029', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 1057142427) Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7dc2aedde6861f4059a5c9eb16ac0f8d', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8eadf6281fc37c993adda3220f56e284', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '66957d9394ab86600ea2bdd05f08d18a', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fb7beeaf3f3db842ad5456a1b6410618', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0faf7d632314f862ceae7718f529254f', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '81be46ca51337909a3d769df8dfc9a8c', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 478996145) Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a5bb44c84e7e7324a4eeb6bb7c57ddc7', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b6979f32f77b81a9817b1a66ff00bf79', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '79cdf9a5a66b854bb831842b1e73b82b', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd900bb57013e708c17811d1648531133', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bfba5067bbe9cfd07867e6c53bf8432a', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4bd397bc0549d5ea9d12ed37b8f51908', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '43dcd76d07c55cd38c6963e3607f55b5', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:21:27', '2015-03-22 04:21:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:21:27', '2015-03-22 04:21:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:21:27', '2015-03-22 04:21:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e73bd461cc23d7529e882cf525811e5d', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '85d7b05b2e37dc434611124d7b5169ef', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '72626a42cbeddca4068b2e9aa7be4052', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3debbe961e28ac399a3261e24a7c76e7', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '226eea73c37d4e321c1aafe5fe8a520e', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '811d34e5fc7a30ebcd47748b9fd2a467', '2015-03-22 04:21:27', '2015-03-22 04:21:27', 410780858)  (25.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:21:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:21:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:21:27 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:21:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:21:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:21:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:21:27 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:21:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:21:27 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:21:27 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:21:27 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:21:27 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8b3e69af0227320e26e0a43bbafcd4c0', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4cdb623a0a5c2fc4fbca59c22b98d458', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '73d83085c4a845c0c976cc98e088ba19', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5e4e4db5dcb9a1554172adbc1a392849', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c3d58f604c03c7462a31c6aa9a7ab836', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '61f26ae6293c903d972af167a79a2894', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0652fd9f3d7c2cc793ca984dc752fcaf', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9c7a007ce83d5ce10c61bd1ced8c244f', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '14eb16a280b5b4463b9e776ec8cbba95', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0cf0f62aa87a371eab33f07f0bb68bf3', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ccfdcf36231df5cb20b9c2a1c50defea', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8147b6854ffea0ee3a52ac05a3e3556b', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0d0eaf4c0d9ca00e045556f635c2f497', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f975931e2acfecd52f9f2a161b62755', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd08a657b3a71722efd3b2f9006713d02', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:24:20', '2015-03-22 04:24:20', 902541635) Fixture Insert (0.4ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:24:20', '2015-03-22 04:24:20', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:24:20', '2015-03-22 04:24:20', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.2ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c2fb4212966fc12bc7ff72b6fb357588', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '22e40e0ebcc16471dc944e07976a3e50', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f4165e9659e24f36f39d5d8346676bb4', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '39ad3104a7f627ef63967bd855a7fcf7', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2926a785f1b86545777c1f7b17d45365', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cf330e053b2d995c62f6899f263fbdda', '2015-03-22 04:24:20', '2015-03-22 04:24:20', 410780858)  (29.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:24:20 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:24:20 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:24:20 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:24:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:24:20 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:24:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:24:20 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:24:20 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:24:20 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:24:20 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:24:20 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:24:20 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd48a3a23e2aa39c02d30d4af266046e9', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8a2ca20964bfa3e28cc44d25d3f5083b', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b215d4ed9a752a20fbffaf3838e6ba0a', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0883f434115a76be6ad937c67ec52f20', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ede4d4616a87f64bfebd88a929f40bcb', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '03fbf74e9a8ff4a2defd1e48bded0695', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 1032612456) Fixture Delete (0.3ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2c4ca7c75f04cf1d5871b756ed53b9ea', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5b4a2b13fb63d67709b6133f1a27290f', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b8ae21bc143c6bf71d273bb4c676e9a4', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f01ae5c19c7dd90cd7357fed65bf9001', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '61400416f1417cff214324a9d9128a79', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a7aaddb6962352a6c8dd21fecfa1719d', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b0256978573dc80199566208732452da', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '14e56b159509acfe4e7b8bfb93f7ecf3', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b7fc093dd6b16b5e45ac30db2a02c39f', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:24:48', '2015-03-22 04:24:48', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:24:48', '2015-03-22 04:24:48', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:24:48', '2015-03-22 04:24:48', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3260ca54f956c5dd0dab469e70929ffd', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6065b3ca8d20bab189ced25547d82dba', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dc5a4f77465bc2e2b834d117296a8500', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8406338568c0e29161affa6aba57a7b2', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '69f7fc7bae6a171200e12797d7314f38', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '23261169e9edff90a2df8916900ab502', '2015-03-22 04:24:48', '2015-03-22 04:24:48', 410780858)  (17.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:24:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:24:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:24:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:24:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:24:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:24:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:24:48 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:24:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:24:48 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:24:48 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:24:48 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:24:48 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (1.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 576421514, 'Address', 761411935) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5d3d15a24ab457b027283ff769a643f0', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f9636c1be8d42537db74e40b325334a1', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e6f92dc90668bb94466c9860132be4ce', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '03c3ce7ca56e9aa1fd11f39fcc3cf490', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1b07565edab0031c7f8b7407ba3c88ce', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dc72eb10d6405ae92ab9e765a03374d5', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a4e38c18c0ae9b8a2b7b8d1fa386b2d5', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e5afc0f00a730d01f8c3074f20d3566e', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0aedc61412007877f05a3427cb3a52b9', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1e2481eb2b0ffb6070b215be67a9c188', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fee2f4f848d2e959ba819260c3e52999', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9c941ba47210b054d8ceb1f6a17848ba', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5901454391bdaa869a43378302ea2bee', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aacb1c0920f5041706679b8947db48c7', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '25e509904f6d3508d316fe036ffeeeeb', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.2ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:26:50', '2015-03-22 04:26:50', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:26:50', '2015-03-22 04:26:50', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:26:50', '2015-03-22 04:26:50', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '219d5a78b6f5992b8dd17d5c78e7cc82', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e7f391bbbd1eb4a0773e95d507fe7e6f', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bba7e7c3c6e1e529d4c9890319135714', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'adbd04d1f5dbab604bd33e7b7431f207', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8fdef374cc593387953951cb8410f044', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9c86ae05e8939fd2c631b7010ecb71d3', '2015-03-22 04:26:50', '2015-03-22 04:26:50', 410780858)  (24.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:26:50 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:26:50 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:26:50 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:26:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:26:50 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:26:50 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:26:50 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:26:50 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:26:50 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:26:50 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:26:50 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:26:50 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.5ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '92b4f8572b59881428bd023ab57d507b', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e75f6e469f18133617ffc54c6a3bff89', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dae0c03186fff1071041ca57db853698', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b3dbd7b56fd069b442dd8fa29bf28526', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '11e6c93434d17944ed56237883fc8aa3', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3c4ab2dad6037d992cb6bbb8da8f2552', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c1a21cc4b0c888845206fb3f38906555', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '70d37fe4cd8558ce3a7e05f84fd53545', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9e7d40c3fb74273bd44f453b0baaac63', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'aadb6872455a14c0eef5d7a2744cf5b8', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '57a04e6b2304a2317c15b48af4500dda', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e7877f880badd89e625f85e2acdd0aaa', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f497958c8bfcef474ed1a865e8728fd0', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '06addc0d481db2afcbec0630866a943e', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '67e00a5aaa42a2c3084a573ed27b023e', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:38:43', '2015-03-22 04:38:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:38:43', '2015-03-22 04:38:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:38:43', '2015-03-22 04:38:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4713a0715628f1712bc886da08c6e2ea', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f58daf18221df26b4c3d8fb6dfe9499c', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '370e2c0d21a97a527ef0840eff7067b2', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd4e74017462c33c271eef0c16f4d0da3', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4e7e4c5e29b891a6c4236640e93efb23', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fdccb11a61a88c85a92fdecc5b6c5a3d', '2015-03-22 04:38:43', '2015-03-22 04:38:43', 410780858)  (19.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:38:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:38:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:38:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:38:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:38:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:38:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:38:43 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:38:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:38:43 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:38:43 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:38:43 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:38:43 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '50972a43e3aa7ed07345853ebc190c23', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c7c75391501625e34c2478431f4dd705', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2b78d5231ae5fc190bc06a59b4391b1c', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '34507a45247d543ae7bdf368b87ae652', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '85f9171473e881eb55efb1f97f6c23b9', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c3dd3bfab71a672c53af7b75ad0b1cb', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '13db1195d7de7d79d5532671b7fa4ea8', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7cd08aea78ceed1e81894e68bc21108d', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '80cb3a76139c9be7259145dc82ca42f7', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7666b204c1eeea7111c198742d7a610d', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b9796b7183e51adc54269c610a7cf6cd', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd5cd538737be7532939af430a64fb1b5', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c61780400c97ac770726df0366a38005', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 1053526200) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a9579cad82c5f4f7d878ea5fbf957a23', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c1949e70fd11024641db80f71de6fc0e', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:39:27', '2015-03-22 04:39:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:39:27', '2015-03-22 04:39:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:39:27', '2015-03-22 04:39:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2f44714eed5c94b391eea032e6293af4', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '88e525a4127f307ad1c2dbadafcd72fb', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9521a99577f2ee92b3376cc6175b60f0', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fbd278333ec9dd6abab83b4e6bcffcc7', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '48b7942e5ce6d9c20541f7c6c23bf576', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '29589da5edbb0d7028afe661bddc2c07', '2015-03-22 04:39:27', '2015-03-22 04:39:27', 410780858)  (17.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:39:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:39:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:39:27 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:39:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:39:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:39:27 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:39:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:39:27 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:39:27 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:39:27 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:39:27 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.4ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f197368ea7c014c9e04ef69f2d544ca5', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2b8c5001c3eb5354385be513f9198c73', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f36d99b028360202e54e32721d662353', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '267ca9af7a8ec8322585cf7ddae00b9c', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4bdddcb654b204f13d5be391a905ce85', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '04c7d9e1a86a6c6d86d32cf50282a6de', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '033d3244f2a3628e750a49d79fe6e0f4', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '79c2b31bb7c29c5adc5a9678eb937b43', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd09141389a3e1ab13c43f44be96a96c3', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '35518cc3a6f596587bc9dc9001577d98', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8ae01e876249560c1308927516b58ab5', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4d7ce7721954510412374f6d184c637e', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b0f6e473dd0bf81a6305480e6a53fb78', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6dc3c7f4e4960c3c4dd68369f1f37ea5', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '271c215671404690bb624119c378ed33', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:40:15', '2015-03-22 04:40:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:40:15', '2015-03-22 04:40:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:40:15', '2015-03-22 04:40:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2a1a0740bf9b2bbbc2636c0a9460d78c', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '81005135a2cd168ceb87f2749f57643c', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd363d140f13b9bf6e2204067357c70c6', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9ff442a3fad5047c3391adfb37ca7b86', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '93b7e47c6257dd31a5957bd3849e9872', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3d78b7fef6ecea72c48a56c24cb50344', '2015-03-22 04:40:15', '2015-03-22 04:40:15', 410780858)  (14.8ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:40:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:40:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:40:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:40:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:40:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:40:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:40:15 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:40:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:40:15 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:40:15 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:40:15 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:40:15 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 396855775, 'Address', 1057142427) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c79a5e04d59a6b870a3948f249e79e59', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'acd1446c4e1e0126d9663897cbdf7fbd', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '511b709bdeb91bb886175ad6f53d9dca', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '84ade5b48846468ff36aebbd09b73c0e', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8de952f22236f6805801a36f96865b67', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'af2474166671b8e15e99d55dbe7766a5', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '819005d6e062722b00c8418f9c7bd0d9', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b7dcb5b879b12c35c6774b8f46b730a6', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '246cfcfc7d7af9663994fc1e2846476b', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd7b6d94c4851702504d419838bdd6d43', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '41a3e4765af76f52c0b95128f2cafc3b', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '14604ec93353ed01368ccc3d4e291c27', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bfe3767d283e4cf71771bd0709d24d16', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd25317d1c0937fb03f2553bd4c954ce3', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1b6376f3f127661b2f30a9c89f0c6021', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:43:21', '2015-03-22 04:43:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:43:21', '2015-03-22 04:43:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:43:21', '2015-03-22 04:43:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '01e7a9a1388b4cb94503970749f4a585', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fb80dbc6d8d2ec9911c38ad797f2ee9c', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f015489a7d91b8d9e9a1ff2600c8dad3', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7a108ef6abf180f70508d9a5736251d2', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a4ef442886b2686c1717a36ef07f2417', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fad7bbf14d23240194f5d8b8f8a86b8d', '2015-03-22 04:43:21', '2015-03-22 04:43:21', 410780858)  (29.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:43:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:43:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:43:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:43:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:43:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:43:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:43:21 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:43:21 UTC +00:00]] SQL (0.3ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:43:21 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:43:21 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:43:21 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:43:21 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3da0fdddefb908f98eacb246a93fa8cb', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0ca36d994801c63ec8ef49d560f1f1f5', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '98546b26697565da3e0aabec764b0a70', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '64e53efaded4e1226770fa6e0ae5b1b8', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f0b5bcd95d61357a79d7202102a1c1cb', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a794bbf792ccb04ba598121836697ba4', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '07cab8730224d969731d47f4340ced8d', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a66573b620b279a6c336c7dcc39ea332', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '27510c221a2b98576a20923b78deaf33', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2644904a4c4409b456fb04ac4bf8c37d', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cc81d9a4626ce532b784ef156a7403c4', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd5e1e02f1a05e9b4726425b1ec424b21', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd30b1b386ae57e83fd124260dc04f23e', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '043077268505572de8577eb5c4ec8b54', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 689259936) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f699c11678c45a822d94544713f51171', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:43:51', '2015-03-22 04:43:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:43:51', '2015-03-22 04:43:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:43:51', '2015-03-22 04:43:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8878f7debf3ca75fd19c00897bd56c1b', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '902dff53d33fe0d836587947fd30e3bd', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4bcf24851bc5b0926d27e2217ca4a4f4', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5be781e701722d77e267de14d025003e', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1d31bb94dfcbd0705b96c96523a6ca56', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2bcaa237db655feab7e20cf865d0e80c', '2015-03-22 04:43:51', '2015-03-22 04:43:51', 410780858)  (23.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:43:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:43:51 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:43:51 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:43:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:43:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:43:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:43:51 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:43:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:43:51 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:43:51 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:43:51 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:43:51 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5df3847e47244bcdec5bad272cff6d5d', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '72c582d55fd00b60d6c3f8b6416271a2', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '109687f9e7675f1fdc782ba747767be6', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b6b9bbc34c202dda0c78f888cd121446', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5811241f85236481642aad5ab2f27af2', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd33772f00b9a021cb1e7e1652a68dcac', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 1032612456) Fixture Delete (0.3ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7ff157d60750cdfbf6954d4dd395421c', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fb1ab47d83ecc986801b135b61c33d0c', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'aeea5fcf0f12b77bf04f2b50cbea3964', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '83117a575cac70e5211032f871c8b7b8', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '775ecdece940521adf0d30db46107bee', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '108ea22619899306d26361aeee5f6b2a', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '00ca0dc6495951d62a725004e3b60199', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4e2c7acfed62fd35bdaf7d6309019d23', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '93edb8c807c0ab38f0db518bd71f0229', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:44:15', '2015-03-22 04:44:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:44:15', '2015-03-22 04:44:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:44:15', '2015-03-22 04:44:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '80ed857a398514751ce3fbc47c50d433', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2f8709b42e76ac0cd836e2324beb8116', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '779b2ce164fb5e2dbaacf6306f7f1d7d', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6c5900c17bcfc802e1901229458d0693', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f96f63176feed0c640bf4dfa2ee65058', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cea643a6902861ba3da52a60d754796b', '2015-03-22 04:44:15', '2015-03-22 04:44:15', 410780858)  (32.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:44:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:44:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:44:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:44:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:44:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:44:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:44:15 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:44:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:44:15 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:44:15 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:44:15 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:44:15 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7a5c7839a31b789115e9bf595d551dd1', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8309ee860bc0e7225e0b548cb44d383d', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '55810c421f17237fb5972828714c2cf6', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ac0d0e7629a46551ddc76dc2ca3755b7', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4b40f1b78f5bdc676f8174b5e4bdadb2', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2e11278896edab1fae76419759a0e06a', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 1032612456) Fixture Delete (0.3ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '36517a6abab9e83d4a2222b1107fa9a4', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6881383338d67c528055f86e27a4a7b9', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b136e92e0929ff7317dc90808b6c912c', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e739eccbb3e960326ff596a33e74b756', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 343404421) Fixture Insert (0.3ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1de2858f8f03263486d3a95a0af8130a', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fd35b4e62abb092e15d03435180baf56', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '13e9f592d934f9e0a8143ec01680e090', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '197de37b6ebfc7522dbcebddf657d1a0', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1d9fc7a4ef073c43ace5849d3a7a2682', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:49:18', '2015-03-22 04:49:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:49:18', '2015-03-22 04:49:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:49:18', '2015-03-22 04:49:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1f512f376b86fbed0ee24e42f41879bf', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '975cfa7c859aa980ac0db8f458c1565a', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dc6ec7446147fb26139d40e70a0eee96', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'aa72434fce61c459f4b5999070058efd', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '62ec72c16ada9ba865726363ea0b75f7', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b97a1efe32a7545e5646c843ba32e506', '2015-03-22 04:49:18', '2015-03-22 04:49:18', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:49:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:49:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:49:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:49:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:49:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:49:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:49:18 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:49:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:49:18 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:49:18 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:49:18 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:49:18 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:49:51', '2015-03-22 04:49:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:49:51', '2015-03-22 04:49:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:49:51', '2015-03-22 04:49:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:49:51', '2015-03-22 04:49:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:49:51', '2015-03-22 04:49:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 04:49:51', '2015-03-22 04:49:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8b0707eb6aa92e2453882d22bc317252', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0f3b45d0b6354d2751ac3db4c586e62b', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '81285000994f1461c5d52e52993dc41e', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd7c47203c8ed34e0dbf616a53844421f', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6afd1b04beb58d2d46a9d4084ac07ec3', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e49fc82109a822539dab5942a355fdbd', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1dbb199d97d6485992353f0abb3d12d3', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7d912907d7e8885a6a9b33c8d1d955c7', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5fccc567d378935136fdbe1dcaa1abe2', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'afce4c08742551335d8e83d9e6972f9e', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e4d57c0292c064622aef4904cd41a002', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '259c32d0b8d5bd557b3ce6bcd398a665', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2c6ca5c95f16f3c26c095984494bf65d', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ef95bdc1c785fb543de96a11f16cec9f', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c938f98b2dc22493fc1f3bda415daefb', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:49:52', '2015-03-22 04:49:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:49:52', '2015-03-22 04:49:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 04:49:52', '2015-03-22 04:49:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b0f85d34083e31d1bd8525c60bc1d1c5', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2eb19ad7a724647c43e84b96ef688428', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ea9b6c2e5750b305d194050caed788c3', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e6c9dde47aa9996893352b084198e4e5', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '166202dd0d2cc520d5859dc3648ab22c', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '247366ef80bab9711dd7f0f4eeac3505', '2015-03-22 04:49:52', '2015-03-22 04:49:52', 410780858)  (24.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:49:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:49:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:49:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 04:49:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:49:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 04:49:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:49:52 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 04:49:52 UTC +00:00]] SQL (0.3ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 04:49:52 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:49:52 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 04:49:52 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 04:49:52 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.2ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.3ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0004_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0007_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0010_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (1.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b0f7ebcd63247228bd55a63cd3db19ca', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1e7c9f0ce223fc5d4879dc17814943d1', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '57b347505d6f61ad929e7d5062a4802d', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd1d7d7db521399d4448a67c1fa51b3e7', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e5f4cb8bffd9b3f56b7e606c5fed8647', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '89647d8d918b8b511b9a1ba527c1292f', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 1032612456) Fixture Delete (0.2ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c598a5c2fa51e33b60daaa35a2d3df90', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4d95e15c6b3146c1f4bab081aeecb3e1', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c1ab7d4280de8aa0d691fba7d68e00bb', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd160b0fcb9a9f0efda3354215b47ad8d', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fcb750cbb316bec4a772031e0c3bbc87', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '366d7ef83311fe2c3650d7d184316bf3', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 483796712) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a375c1d1826148f193fd030838bcc5e7', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ed4e02c611689ef90bc9dfd39fcb2c3b', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 689259936) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '58336f12588aaf9238a4b056ffe50fef', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.3ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:30:01', '2015-03-22 19:30:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:30:01', '2015-03-22 19:30:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:30:01', '2015-03-22 19:30:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '700f221dac129fe8c3134adb34953abd', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e87924e8a743c3511ebfb25e3ceefb16', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd3f0c1294993df3db68840e294d91eaf', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7f660875b8cfc56e2de729e0433826d1', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '35304626cd08620458b6d119656271df', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '62b1a27b5fcc32609f9f3c64d9da4a6d', '2015-03-22 19:30:01', '2015-03-22 19:30:01', 410780858)  (24.7ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:30:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:30:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:30:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:30:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:30:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:30:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:30:01 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:30:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:30:01 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:30:01 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:30:01 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:30:01 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.4ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7d60ccc9a33d4b79d48fe91fb4ec7128', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '486f77d248781e7efebae65ba098f89b', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '55739cf232bc248c9a7deb084a4e2515', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd32860fc0c034bd3d3e01c83732edecf', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5782f2705247d1fcf72736c7feaff66e', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ec5357cc911aad4dc4be4513e6204d36', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.4ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '19c9f9aba62c05083e71e185e2233715', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5b6a0d57a3b91332df9ed3ce2705f983', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cb9c9b0158927daa05256cafc4d12aa2', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '35c1b66ef329a33c539c0dd7814969cd', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a0479ffe8b4a4a1ab644cc7f8bc0c5f8', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9a115111d810ad2fa73a7b2f6a9ab218', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '46ba9abeb95747dd8e3a9ee0d2c44d1d', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '16bb46c66b5f4da5a6ce8924596832bc', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ed449d5b582e7a554836902198abbf3f', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:30:59', '2015-03-22 19:30:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:30:59', '2015-03-22 19:30:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:30:59', '2015-03-22 19:30:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '28449686ff8039332a27064520406f58', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'dd13db1ad43bc10034c30c4712658126', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '22ed03c9343c31455048d8c6589b7831', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3fb7e8fb97cac49a52597d2e424f24ec', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8571b38e00ec7005883b18d6aea3ce87', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3a11bce61d824d952e752b66d122deeb', '2015-03-22 19:30:59', '2015-03-22 19:30:59', 410780858)  (16.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:30:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:30:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:30:59 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:30:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:30:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:30:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:30:59 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:30:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:30:59 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:30:59 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:30:59 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:30:59 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 396855775, 'Address', 1057142427) Fixture Insert (0.5ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a735d38310e536650ab8809eee3c01db', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7e0a2a4a537ec4aa0c7a5818f0b9809d', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f994fb1a198f3577a3027f65ce7faab4', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f383e24e64c6cf02127d736d1d183451', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b99fb2e9ac7a7fb072b0f029042462ea', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0aaf94045054db482c1ae84ae7a1233', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.4ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0320af9ff9786f6d8dab917e615f5501', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a3c6cc211cedf6d58c1eedf61ebf7739', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '425f8255bfe11a51d14a476fc4892d31', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.5ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.4ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '28ca70732d3569a61aa5aba61278a5a6', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7f7ab4e08a96a72d456336cb242e4f54', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '48200efb99957992f38f596b8c668e39', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd35ad84387b65c2905766b11c56b7301', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f5e317cba3d5043774399dad929494d0', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '19122471f69fe05d4fceeecefa272778', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:31:34', '2015-03-22 19:31:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:31:34', '2015-03-22 19:31:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:31:34', '2015-03-22 19:31:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd7b40d95b83bdcd310ba538926617d00', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '96f4899f5d9d46041a5fefb5cc1ecd6b', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c0660db36ae3177dd64470c7dc1dfb21', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3f0f4bfb3a8625f57d65b37c0eb01a14', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '79c56f68fc105670f44f79dbd8f61189', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '44b2d44be68a07dc405ad313c30114c8', '2015-03-22 19:31:34', '2015-03-22 19:31:34', 410780858)  (22.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:31:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:31:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:31:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:31:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:31:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:31:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:31:34 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:31:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:31:34 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:31:34 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:31:34 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:31:34 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a04db5813fb6a9384472257cd6e30699', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5a983b7cb1b1809be86eda7948335447', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b4f46bfbdeeb78e38d167d80f29cec89', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '45039f4a9ac93d34d87fd112b74ffd03', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c7c95029ac95b6502fd269b3c5550918', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3888393debc48150686767e3c527c7ba', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9521a2cb657ac581cf8450ba1ae0eb37', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e5cd6fe013fd4de601575cc9b7b1a9ae', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '67e208aa8d8d82c6fdfb83d946f77bb0', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 966629572) Fixture Delete (0.3ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b0053de27d42cd950db24548a50be1a3', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8ddf7247ed2abbc32c8858a1ddcab30d', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd017fd01795fc73589d5a40c195dee4e', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd82e24386eb54a97977a86662c13c5aa', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c802f59f45d73d105bc47afb271b21bb', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '386f41f2eb598c1f5967f5abcda39ef3', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:34:22', '2015-03-22 19:34:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:34:22', '2015-03-22 19:34:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:34:22', '2015-03-22 19:34:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e955baa33745ab2bc9c9b528eb1bd06a', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2bd7dc9eaa43c4ead9fc666b921c793d', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '50868d4a4d784a880ae47d5598603f02', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd0c3bb8f9a49a2e952fdbbb3503b7f34', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bfbc148443a19db72662f7d0aa82846a', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c8406c2d8ebc7946dbe019427cc6627f', '2015-03-22 19:34:22', '2015-03-22 19:34:22', 410780858)  (15.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:34:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:34:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:34:22 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:34:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:34:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:34:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:34:22 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:34:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:34:22 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:34:22 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:34:22 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:34:22 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id -------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:36:02', '2015-03-22 19:36:02', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:36:02', '2015-03-22 19:36:02', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:36:02', '2015-03-22 19:36:02', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:36:02', '2015-03-22 19:36:02', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:36:02', '2015-03-22 19:36:02', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:36:02', '2015-03-22 19:36:02', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9816754226e83f90da9c4cdec870b9ff', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 761411935) Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4f32c1c6f2b31f052777fe81a02723ba', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '00d605ff1f9028725681d9304bd49dfb', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8c38bbf51fea19f5aa71753ca63b6c1', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '16329a23fbbc502e6430d1d3df8d8cec', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2583f609b9b76697de713059133d1550', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4ea7c317f911a5e70b8e067c4e0fdeae', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9b132a07910f362c650af6c32c6b0fef', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7e595f1d6907365e96a87a8d120d4ba4', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 438300604, 336964236, 849808553) Fixture Insert (0.3ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c8af8dba3c6160249dd289661727c19e', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b915f97967cc1337935114cc2ac0e51a', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4137f566824941b135de8eb2d041dbe7', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9916dc87b18b902bacc484c63f2fbf5d', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f16bba086340ed6b4ad61c737a15ec89', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '75e61944371a3729c439266d1f9e66ab', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:36:03', '2015-03-22 19:36:03', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:36:03', '2015-03-22 19:36:03', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:36:03', '2015-03-22 19:36:03', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd6d9de0a2fb4ed675cec5f1b247125c7', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'dd216e003729acebff673dc7547f4307', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f6b24284cbdc231814f84a1d52d21cf6', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2f6b54e885230a896a831a724f0189d1', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8785fa88aec10f1c841e158907fde72e', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9899ad8d4bdd39963085cda78bcf2058', '2015-03-22 19:36:03', '2015-03-22 19:36:03', 410780858)  (25.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:36:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:36:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:36:03 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:36:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:36:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:36:03 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:36:03 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:36:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:36:03 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:36:03 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:36:03 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:36:03 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd4a408ee43c03172022372433f9af1c5', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b5ea317010261a6ef83c0b2d81a2be87', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6ac9bcf9b7b051b96becfa89d94ba24d', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b3d7ccb014918f0a2b4d2aad1e7cdcfa', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cf5f866863afe24c593747c4ab3ab74a', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 971855462) Fixture Insert (0.4ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3187a85f115f483d1f39558be7c65c9b', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '20511b8d12a616e97ba3ffbb974db8bb', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '097f3e62ec1b821bc0f35cfa2fd95c3f', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '55e342cf60ec2d42014b83595966dc25', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ad7d32ae304e532e7ab869aa7c1ae6ee', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd5c1071a23f08f9f8d8d905ce34a9598', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e6a90c8bc7c3f0aae0453ca9c3e0d705', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '90ee9e3158fcf93f844b9e37c77fe70d', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a7df1145bae671b0ed48a695f37eaabf', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '628f85d513a23b480fcb7cb6bf25dc8b', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:48:41', '2015-03-22 19:48:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:48:41', '2015-03-22 19:48:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:48:41', '2015-03-22 19:48:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 421646738, 336964236) Fixture Delete (0.4ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '298796b72e2df08b509a1d7a7a993132', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '654ab7cae8ab2291bdb0dad4e3b1fd58', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7a199219925600d2b03ce65519cd10d6', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1b280c163df81196f99779d4a38bb63b', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '13e97e901582125e335771eb1effe13e', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e405d817f3f04908623d3d0fb001863d', '2015-03-22 19:48:41', '2015-03-22 19:48:41', 410780858)  (13.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:48:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:48:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:48:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:48:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:48:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:48:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:48:41 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:48:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:48:41 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:48:41 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:48:41 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:48:41 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 576421514, 'Address', 761411935) Fixture Insert (0.4ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 106545386, 'Address', 633598004) Fixture Insert (0.4ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '609fa959e064d0881e644f5f6f8329b2', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd4cf0f2a754d1763c33613d5410d9bfb', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8971dd13872849022e0ac80decc6eb98', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 633598004) Fixture Delete (0.4ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '361c21f3a1802f27592338c0e9276c7e', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '02b7ffb2a46d8d168480c94caea828ab', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ed2225731285874b4ab88bb907150b11', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'aec0378f88cc9ea11ee71bcd89fd5b8f', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd610b26526017267d11fc95b225e05db', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4c6d03712b61baad5bede1a06009644d', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '45450c06e7e389ffdbb7d7734ca6a6c7', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a7bbb7b20f03805cf3e6a80fdf97c95b', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7d15bccbe94510b79adbc033a1912824', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '86d39b2f6592a25f8afaa5ed89c405ee', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9ea57d107940b875f681519e5af99952', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '285d3933b8b09f8c69b554161878dd86', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:49:44', '2015-03-22 19:49:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:49:44', '2015-03-22 19:49:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:49:44', '2015-03-22 19:49:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ceade18d8a34a1aa5b471f4ae9ffdcd3', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2683173aee124ecabfe6186b99d1eaf9', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5c31a0d12c2dcc7b439afa1735175eca', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a8586cdb575e7417fead1cc4e2e43022', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '08286efa94dab0121335c9b2851fa430', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a8ba7d67b6d14b9039b73ffb393882c8', '2015-03-22 19:49:44', '2015-03-22 19:49:44', 410780858)  (15.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:49:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:49:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:49:44 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:49:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:49:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:49:44 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:49:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:49:44 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:49:44 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:49:44 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:49:44 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7de9a0433a50d5f57efc7602ba7070a1', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cf50ed15a1ca3c7d3ca779b3f8a52d35', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c9b9bd382f53ba43831d53939b0f39f6', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0f6789c05d322528efc6e29a07f85804', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc4c555ec87d4cc2a7cad3bb2f462f0f', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'acf1d431f5f283438ba5985fdf6371a8', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b26d5421b5bf9bc2813ee1cce54f8958', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '60f771ad533e15f846a1ea9737de8865', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9383597c43af39fe23ca473f7b4c3f63', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '83ce9a15c42cd6deac882e2066b7b9e0', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f03e92c1db345fa1e2e6653f96aa0367', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '56ba02d78a6911d1e1333771781f5ec7', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '28cfd1d76036b7b1a699a8117d6604df', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fd54dd682f55ccce833f9da122538543', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '61550246aa73081a9cb3a6c021ca4a7c', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:51:37', '2015-03-22 19:51:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:51:37', '2015-03-22 19:51:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:51:37', '2015-03-22 19:51:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f09b6f2f6fc0b81cc02e7a27a51311ea', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7f3530e6c31c7aef9d15ad4e5b720717', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1f72240d5165ceb408d176f4ae87bd8f', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '02975662302569a057b838adc8d1a92b', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '254d33cf056424804d725db800fbbe0f', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6a2a6c70ca65b298fc62d718dc252165', '2015-03-22 19:51:37', '2015-03-22 19:51:37', 410780858)  (26.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:51:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:51:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:51:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:51:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:51:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:51:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:51:37 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:51:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:51:37 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:51:37 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:51:37 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:51:37 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (3.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0107a71abf7c937a190bc651380c6122', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5d38a8c30cd83dad003bd25f2f98bbe4', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c7e3e9f05195d9ea06a4904c9b6c05fb', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '720cd810d593d6c7f8b188468f9e73bb', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '25903f7f2c283add350eb4e2bbb7ecb5', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e09500de20355da77b620704cffa803f', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '37609d839ce8919204359d317b8cd7d3', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0889d9d7501f493072a0997fb482a3d1', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6e72ddd32521b2a7734c01154f62d1e6', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4725a16e3818019d32627a8c8ac24f9e', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ce76f88d863f1b6de74a43cd91e817ee', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '60d000a361277f5b8a0caff53c25ec31', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 483796712) Fixture Delete (0.3ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7c4e36ab9378fc45123035f2bb81d07d', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'df55b96979d76a46241c0644f43aa88d', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2ab2b95e671de352c164f1221cbdd53e', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:51:55', '2015-03-22 19:51:55', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:51:55', '2015-03-22 19:51:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:51:55', '2015-03-22 19:51:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6e97c391620fa1085dbf2a4a0990b133', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c81f2ae45ce496105a7ae3974397aca5', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd9f43c056ff4725a2ea866a5a92a5576', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a268acf87e37bed01e2f9afb85eed290', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3d1000f9b93ba35124858e4609c8269d', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7f836abd738571e9fb3770f2f35690d4', '2015-03-22 19:51:55', '2015-03-22 19:51:55', 410780858)  (14.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:51:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:51:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:51:55 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:51:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:51:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:51:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:51:55 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:51:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:51:55 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:51:55 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:51:55 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:51:55 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a2e79d1b66f1a3907fe1c1ba1e4cd60b', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8084c6a263370f0d76795c2f31fdf385', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1981f066d78fd5ba142f9eb23404f9ec', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '302dcb8eda7ec037c325c45b6543a5fb', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cef57a757c5736cbf136c288b5dd5fbc', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f9800bc3dfe97e36a2f09ff6c6539177', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '386453b53ca6fe3ded91164d6b9aedd1', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '016a3d25d28918478a3371342760f8a8', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b98ba047939275b4820876c30b88b9f8', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4f37cd0ac5f7560bcb47790bb7955d9a', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5fbdeb065196a76366057ba517064df9', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '434a23a207ca51db44286ad8a88e08cd', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '128ceb15c03fea1578e6511ba0bc31de', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '073379f4f8581485f77aa101fb672708', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b3b9dd90558e6ca9d9237239edf1cec5', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:54:06', '2015-03-22 19:54:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:54:06', '2015-03-22 19:54:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:54:06', '2015-03-22 19:54:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ae4bda9d106e32d5671ed3e3db2a616c', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2dcf3a12b81a9e5bf5fa9584cc9963b5', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '56e49876006c247f52f492c0ea857b76', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '18ce9ebb9cebcab70b4738dfe3e42ad9', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bf6ae87e95cb58c9aa867c1f0fc67444', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f5ec89e6222933265fff1d2ce8682407', '2015-03-22 19:54:06', '2015-03-22 19:54:06', 410780858)  (19.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:54:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:54:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:54:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:54:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:54:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:54:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:54:06 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:54:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:54:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:54:06 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:54:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:54:06 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '57dd3b2d0567fff6b4d6d39e988709bb', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8b254b7e7715783272f45bfaced0f1f1', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ed663588b0f75161c07add7e16b3bc26', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'af45d5500194e18652648e09408245cf', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '59dab78b14a618c3e4f1e90ca17c0dc2', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e47bbbc57fec138619e440e3be1c7a17', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9da53ce7a5f2f4e953f7ad3c9ea0d903', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '364ebefd6a654618edc74417bd52a382', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '791bfd194fd8725fd653a5e9cbccac8d', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b7b53686fcadb347f356a9d3bd2891a8', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fccbbd6558c22c5302834bee6822884e', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4e533a96f26ce2989caea8dfaeb447f9', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4527de884bd3cf0b56bfc784b2906e9f', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1991b4abb54d3249f99f3fb6edb38cc7', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '556499436ca18e11831389632e0cbfbb', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:54:22', '2015-03-22 19:54:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:54:22', '2015-03-22 19:54:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:54:22', '2015-03-22 19:54:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '78e5ed61ddf4b3642d597175de2056c9', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e77c8f9e84beb2cdf509e84309a132a4', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f7cf3e39dfe813ca6371dc4fac657498', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2a140b82a82c809f21f873a8fe601be3', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2d2c84e32ff54fbe50af6123a5989f3c', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bbe545e4901d724846548015d3282af5', '2015-03-22 19:54:22', '2015-03-22 19:54:22', 410780858)  (13.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:54:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:54:22 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:54:22 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:54:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:54:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:54:22 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:54:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:54:22 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:54:22 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:54:22 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:54:22 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.4ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '827ca06389c3dfa69d06a275e62102cf', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'db3763f6a699d95fce08d34cf6aa0597', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0d8f647cace1ae523d33898732f7d4bf', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '352c4e2278c253ece996dcf6caa91585', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b8071625a88572a27dd605c516c4eb73', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '94ac6582534795586ddd06071148cba2', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '22ff449e9d85c544d72cdc5c1e19a079', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '62f8271eb6109ad38fa2de3d4f16503e', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '97b7c6568cb0582d3019c2879a6c0ba6', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '72c145d5dde8e85fe83ee9e30b17f5a2', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8794d837cc1c2c78bfefb9dd519c6837', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '47b4b043b11fd9a4e9638c605019e6aa', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8fb212602c9c5273c6c9b9fe8a2ac9e0', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e23484007cb715c5ca33d82d071e555c', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '69823e856a4f8ac927cd6965d784a3e4', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:58:43', '2015-03-22 19:58:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:58:43', '2015-03-22 19:58:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:58:43', '2015-03-22 19:58:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6e2643ba90b104ac0af9586c4e12e537', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '61543e05051bf87629c2665db5d8f90c', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0e8aab0cc8c9b9023bec5374b3a1c0c8', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'af9bd1b07149a9d10e33c3fe806595c0', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '000bdabef8df4b5e0201f38233fb76e1', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f8b33052c67116aa27f2689dd4ea2e54', '2015-03-22 19:58:43', '2015-03-22 19:58:43', 410780858)  (22.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:58:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:58:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:58:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:58:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:58:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:58:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:58:43 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:58:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:58:43 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:58:43 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:58:43 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:58:43 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 396855775, 'Address', 1057142427) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '32306d8d5348813d7e94ade38cff38bd', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7b06cca7a7256fb5bd8fee9657f14e55', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '688fa9bd9831f702e7f9b24f217d032f', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ab6a1f8b99b6eb2b60d5b420de836424', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '74ca28f82804ffb4752a8ac940d2dff9', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 971855462) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd23cf264b11bd888a3468efb2340d9d9', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 1032612456) Fixture Delete (0.3ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1ef6fa4704d6dcf1bf94116592e2cc3b', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '14720d4f545e890c1a60d75490cd81dd', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cf1331d6531265ef94e8e5c2c932db2f', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7945090b875f1735738db5b632e29608', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f285572b70b70d2c79392989a0c7e13e', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c942a2254ace0c8d57b078d201d8ea14', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '078f5a303ba97461921f773d8932cb62', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0703bca5756dac0b1d52b13f8a9c5aab', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '380ded346eaf6189819ea18dd917e5fc', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:59:03', '2015-03-22 19:59:03', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:59:03', '2015-03-22 19:59:03', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 19:59:03', '2015-03-22 19:59:03', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6f583fdb8dc139328d4091f36cd75625', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7edac64b09422e0b09342400af9fb12d', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8cff05f75a4350e923641ff11df97f1f', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e2ccf2495c23f7882a5ae3d366640038', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '529e6b8cec8e3631a58b208e19940c6d', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b90044282d01833f16fc688650c6ccb2', '2015-03-22 19:59:03', '2015-03-22 19:59:03', 410780858)  (32.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:59:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:59:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:59:03 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 19:59:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:59:03 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 19:59:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:59:03 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 19:59:03 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 19:59:03 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:59:03 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 19:59:03 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 19:59:03 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.8ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '741337997142f7677e2cbeef165b49ad', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0cee93b159755c82368ee24add984932', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0773ce2cafb835f30806ea1ee54baae9', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.5ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '39232125d5e3ba39b69e5e6332fdcf66', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a1dae4889c26a93deed674e7e70cba5e', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '503367f801f6d8975837d2bbaff71572', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f2720822d8ac1ac3483743883c7ac675', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f4b26af3bf100aa6bac1df861452e692', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7e4476220d10f4633b23cc657d5e4517', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd5b758015d1f3dbfdbe2ed06e62a945c', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '27292b4785e1dc1d4cf60cc6448ed35d', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7f672219099f17b86e3e361c30ba8eca', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 483796712) Fixture Delete (0.4ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e3706939dae9a3b082c82cd12cfcf955', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '742edc2c5cc42b65d1c320da0913cc9a', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5958a72105979cd9af9139e0bed9425c', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:01:40', '2015-03-22 20:01:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:01:40', '2015-03-22 20:01:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:01:40', '2015-03-22 20:01:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '64cac1c4207f3ddc1c1a250c0c3a70a1', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cb7825f8360673d75b77f08f05f335cf', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0aa39055426b1418c4139815736c88f1', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '164539a56bb78681cf7c64d508836bf6', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'caa5d9cc6aa4395e96a00b3a59689ca7', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '25b32ca3ade90b487420dcd4153ff9b0', '2015-03-22 20:01:40', '2015-03-22 20:01:40', 410780858)  (27.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:01:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:01:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:01:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 20:01:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:01:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:01:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:01:40 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 20:01:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:01:40 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:01:40 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 20:01:40 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:01:40 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.9ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb69b5adb0a337f45000a54a7a0c89f6', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'da6753db55427cfaec691315c9982c6f', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cadf811a72526aa4196e32fbec8b0cea', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '31d7271bac6cf5a425b92b50ee7119cd', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '15cac02b688ca6a3fd0431b0efe40639', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'acf6ef32da784314faab5b501987c378', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8f46e4478717608386a1560af68140e7', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9a5355c9048ce377dadae202e3bf4666', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '542eab5169e9f8f5e2696b475138830d', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3d366e5b668776ff9a0bf81e57c0ae62', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ad4abb6002bac9f8cbdb8f86bf1636cb', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '91db425632ddd1b39c2681607c4d8a87', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a67610b0103d6acdd7e9681d4e9bf683', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fd1fcba19ef46744d5b1e69527a1f492', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3499340e01fa1393a9aae5db2dce6d82', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:05:32', '2015-03-22 20:05:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:05:32', '2015-03-22 20:05:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:05:32', '2015-03-22 20:05:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f0bdf62c52a19166dc16c558a0f010fe', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '43586d0b7da9fef1ac7c7fa9c4c1139a', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5aeaec3fcb5725b21c489c9be596e94e', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd87f3d640e4931788706de0e72712cbc', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '58f221ba32d40ef00a6fdcaa90a9396c', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4b72a0fbf6e683971378e353eddf4550', '2015-03-22 20:05:32', '2015-03-22 20:05:32', 410780858)  (13.5ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:05:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:05:32 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:05:32 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 20:05:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:05:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:05:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:05:32 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 20:05:32 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:05:32 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:05:32 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 20:05:32 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:05:32 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f3496e896179af2965affd2f346c70a3', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '86e797e2dfa8e75ca3a3cb47063af3b3', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa66633aee627837ab235083f6c07853', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cd0bdd5a68615189349e7e0f94dc26a0', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '428ace7b875ca8d6893df48dd034dae0', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5f3cfe0f3ddd96e7a8b3353752b11fcf', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '10ca52a945b716bcabc29e7ca979b389', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ec41697b4d7b9c9148b1787f2e54ae3c', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '003c26acf2e0d116a7852996e20b1848', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd90a2db91725e27e003cbac009b91fe8', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e0f84dc91dac52a5787907c6603f9abc', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '580467220119d599e0735695a8cabb4a', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'be35441e9a56a7df0453f851a1b48b4d', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a13bd50c94108a7b161a96c9ff255aa1', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c4b99edae2a32579d250ed2585099e0f', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:20:13', '2015-03-22 20:20:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:20:13', '2015-03-22 20:20:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:20:13', '2015-03-22 20:20:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ae017c833d6dfd9396118519adb6edea', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ab1636a70c348f0de5bd97b80a7e368f', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8d99f9931e05a7af0e3c49a128dbb8ca', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9a3773ebe4b170b62222e0440d0f485b', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9a49ebdc8ea7fecbfc0cb351d04aeee5', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '316b6feb5890b3c8fda578a935c32424', '2015-03-22 20:20:13', '2015-03-22 20:20:13', 410780858)  (25.7ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:20:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:20:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:20:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 20:20:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:20:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:20:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:20:13 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 20:20:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:20:13 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:20:13 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 20:20:13 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:20:13 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0001_formats name with #format_name --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_adds with :+ --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:21:28', '2015-03-22 20:21:28', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:21:28', '2015-03-22 20:21:28', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:21:28', '2015-03-22 20:21:28', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:21:28', '2015-03-22 20:21:28', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:21:28', '2015-03-22 20:21:28', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:21:28', '2015-03-22 20:21:28', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f33bb4deb8d93fafbab313b0dd726357', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '354516ad3b2d0bb90563fad933e105ec', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b3759ac66c984911cfbcff4da02d0607', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 633598004) Fixture Delete (0.5ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5143f6dbbb1b7d41f5d2d985b2db2949', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c17c19f8f07e9b703fdd61d027779bb6', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5f0c4d478340ac2157c920ce290e00cc', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f6daf87837b7da03eb966f6f222adb03', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '989322ea2cec489dfcc8f65cd8f8546d', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '563bffd843bd0b5cbab1c93666775e7f', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e1ce3ec5d37d8cb838bf1803516c2403', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6f52d45596b8d80de2e95d75fd76acfb', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 102195269) Fixture Insert (0.4ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '31e12b569fa26144eebed868f5112766', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '73854ee6542535a027c3c5aaf415a927', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c3f7a007f50e1640965a4591e79c2be5', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 689259936) Fixture Insert (0.3ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8756954e0fba7bc49441d42b143ed411', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:21:29', '2015-03-22 20:21:29', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:21:29', '2015-03-22 20:21:29', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:21:29', '2015-03-22 20:21:29', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '10924390d585eb925d2c2cffcf13655e', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '73ebccc18493d2cd60f292777dbdc099', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '98d716e4659303dcf761a498e2d4548f', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '294b370b8d6e2e8d007c360fcf89c7c0', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4a666395fab1d5195dac9020a638e01d', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3117d8fcbfc12c6ddbf9b88eb5ff725f', '2015-03-22 20:21:29', '2015-03-22 20:21:29', 410780858)  (24.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:21:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:21:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:21:29 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 20:21:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:21:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:21:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:21:29 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 20:21:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:21:29 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:21:29 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 20:21:29 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:21:29 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0001_formats name with #format_name --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_adds with :+ --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c5eab5d28f272b162853d7970025b5c9', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '05560cf88af49f006778331aae0d0656', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2eec0e4cbbd03e6cb00d6c3f982a31a1', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '859de287bb5d2164036486691fdee3ff', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b364f179b4a2ad41d636867fa58a86a5', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'da5f6d6fd0c72dba9ca9e38a87cd3b6f', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '270d92bc6612073ca70190dba5f62df5', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '843a46e05d0776267375f09739fba12a', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '87dbaf5226b95f6adbf918d9bdd4dc32', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0ee1ee80df3f7522f2c623b1ab481b57', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e7da0926392d056de65eeef5242fe5f9', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '936f78a741f0ddcbee5c9ae32c3ff5e5', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c37460595fc59528d54f477d37fc2554', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aad6057ca930fe1cf7a6450d328e293d', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0e215f051b5fb5db34729ccf1862b4ac', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:22:38', '2015-03-22 20:22:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:22:38', '2015-03-22 20:22:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:22:38', '2015-03-22 20:22:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '722f45c2644baf309405ce7a7773f417', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bcac549519b7018c9cd2e64eb676d5ef', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4d45be3204f01ffd4fac0797fe40774f', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ccae3850167d3af7f807c1f7cd5dea33', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e2e81e4c37272dfa8c9ab14d21b29834', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7de652ae1b02dcda4c1452351f73d6f1', '2015-03-22 20:22:38', '2015-03-22 20:22:38', 410780858)  (23.5ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.8ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:22:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:22:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:22:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 20:22:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:22:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:22:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:22:38 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 20:22:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:22:38 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:22:38 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 20:22:38 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:22:38 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_adds with :+ --------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'db4a4a148a0f38a99b58f829f053a74e', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '89b6afeb0f8be0c39400c12201702ea2', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ab760f5988a512f2ce7b26ae33c75f50', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2b1a4e78d8a6b350afe5318e43e15e48', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '05d713031297e9345684949d06b0013c', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 971855462) Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e721416f052cc10e6b50b27b7028d063', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7ef0ef91006a129368b2765db50e96d4', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b281c8f27e2410b2634087880270af97', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9dd16e52d5d69c9ecd518ad29d0a89de', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 438300604, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 51822084, 336964236, 849808553) Fixture Insert (0.5ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd761be8cd265c4ed66e74a59099dc443', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f1537cb6981748c891a8951aa61bdc43', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5f3d57e1b2b3ee98dfa05d875e3853a2', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '21cbbb61b62b58fb389d971130ea879c', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6161be10b4eea8c7836ce701b295dbef', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 689259936) Fixture Insert (0.5ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7bbf275b7584b9b8e8c072777c498edd', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:23:33', '2015-03-22 20:23:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:23:33', '2015-03-22 20:23:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:23:33', '2015-03-22 20:23:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0846ab988deb739f752dfed408ad4684', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '04b18e8b82abf1c6ba9f96f7dece2d48', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9367182a0dc1536b9cff282587b31b1a', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c0d58f22ae434c9c6cf6da13e8646074', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 819246218) Fixture Insert (0.2ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e71b07db4aa41bc81201b07827b605c0', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bf43ace51006529c19642406b6572597', '2015-03-22 20:23:33', '2015-03-22 20:23:33', 410780858)  (14.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:23:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:23:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:23:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 20:23:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:23:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:23:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:23:34 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 20:23:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:23:34 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:23:34 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 20:23:34 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:23:34 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ec0535d9c99f2076a47f186beea671d8', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '84d533e733b05f051c843f7f98fb01a0', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb1ac6d1a08945b3f5de767f42507bd7', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5bc2fcd8d587af6b1bfe6404bd95ed02', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01bbf05a0261fdf51e09ae65b8f6ea69', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '91b45db588dcb69ff5dae305202fc954', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e8523e1b4009f67af7e37bce5c55bc6d', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f06ba99c4d90a970a9793af4bd82ea66', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '41478bb11be8c4003479b460f10199f6', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4f1be06bbc00c7a88193dc494193ca14', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6ca09a9dcdca73e5070a5dab30d4b351', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8c436238edc2815ff82c2eb2259b81c1', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c9573fc958230f58f3c04a53e80b7e2b', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0454b363cb05dabda1a0e6d1341aff26', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7fd0f6908e22aeae100884a309363abf', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:24:12', '2015-03-22 20:24:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:24:12', '2015-03-22 20:24:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:24:12', '2015-03-22 20:24:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f27f85b0cd76d98508e93989ea7accc9', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '482b0d498eaa1155c9fd877d52196242', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '90e478dfa65ac2ad9331d34168a55a34', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3de8414709725e92a82d53fd9194d16a', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'df1e63033481c4c1f508a788ff70302c', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b39021ccdad251ad5abb09dd21ce89c5', '2015-03-22 20:24:12', '2015-03-22 20:24:12', 410780858)  (24.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:24:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:24:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:24:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 20:24:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:24:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:24:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:24:13 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 20:24:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:24:13 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:24:13 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 20:24:13 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:24:13 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.5ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4ce00a9cd4d3805a9b07ca476fd6c535', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '58b8a23fdc1e6ffe8155c9ba6aca04e4', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4adabc18ad01f37d44dd2af46e8092c7', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8410554626a288989e6802703c2a9ae2', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '105b0fae4412bc909a57810223518b7d', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'da9237c3ab8cd5df247537f574e9e725', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fba422d6eeac52c7759c591cbea3953a', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b4613117e2b8fa9a9d90a22bacad4bbc', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7f1ba0f3585a4e674a6a9d76f3234f83', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0d8cd4ff5f33a1cb7035ff3e6ec4b103', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c8202cc2ed848f50efa4beea942c7cae', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ba66c549cf4e0acced89130d9d9734ca', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '968058f4ac6451af60187a3493ae776d', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a92fea23d282172d516e9fd89fd3051a', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '98c234b93dfd08ee515284d5f6e9c634', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:24:25', '2015-03-22 20:24:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:24:25', '2015-03-22 20:24:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:24:25', '2015-03-22 20:24:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '51b2a4000f0335b4e1f7d0888befefff', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '34d11bfee02a1df67dddbf45751e1d7e', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '273b77ca79abdf7d0c7901d75d6c6fce', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '076ced561b83aa46bd09932642276f4b', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cc53d832ebe01d6efd61243a7ce87f70', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3f6c82eb5fd469d57f4da55794c81026', '2015-03-22 20:24:25', '2015-03-22 20:24:25', 410780858)  (20.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:24:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:24:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:24:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 20:24:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:24:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:24:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:24:25 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 20:24:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:24:25 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:24:25 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 20:24:25 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:24:25 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e5e59cb7bcdd62867f4b9adc7182df58', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62e096f5f9781c7ec87077c98a83e0b9', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c616d3e09997f9d3527e352aaaad350c', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2f4bb7f7372bbd18740f27b91097bb27', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '37400ac423843546d349f2e6ed40657c', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7fcae169a6fbf74e7a3b5fdf6e44a9f1', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8f5eebde947c1da321439b5355fe27a2', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f61c08b979dcba75e3571ef4d2812c04', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e42dad2bc6149df0558fe90dd26ac6eb', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'af605e91d19353067928a9bae3fa0981', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4e96e73c38bcceda7c3c9cf371bbdd3b', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3d002f5dabbe434b266f652b31b7a920', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2d86af61ec37d80b690597fba601f7a5', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0d164f79999ed50e364153b147b78737', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2c6b2008cd62d3ee6a6eef3aa61135b0', '2015-03-22 20:32:07', '2015-03-22 20:32:07', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:32:08', '2015-03-22 20:32:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:32:08', '2015-03-22 20:32:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:32:08', '2015-03-22 20:32:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 20:32:08', '2015-03-22 20:32:08', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '77435065ab1704f16f40847945e86e56', '2015-03-22 20:32:08', '2015-03-22 20:32:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f4580bf1310232bf83580e0bfd01cdbc', '2015-03-22 20:32:08', '2015-03-22 20:32:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bdda85d67ddedc22198af1df80bce945', '2015-03-22 20:32:08', '2015-03-22 20:32:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e609d4b5036cafd0ec0a7057090ea035', '2015-03-22 20:32:08', '2015-03-22 20:32:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3e6ddd6d23fa4f0feb0e5b6766618f11', '2015-03-22 20:32:08', '2015-03-22 20:32:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '79ae8ca1221704db3deb0bdf68efef04', '2015-03-22 20:32:08', '2015-03-22 20:32:08', 410780858)  (26.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:32:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:32:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:32:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 20:32:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:32:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:32:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:32:08 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 20:32:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:32:08 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:32:08 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 20:32:08 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:32:08 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 396855775, 'Address', 1057142427) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dbab76377b7a30cca6cd9a9b3aacc087', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a2b4cd8c767abf454534598acba544d8', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '94437e866c63fca840da45119a4fcc25', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e9bb6009fdd6f700ad396a1d44af7a2b', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 775134066) Fixture Insert (0.3ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0f558001cf02c2718f0ca4c0156d1566', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '95ed5df8b0dc32101198bddf5de6059d', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7e575011fb476b9b1f3ac426c86c4057', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bb05c927e24d528f87995cb882b992e7', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '94c8214118ccb5ff04c6e59ba4da319f', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.4ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd2f415c4c971e3e65aed0eccd88b039c', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2a426d71ee6b983d5db46c436337a38b', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '22a7ac6c21dfaf6e2ae67a4875fef143', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.6ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '46cb50352c29e4d83bb198d0ba13b77a', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd0e8a67f81f8ce6a6e761f663fc4a6b2', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '16e3671d418fcdcb0783ef42282198a4', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:33:06', '2015-03-22 20:33:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:33:06', '2015-03-22 20:33:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 20:33:06', '2015-03-22 20:33:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '935ecdc6f731ff4912689892097ed333', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b425661bae6fa15c70b339dcd1bf4781', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '07719cc90dcc4f3923550f945daaefac', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cee6f2cd9104ac1ecf07ee5413ece033', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5b0d66f3544d1645aebce4a8965947f1', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f50caeabd7a9bd85c6dacf0f9d6069bb', '2015-03-22 20:33:06', '2015-03-22 20:33:06', 410780858)  (31.3ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:33:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:33:06 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:33:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 20:33:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:33:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 20:33:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:33:06 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 20:33:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 20:33:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:33:06 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 20:33:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 20:33:06 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 576421514, 'Address', 761411935) Fixture Insert (0.5ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4d776aa02828bd15a5fa9bee01fe21be', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2f5f387a73aa9fc37d7262a4d3cd75ad', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '52103d826b1515c2894f641c8fc024f4', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c27fe414a7b6fff3f79034173fc089b3', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'da764983ed77256f411d1b9b14a06539', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '18e569f80288e5f8ec57f653248015dd', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f56becb11a6bf4f589ed00a9416c08b9', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c17bc38b2a80f00a3e4be61c1c3e0019', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2ee72792e798b4849f9a46d554191119', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 712317748, 336964236, 849808553) Fixture Delete (0.4ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8c37afebbe766a3f253573af3d5f0268', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1c7b267d888cedeef9356a41cf6fa0c9', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a0c7a82f0f8ebaa497358ceb4633481a', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bdf4f49f3f8ab82106cfb60f109651fe', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ff5cb3d66f54ff0e34daf3df3e5220e5', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fca1a23dc1968ca17fbf1e683f83fddb', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:19:08', '2015-03-22 21:19:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:19:08', '2015-03-22 21:19:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:19:08', '2015-03-22 21:19:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a833b8b614e89edd7c2838861fcd8d1a', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '536f650b91703115666b000c2cad837a', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c8217946a9fb4de895b983b7a6cfc374', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2867ebd0df25d6d551884860fc349fa6', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1130711100088c68d57645d4294f60e5', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd26742e2ad86f775b9bac68bad78e3ab', '2015-03-22 21:19:08', '2015-03-22 21:19:08', 410780858)  (17.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:19:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:19:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:19:08 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:19:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:19:08 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:19:08 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:19:08 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:19:08 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:19:08 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:19:08 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:19:08 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:19:08 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.4ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'da16b9e9baa2a652d17c8ebf31447891', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8fb5fbd28f6ba7a32089bfff9a0da7c1', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '54b5ba5bb16a0939290542240cf8249c', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '79162615f8f7ef65b6054450fc185d04', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '34f6d8900313bb7dd92f2e5d4bda6d7e', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a4cee4a92d7154280a19c775d4f21636', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '47de189700d6cbf0bc150aad87453ff7', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6ea1dad8069dc721b611f73fa2ff0fa7', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 478996145) Fixture Insert (0.4ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7633bdbf74ccbb7d23bb5191541099f9', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 51822084, 336964236, 849808553) Fixture Insert (0.4ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8370c071b0b772bc4d0e73bf7e4307a4', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'faaa316fd3a2664a0bb0b5ec20562719', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '12d30e8505c7809d7f2fd1fb0f0d4992', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'afa216ad8622528f30bc5b4171fceb48', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '003bbdf8bfd0890ddf89fa3e4c526a5e', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c876ad24bbf0f7efd397a017dff52ec1', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:34:54', '2015-03-22 21:34:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:34:54', '2015-03-22 21:34:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:34:54', '2015-03-22 21:34:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.6ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'db9579db7b99b56a1be430110c00886e', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f68cc7d6c79e04f2b006a791fca82ff9', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '728ada3c8b28e510b40fb694a66ed8bc', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '823ab3869114e6a302053b88737ded35', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '36c44ee09c48d829f7de71269799e3e7', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '92ff3cdeae17a142626075d14de8cb40', '2015-03-22 21:34:54', '2015-03-22 21:34:54', 410780858)  (28.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:34:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:34:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:34:54 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:34:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:34:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:34:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:34:54 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:34:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:34:54 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:34:54 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:34:54 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:34:54 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 396855775, 'Address', 1057142427) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0a3052e3606db6542350252f5da5f74c', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'df314f262a28a248b68a9c2a9da2ead7', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a8f3a5d188a506d0127b0e8357886bd6', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '03807ff190429ac1f39da7c0b0f7d72d', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a2078763a3330b9b23d57918e3edd787', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '567fad431af1aed42b82c4e23e07ee89', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8569d313b38b51c7f56347c00186e460', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bd7f64872877b016268b75e281dc6306', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5a49b73695851bf397b5276ea686a5b4', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '12229ffad66bcde8a4c543c58a032845', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '45c8ae60e853bd0d0352ba44ea884eb0', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '92eb33bd2f4487dfcc14d9f51f7372c6', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8b3b61d5d94e41c7957d6765b11a0c6a', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0d9015de3462f979d221b728cb12f6c6', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c845811aa48c51d6bde96f6ca1c70dcd', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:35:15', '2015-03-22 21:35:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:35:15', '2015-03-22 21:35:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:35:15', '2015-03-22 21:35:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8ad56951664efba42e7162593ea88c02', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8194715e3daff1e761af5e3cdc139b23', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '665209c575ecf2cfa2206bceeffa5af4', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3e193bb6485d2f2a9db5afbb87c4b125', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e140fa736662e4d9a2bd9be8caa1cac1', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd0ccd24e7642fbd340fa11cb56b23783', '2015-03-22 21:35:15', '2015-03-22 21:35:15', 410780858)  (23.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:35:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:35:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:35:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:35:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:35:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:35:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (3.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:35:15 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:35:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:35:15 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:35:15 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:35:15 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:35:15 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.3ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98187911bb71611e73179fb0b317072e', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9f282d668f3d76477d5755bfe884fec9', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5243b9a21aa56e4e7ab628a26efa5ebf', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '235adfdbed79e2899d64db694179ce93', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2e2eaa05796279a27d2436c1f284cb04', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '24031f53dbad093c88e7dd2a144610b9', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3ab5bba61f3d816ecc3a1beb2458a16b', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '85720a1868bfed364056f2f92da03321', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '09660651ba68efa9088ed2b1995beb35', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd75a9167a55bd818fcf0452de79c6d75', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 343404421) Fixture Insert (0.3ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '83851530b663df8f921848721bef7b67', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fa8c9f0122f02a8c3450d6a4ee411a0a', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c7be91abf753eb8614599597848ef394', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '68fe3297bdc3ca8bdfc0768a5f0a0aac', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd75c26c23ccefb8c2b9f16d56498604e', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:36:18', '2015-03-22 21:36:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:36:18', '2015-03-22 21:36:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:36:18', '2015-03-22 21:36:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '21d3415b275b4ec300489029a04d03e3', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd656cc0e4a111a6e4b5f35205d7d6868', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f8799eebda520bfc68459bb04761bfd5', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '37bf16837abe93d06a1566c6ee48d2bd', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c7efef2d88690fc8723223a29c5d5785', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4b6090b0cef7f68a8dc093e404b62c87', '2015-03-22 21:36:18', '2015-03-22 21:36:18', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:36:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:36:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:36:19 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:36:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:36:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:36:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:36:19 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:36:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:36:19 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:36:19 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:36:19 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:36:19 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd2e0c5ffd8c3eedb9aa6bb6f14a297c0', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4d6447793b54dedb38084c8a07bfb495', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ea30c24b6fcd87176483ca30edea6ed9', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f7f0a76507869e85d6281c019dfd31c8', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4821fbf6c544947194c8c823dcbb88b6', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f0e4863a9257a14022eced7c56a3b64a', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '888f649f7da3cffbe8bc7d1cc3266a19', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a240e1c0f9d77f061e38fdc857dee1a7', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6f42161019f24d125c035d0a93711f9c', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '099946599a7561e67b12110b6341c637', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f1bc49905fa892f2062cd3869a292b34', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b25b8e75988c38439faea67dbf3f78d6', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b936513fb5bc556072fe6a774a2cf4b6', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b57728e21a42ba1a68f43ca6a3e9a81a', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f4079102019af60504e9b43a4dc89b7', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:37:05', '2015-03-22 21:37:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:37:05', '2015-03-22 21:37:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:37:05', '2015-03-22 21:37:05', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9fa2054bdf160551db8e72286af4491d', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd634d94b3fb5e0a632b53be304cdebdc', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f7c901bb58afac13b18ce6ce7e80f6a6', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cf38b5301d7e10672384c3db86d473c2', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4d7eb5a777d75127b2fb3e3db7b2bcad', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'db23266ca19a107e651627f07b49122b', '2015-03-22 21:37:05', '2015-03-22 21:37:05', 410780858)  (25.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:37:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:37:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:37:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:37:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:37:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:37:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:37:05 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:37:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:37:05 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:37:05 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:37:05 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:37:05 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 396855775, 'Address', 1057142427) Fixture Insert (0.5ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.4ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '32913a3727f99059fd876c7b25c2b5d8', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '569fb1f5fbec3bbf41edc231c5a08d46', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a22a37d06ee817323d6b5f582c822994', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '35c27db9a49d1c31c82db70c43ddbce5', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '90ecb59ed99ea52206554f108bddcd43', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9df6daaa3d5cda11b15cd8ebf050b719', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ffda373d50469a69a2a396e485c77766', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bc9be3cbf889060522fb2010c60a06db', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'daebda24d74d3f818bdc3b03590f7058', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 712317748, 336964236, 849808553) Fixture Delete (0.4ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8d01c8934fd34a91e6c88cce772a838b', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '38d3a020816541bd621c0d5e203d243f', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6a6efcdb5f9de8e1c9ff80dd976d8ee9', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '683000682362f4a77980d8bcc4ec5805', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '050f6bf0a1615b815f164c953c91d6d9', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4caa1153206dae5a560b5a2995acee1f', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:37:51', '2015-03-22 21:37:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:37:51', '2015-03-22 21:37:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:37:51', '2015-03-22 21:37:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '196d9b781953842941d6621a06030550', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '24d3ccf851b2e07f0438f800b7ceabc1', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '99d21dfc73250fb574cd1740f53bdf86', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3b400fec7efa73dfbee502656b4a29b4', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7798a1240fc8b0a9e27927af4ce04e5d', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bd23148567ccaf496459754621c9bc76', '2015-03-22 21:37:51', '2015-03-22 21:37:51', 410780858)  (24.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:37:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:37:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:37:51 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:37:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:37:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:37:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:37:51 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:37:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:37:51 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:37:51 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:37:51 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:37:51 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1503a06fd60c44aee8f0943a5e58ba7b', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '24fab71ddd62aae17c813117a4209737', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa3e6a863c9d1ac255aeb429ad26cbbc', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f35c175919d0ee5b10e420565f191744', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8baefb655fdc3f992fd905ec97cabcfe', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a06be525f0ed9b5c4c18d0787fb5fcbf', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2689ad5749d73c073dde7145fde6d5eb', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6c68e8a691b8c42b99e0ba9737a54847', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ac2a7dc6b87641b665375a05e53c5e62', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '86c74f0ce95f99d965445ce889360133', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '427715feaab2817679e7399c59228f23', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e159ce61a78a5bbdbcc5714f687f8c96', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 483796712) Fixture Delete (5.9ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '510bc470bdd2c9ad388bdf8ef56ce267', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3329a232057d521cf2194faf520abcae', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a07508472dfd664788454f5ed8192b5a', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:38:34', '2015-03-22 21:38:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:38:34', '2015-03-22 21:38:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:38:34', '2015-03-22 21:38:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fd6f57837efe025b00580013a55f9e50', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd9e4e8b1786b1f5e9d57a2449bdceed2', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7102c2c8bd6d7a8107647453e16eb917', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '181f1da8a560703f2afbb3a911902d9b', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3d459e5c21251f72888bfeff52903878', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1dfee57917a29044598c62b98d1ffdab', '2015-03-22 21:38:34', '2015-03-22 21:38:34', 410780858)  (31.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:38:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:38:34 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:38:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:38:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:38:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:38:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:38:34 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:38:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:38:34 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:38:34 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:38:34 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:38:34 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 106545386, 'Address', 633598004) Fixture Insert (0.4ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb3f14955229568c04ff05428fb51751', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cde3bba54cba781e9bc9e9c2517bf4f5', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd4135e81eb198b97566cf24c05be5b56', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f90e926e63cd69e880319ae4f7dab1f3', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '217638a5cbb79a9d9c42fbfb88599481', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3e946f031ca182341bb9a6992449b4da', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f971a7c7149db86c04262336bd8d091a', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1cb6b91c88479f84952f3124ee12bd87', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd1f0250b1787b9903e484e345a1ec9f1', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1e137d46575a80c6f6fc7706c0ef34c9', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cd0b0badc4639ea1565d111d9991c612', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '155af97cf6724fe0750dd74a3725646f', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.4ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '198c952d247b6c0c5c43ac1cba002e58', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '07df898689f7b0a3f57292a390d16169', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '37c28183f5873ee75fb8f2702814c33b', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:38:45', '2015-03-22 21:38:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:38:45', '2015-03-22 21:38:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:38:45', '2015-03-22 21:38:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b305d50b28b932eb6938e607f1adcd9a', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'aa4ae11b7d9e792609669ec7df4d5549', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9a3ac79191b7631d16cba132effc44e5', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '670e54f4c14372534720fb12078958cf', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9c25a2b6076711a2a03f1ef9cf829e58', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '91f697a24de11e149557ab40cd1f284f', '2015-03-22 21:38:45', '2015-03-22 21:38:45', 410780858)  (25.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:38:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:38:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:38:45 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:38:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:38:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:38:45 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:38:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:38:45 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:38:45 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:38:45 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:38:45 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '42fe28237bffbd3fae099e7481fb0f4e', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2ae3e739824f2fedbd2f94e22c8ba89a', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 1057142427) Fixture Insert (0.4ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c3879b7909ce7ceb2ff6119ce2bfc7a6', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 633598004) Fixture Delete (0.4ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c811a30a68fe31817d83dcea3d376088', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3f3b5fa4289be149c77a691c3de806c4', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '43509318ce3469cf32dcecf7a79472f2', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '28538dd754889129924da429c7f749f7', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '84d4b6b9b3d822121dd5c6778e3e559e', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4e213a67780d784ba2e8115fd58353ec', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 873565849, 336964236, 849808553) Fixture Insert (0.4ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0962b4a5c399aaccb41e62882fe76588', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4847ceb745071a05ff5201a596397bd3', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '47ad17e27aa308547914f377b46538f3', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c640ca8a12b32c9d38568168df2c5f78', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3ec46fbfc31d41676918e2844e0ffce9', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 689259936) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd860e1c6a492021aba66cbf987ebfcd1', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:39:23', '2015-03-22 21:39:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:39:23', '2015-03-22 21:39:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:39:23', '2015-03-22 21:39:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a9d396a3812a7c56f4d0d4b551386f90', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8b04cb9c1d54d9957f132aab7a1089a8', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2cabc662e270ad5c5a5722bb2b78f4da', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5dbbdb8b1500ae3c283fe6bd4858258e', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '597e1530cb2d157714a07d17b6939a27', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c72e333fe20133f4115c43cd7a8bf958', '2015-03-22 21:39:23', '2015-03-22 21:39:23', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:39:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:39:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:39:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:39:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:39:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:39:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:39:23 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:39:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:39:23 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:39:23 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:39:23 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:39:23 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3f862cf67ae37ef94f9c2f0b65739fb8', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9a511e0d4d3a35a5f780910e42241f02', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a8e5d0d6d08e02f329b2000d43c6ee42', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c03cb8a805828a0281dee409cb543800', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1aeb46f0eb01172e1ce229ebbfc23dda', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1e795aa8f23e6ccae881992eb4eb9bac', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c374ae944145997ff8bcc1b0bfafa2c8', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b75f0009b2c10df8bb3bd0d9f301a145', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'aae9ed3ea32fa8c8bee5d51acc3b865a', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '05e8b8132441b69fe0fc8248429ec482', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1a18549e2311fbc09451a6bba30b9cd6', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5986605dbaaf1c9872050be90060eb68', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5727b2ffebf2a67a088e43951fb62a62', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a779fbc5c7ef5d20f8544bdfb3958e61', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '457907c04bbc2e0ab618037519e111a0', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:39:40', '2015-03-22 21:39:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:39:40', '2015-03-22 21:39:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:39:40', '2015-03-22 21:39:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b9a4be0016c5378a28fa3b38e5f2dc87', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6b0cf8af73893bc73f2cce6cf82c9a85', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4b46ccfc6a96deadc32f7d7b87a60138', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bbd291a29a5e01017f2fd85260c6730c', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b3fdd855226fd761a91846eee923fb5e', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f524410ef701bd2f478b97cacce67efb', '2015-03-22 21:39:40', '2015-03-22 21:39:40', 410780858)  (19.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:39:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:39:40 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:39:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:39:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:39:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:39:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:39:40 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:39:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:39:40 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:39:40 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:39:40 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:39:40 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a9ab70d20c3cb01bc362b5ee000f23e2', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1952bfdf30af8b20cb4158d1384a3dcd', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f06b4ae8ecf531492ee32e9c04fb6d09', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5ef5a0451b7a7d2f34788d13984fc581', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '55d1da95c5d97d28df5504f1d3acde10', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '14af735c5ff8088cf343d4a70de8a3d1', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9d88fd8e82feb20ab2ce0adca1280e0f', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9a3a9c5a7de1c141a624e20b7851f930', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '21194936f8166a7abbfab88944666afa', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 51822084, 336964236, 849808553) Fixture Insert (0.4ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6f8397923c5c176fa32f83b74d44305f', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '49516c5dd75dc570fb9c085f87bf21ef', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '98411bd71069502a4e88ed3163a9e38b', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1f4454927dfaad705c5322f22807043f', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0d415c983fad5d8a27f4467f2d051ad5', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '02585bf4642436f506ceeecee51c28b9', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:40:41', '2015-03-22 21:40:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:40:41', '2015-03-22 21:40:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:40:41', '2015-03-22 21:40:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 421646738, 336964236) Fixture Delete (0.5ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cd013356477bb5cc09ab4bd4197dd217', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'df2dee4b1d8cb0c5c4ff00ea87c8a786', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '554942c42d8c93d6213122dff241ff78', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9beaca0b14d86d10e34fa83730cf78cb', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2fb5adea4bea37367f02a51947b8fae2', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '06368cea11c8e4af47f6c2fc4bd35582', '2015-03-22 21:40:41', '2015-03-22 21:40:41', 410780858)  (14.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:40:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:40:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:40:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:40:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:40:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:40:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:40:41 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:40:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:40:41 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:40:41 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:40:41 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:40:41 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.2ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.4ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '56a9d4a49af2eb6bcf0f637d9bd6bc66', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9a5f35d13787f4f8cd9bf9f144da599e', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c69b3279733c06a1df1bb59bc064676b', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fa3d8caccb6ca72f24365280bf8171f9', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bea46e77e846fb464084bbd8aabd42ab', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd8c2de368e018737fbdc0eb50a83517d', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f257e7958b0c32623a74b0436914ebfa', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e4295a4d2b56302c6c743287c4d363ee', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e45374e6c1456aca9371c30148fc6ac1', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 438300604, 336964236, 849808553) Fixture Insert (0.4ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '01ba77177665de53c8d4bbd285d52c52', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5d67644dcc7cdccceae48a3ff60cf330', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '19beb55d44df29bff7debda3bdb977f7', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cb9b307f0eabdd25c080bb79a5350ce4', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '04567b91efac7fc21db560fc68a5ddd4', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 689259936) Fixture Insert (5.9ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '44c42b5d83ea15d4b9e3b827cf6a1f26', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:41:07', '2015-03-22 21:41:07', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:41:07', '2015-03-22 21:41:07', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:41:07', '2015-03-22 21:41:07', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a631fe453c21d69a55d033c586d99fb4', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '40ac0a816bffe8838078d99d55e34140', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '029eda4ed3c7dd1c3cb78736b9d967ba', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a385827595517881c27cdbe72d2e39c3', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '58e9e6753e4cc02d5fdfcdb3443846c4', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f5066109c48184d10985b184e7f32009', '2015-03-22 21:41:07', '2015-03-22 21:41:07', 410780858)  (26.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:41:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:41:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:41:07 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:41:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:41:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:41:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:41:07 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:41:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:41:07 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:41:07 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:41:07 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:41:07 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.5ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0d9948e719a41bae77dcf46288c11709', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '771561ee143192f8ccdb73d17ed4eb74', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '73ec61facd39b944ac6715407b78b9ce', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '27b503cdbf8919c73f67584667123d3a', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '995638d9c1cfef5590f41ab4abe8c61e', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f26ee80cdcc796aa61f5326b7b1bdabd', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e39c00a42c41796066104af5c212f773', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f0007da9eae74322b5efc0ad43eae883', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '346b80ba325b064ef0321e6a916ed9c6', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fb562b8c77c5622c427256d678aa91d1', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f0cbcf54098688e1908a11e2f57e3287', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bfe6937e2641fff8afe48dd918dcd3cd', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4e550f325bcb1f837a07f88bdb224472', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '58cb43c1f72770ff6e68176676ddd95c', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2f7ea806ee1bdfb4c866526b2233a7e8', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:45:15', '2015-03-22 21:45:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:45:15', '2015-03-22 21:45:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 21:45:15', '2015-03-22 21:45:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'afc37622320c0901a8ab4b259a93c6b9', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fa4c1b33f51d7726e7ee533e2490148f', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c0b14a8930824110d1737bc880ad5b2b', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0e35bf8efe5edd3714946d588428fe23', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7b8290db005b2933f19ec2b80239afa0', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2a613b64988814e335212ea32fefc15d', '2015-03-22 21:45:15', '2015-03-22 21:45:15', 410780858)  (26.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:45:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:45:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:45:16 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 21:45:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:45:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 21:45:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:45:16 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 21:45:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 21:45:16 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:45:16 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 21:45:16 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 21:45:16 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.3ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::config: test_0001_takes in configuration values --------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::config: test_0002_can have internal default methods using singleton method #fetch ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55240b458e7617336513499c9d3faa87', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4d39333c73aacb08488848b24198eaed', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '88a1a426013be1fc60c493269cedc197', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75bd6486a34d3c8dd778aab23475c34f', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a2c9968af46e7dd3d7d770be4b8d6954', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1cda1508789750eb4aef48b0085ed5c8', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2e2a4109846656c381e65f8274f9ea49', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f8640716dbc82f4438350043e782bfca', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '15ee8b853eee1c0d956e81568e581536', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 873565849, 336964236, 849808553) Fixture Insert (0.6ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '261467d346487b0c62dce658e26b78de', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dc003a624d9fc0864638b4a2e0204c85', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b176a5eeb84da5b22a111764da436cea', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3f49eb52a35ae50780e118007d40501f', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0210a93970539184363124bdd824f61f', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2cd311be24ea43630699cd8adc841747', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 22:49:01', '2015-03-22 22:49:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 22:49:01', '2015-03-22 22:49:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 22:49:01', '2015-03-22 22:49:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '36f970993c0367a67707e428f5e8aaba', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5170c44a2284cac92cc1214b59cebc47', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6a2acd1d5efd8b487514c6a47ebc9410', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '48657011e35f1057c0998e8ea49b1584', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fc68b035c87833033571e445ec68c86c', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8704897a76ef372fc73d03129cfedda5', '2015-03-22 22:49:01', '2015-03-22 22:49:01', 410780858)  (15.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 22:49:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 22:49:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 22:49:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 22:49:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 22:49:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 22:49:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 22:49:01 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 22:49:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 22:49:01 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 22:49:01 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 22:49:01 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 22:49:01 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6d6fb8fd6294c12046f8819e3a8e3ca7', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01e317f454ab702d7175b1a9263d85b4', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4531eaf8e590a815fd1beb5364decefc', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cbebe1adeacc9b17bb97a76ce7e0cdc9', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b605da1e640d9a5b03c54cddc3a1a195', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '557e15cbb32878f8b7b5acdd16c1cd82', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9a9b7f8c0d6cde5c971b6af51752ad65', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ca2a978408e08b7063151edaaf15c274', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '47608f9f96d57f55e77060d39d0eae29', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9cb6dc9468e5407524fa1a3f9dd6c176', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '81c256cb495ee39fdc9ea3aaeda5a08f', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '13ff246bb5d89f74eb341ca49784100b', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '35837234857e08994dd55f9fa874e35a', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f67ac2cdd0be0ecd44776bcd0024dd94', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1a2c1f30efc3d97be4c460bfa7a2df53', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 22:50:28', '2015-03-22 22:50:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 22:50:28', '2015-03-22 22:50:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 22:50:28', '2015-03-22 22:50:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '162405f6555287449d32bc68cdf81217', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5f996777cdea89a73069963d4fac37c3', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '32c5943ca15e94d803ed9a3f983cd113', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e709f010206256199ec4a042437bea84', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4982577a65082608da576c10902b43c3', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c8e3c811a21f0fc696196eee816cf65a', '2015-03-22 22:50:28', '2015-03-22 22:50:28', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 22:50:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 22:50:29 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 22:50:29 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 22:50:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 22:50:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 22:50:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 22:50:29 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 22:50:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 22:50:29 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 22:50:29 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 980190963], ["created_at", Sun, 22 Mar 2015 22:50:29 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 22:50:29 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 980190963]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 980190963]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 980190963]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 980190963]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 980190963]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to A (20150322233057)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233057"]]  (18.2ms) commit transaction Migrating to B (20150322233103)  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233103"]]  (11.5ms) commit transaction Migrating to C (20150322233108)  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233108"]]  (17.1ms) commit transaction Migrating to D (20150322233117)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233117"]]  (24.5ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to D (20150322233117)  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150322233117'  (11.8ms) commit transaction Migrating to C (20150322233108)  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150322233108'  (17.6ms) commit transaction Migrating to B (20150322233103)  (0.2ms) begin transaction SQL (0.8ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150322233103'  (12.5ms) commit transaction Migrating to A (20150322233057)  (0.2ms) begin transaction SQL (0.4ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20150322233057'  (27.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateAlphas (20150322233720)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "alphas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "delta_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE INDEX "index_alphas_on_delta_id" ON "alphas" ("delta_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233720"]]  (13.4ms) commit transaction Migrating to CreateBeta (20150322233733)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "beta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "alpha_id" integer, "created_at" datetime, "updated_at" datetime)  (0.5ms) CREATE INDEX "index_beta_on_alpha_id" ON "beta" ("alpha_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233733"]]  (22.9ms) commit transaction Migrating to CreateCapas (20150322233743)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "capas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "beta_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE INDEX "index_capas_on_beta_id" ON "capas" ("beta_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233743"]]  (12.8ms) commit transaction Migrating to CreateDelta (20150322233755)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "delta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "capa_id" integer, "created_at" datetime, "updated_at" datetime)  (0.4ms) CREATE INDEX "index_delta_on_capa_id" ON "delta" ("capa_id") SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150322233755"]]  (25.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) begin transaction --------------------- AlphaTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------- BetaTest: test_valid --------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------- CapaTest: test_valid --------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------- DeltaTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (13.6ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_id" integer, "addressable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (12.6ms) CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type")  (20.3ms) CREATE TABLE "alphas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "delta_id" integer, "created_at" datetime, "updated_at" datetime)   (27.3ms) CREATE INDEX "index_alphas_on_delta_id" ON "alphas" ("delta_id")  (22.1ms) CREATE TABLE "beta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "alpha_id" integer, "created_at" datetime, "updated_at" datetime)   (21.9ms) CREATE INDEX "index_beta_on_alpha_id" ON "beta" ("alpha_id")  (17.6ms) CREATE TABLE "capas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "beta_id" integer, "created_at" datetime, "updated_at" datetime)   (34.2ms) CREATE INDEX "index_capas_on_beta_id" ON "capas" ("beta_id")  (15.1ms) CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (13.5ms) CREATE INDEX "index_cars_on_user_id" ON "cars" ("user_id")  (13.6ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (12.8ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")  (22.4ms) CREATE TABLE "delta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "capa_id" integer, "created_at" datetime, "updated_at" datetime)   (28.7ms) CREATE INDEX "index_delta_on_capa_id" ON "delta" ("capa_id")  (15.3ms) CREATE TABLE "geo_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (13.0ms) CREATE INDEX "index_geo_locations_on_address_id" ON "geo_locations" ("address_id")  (18.8ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "phoneable_id" integer, "phoneable_type" varchar(255), "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (13.6ms) CREATE INDEX "index_phones_on_phoneable_id_and_phoneable_type" ON "phones" ("phoneable_id", "phoneable_type")  (20.7ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photoable_id" integer, "photoable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (28.2ms) CREATE INDEX "index_photos_on_photoable_id_and_photoable_type" ON "photos" ("photoable_id", "photoable_type")  (27.9ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "profileable_id" integer, "profileable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (13.6ms) CREATE INDEX "index_profiles_on_profileable_id_and_profileable_type" ON "profiles" ("profileable_id", "profileable_type")  (13.1ms) CREATE TABLE "squishies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "squishable_id" integer, "squishable_type" varchar(255), "created_at" datetime, "updated_at" datetime)   (13.2ms) CREATE INDEX "index_squishies_on_squishable_id_and_squishable_type" ON "squishies" ("squishable_id", "squishable_type")  (13.4ms) CREATE TABLE "ssns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (13.1ms) CREATE INDEX "index_ssns_on_user_id" ON "ssns" ("user_id")  (18.8ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (12.8ms) CREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id")  (13.6ms) CREATE TABLE "tires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "car_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (26.6ms) CREATE INDEX "index_tires_on_car_id" ON "tires" ("car_id")  (17.6ms) CREATE INDEX "index_tires_on_user_id" ON "tires" ("user_id")  (38.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (30.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (27.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (20.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150322233755')  (19.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150220230146')  (30.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150322233743')  (26.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092449')  (15.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150301100658')  (12.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150322233733')  (12.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150322233720')  (12.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092218')  (27.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224225')  (19.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150220213422')  (20.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092519')  (19.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224157')  (18.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224139')  (20.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092338')  (24.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150301100722')  (12.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092411') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (28.3ms) CREATE TABLE "addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "addressable_id" integer, "addressable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (28.5ms) CREATE INDEX "index_addresses_on_addressable_id_and_addressable_type" ON "addresses" ("addressable_id", "addressable_type")  (30.2ms) CREATE TABLE "alphas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "delta_id" integer, "created_at" datetime, "updated_at" datetime)   (24.4ms) CREATE INDEX "index_alphas_on_delta_id" ON "alphas" ("delta_id")  (22.7ms) CREATE TABLE "beta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "alpha_id" integer, "created_at" datetime, "updated_at" datetime)   (19.9ms) CREATE INDEX "index_beta_on_alpha_id" ON "beta" ("alpha_id")  (13.9ms) CREATE TABLE "capas" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "beta_id" integer, "created_at" datetime, "updated_at" datetime)   (31.3ms) CREATE INDEX "index_capas_on_beta_id" ON "capas" ("beta_id")  (27.3ms) CREATE TABLE "cars" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (26.2ms) CREATE INDEX "index_cars_on_user_id" ON "cars" ("user_id")  (23.8ms) CREATE TABLE "contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (23.4ms) CREATE INDEX "index_contacts_on_user_id" ON "contacts" ("user_id")  (28.0ms) CREATE TABLE "delta" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "capa_id" integer, "created_at" datetime, "updated_at" datetime)   (18.5ms) CREATE INDEX "index_delta_on_capa_id" ON "delta" ("capa_id")  (20.4ms) CREATE TABLE "geo_locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (13.0ms) CREATE INDEX "index_geo_locations_on_address_id" ON "geo_locations" ("address_id")  (24.6ms) CREATE TABLE "phones" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "phoneable_id" integer, "phoneable_type" varchar(255), "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (22.2ms) CREATE INDEX "index_phones_on_phoneable_id_and_phoneable_type" ON "phones" ("phoneable_id", "phoneable_type")  (15.2ms) CREATE TABLE "photos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "photoable_id" integer, "photoable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (28.4ms) CREATE INDEX "index_photos_on_photoable_id_and_photoable_type" ON "photos" ("photoable_id", "photoable_type")  (22.2ms) CREATE TABLE "profiles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "profileable_id" integer, "profileable_type" varchar(255), "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (25.1ms) CREATE INDEX "index_profiles_on_profileable_id_and_profileable_type" ON "profiles" ("profileable_id", "profileable_type")  (23.4ms) CREATE TABLE "squishies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "squishable_id" integer, "squishable_type" varchar(255), "created_at" datetime, "updated_at" datetime)   (29.1ms) CREATE INDEX "index_squishies_on_squishable_id_and_squishable_type" ON "squishies" ("squishable_id", "squishable_type")  (24.0ms) CREATE TABLE "ssns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (22.3ms) CREATE INDEX "index_ssns_on_user_id" ON "ssns" ("user_id")  (23.8ms) CREATE TABLE "tags" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (23.3ms) CREATE INDEX "index_tags_on_user_id" ON "tags" ("user_id")  (33.1ms) CREATE TABLE "tires" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "car_id" integer, "content" varchar(255), "created_at" datetime, "updated_at" datetime)   (18.1ms) CREATE INDEX "index_tires_on_car_id" ON "tires" ("car_id")  (13.6ms) CREATE INDEX "index_tires_on_user_id" ON "tires" ("user_id")  (27.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (32.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (32.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (17.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150322233755')  (18.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150220230146')  (29.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20150322233743')  (28.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092449')  (16.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150301100658')  (13.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20150322233733')  (17.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20150322233720')  (25.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092218')  (19.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224225')  (29.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20150220213422')  (18.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092519')  (13.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224157')  (12.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20150211224139')  (12.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092338')  (12.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20150301100722')  (25.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20150216092411') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ba35d37020b11a794f6c996d4b9717b3', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4163e43786abfd1d0f62e643fb61712a', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '40c505ab6a729fe5de81116115bed780', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a896d72054c804d15b37b4e77755d820', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2bec2ab614e22025436d1e3a13587d3c', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ba4646f92bdfe2cc743406dbfb9d6b2b', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'aae234a8a508119930d91fa4dfafe48b', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9ce07b7395a7f24d539080a95067cc40', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a09c8938711b2b9c0ac446bf99782fba', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4b96fc20dbb808b5c954400bcaaba389', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7c82d4208e5a8ecade0688f9f892d6f0', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'aa2f2ff9adf13405a5bd47b507b16ec4', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2d87bf1d9ec7dd5d90c32237e2fe9765', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '82c4d1d04479ab6f56c261d5192e9ba6', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f3da7584379e0c516e2992529d20870', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:42:16', '2015-03-22 23:42:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:42:16', '2015-03-22 23:42:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:42:16', '2015-03-22 23:42:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b443c97e95e2e9bc1017533e273a58b1', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c2d6ad6bdbfa0607163ca56f5ce2d92b', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3284d9db72cba0fed23db21458aa508e', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '60f343bac60b06fb09787717ed6e5487', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1cd12d2d68402ed089c4b752db4cb968', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b725ce93e852b0ddc53938bf695d48b1', '2015-03-22 23:42:16', '2015-03-22 23:42:16', 410780858)  (14.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:42:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:42:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:42:16 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 23:42:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:42:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:42:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:42:16 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 23:42:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:42:16 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:42:16 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Sun, 22 Mar 2015 23:42:16 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:42:16 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.5ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.9ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '747b51fb03c056f592561ef6677d34c8', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8a938b6a26e7c38546458aa0a41306d4', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '811a06d3e0961a399dedbb3dc10b3487', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b428ab3cbcbd97faf409acf7533d3980', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '015dae071d3d8e646dbed11aaf1066ba', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b57d931ac761bc6e1395bf2a97ab643d', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '788408c7002ea7d4a5fcc5e50156028d', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '13b83923a8bebe6f75c2dfbd90fcf43e', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '29885b7d5a68ccc51a771992bc98ab20', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '609295c31fc6dfba2725f94d24f4bf49', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a6b4028a9d42f2fa6df27800c0ea6b0f', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3ce802967cccdfcf50a6d18cf8b8b321', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '353f5eeb33b43a5f7e1171659d9f4cfa', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a1e088dad9efde2ffe78d4ba05c14c93', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '843445e4b70c822b1b72e07f358b6c82', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:45:55', '2015-03-22 23:45:55', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:45:55', '2015-03-22 23:45:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:45:55', '2015-03-22 23:45:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'df0ce1c7397416895d6b34fc5e6c1028', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cc851723b7bba8b3fa996d3a08186259', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c66eb4aebd86cfe2f489783489fba356', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a39ec5197ec25bbb29ec3c5ffe6a8c47', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '742303cfc544746d7cb8abf4cc2f6dd8', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9b39c51e81c1e9ca1ffe63fe5985fb0c', '2015-03-22 23:45:55', '2015-03-22 23:45:55', 410780858)  (21.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------ DupTest: test_0001_handles circular references like a champ! ------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 1], ["created_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 1], ["created_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 1], ["created_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 1 [["delta_id", 1], ["updated_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:45:55 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.7ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.5ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 106545386, 'Address', 633598004) Fixture Insert (0.6ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0a32502f5f6d9b0977997493f4cbfffa', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8eadecb4bf9fd5f140903b0c500df802', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8648b742d53a1ad4994a1f21fd741393', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c356732b98954b14773b654a97587f85', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bb42fa0660073b4697965c17d64ac9b4', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6966a30fb5b75d9428002f0fbd9d574a', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5a80273671cfbf4bcf3711e7c57b056a', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e6d7b7cb757eb4f7b706e1421be181e5', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1e4e78d9489702598b266d18f8be1824', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a527180afe1a902be905c5e5629c79e8', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3205f05a8058f0a73d847df0e7a3b786', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ef0996ab1c7b4d73acfdd1d7e25334dc', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'afed2cd204bad16d60d2186ef568ef45', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7eeeb60f5f23631f5e1ab74111c577da', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7ac9af01c760a61309d62bb4696d87fb', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:47:06', '2015-03-22 23:47:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:47:06', '2015-03-22 23:47:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:47:06', '2015-03-22 23:47:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'eecc234dd31e4fe7c18ee223b5693fc9', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7383b7bbb1d5962ef71c683cf0b0e647', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'be620caa2f3bff43383a4e6511ae2333', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4dd057f51e3c553defa444a9eecac9d1', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9b08d03762b6b099c75663492ff454b0', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '996385233aed9099c8bcad2504879be2', '2015-03-22 23:47:06', '2015-03-22 23:47:06', 410780858)  (22.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------ DupTest: test_0001_handles circular references like a champ! ------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 1], ["created_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 1], ["created_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 1], ["created_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 1 [["delta_id", 1], ["updated_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:47:06 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.6ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd90c2feb5347d1ce4709f972c491719c', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '314b2a7dc4306e7c8934fc115a8cc2b4', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a44daaeafc92e55b135e88754bea2df6', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd2135007085eb7003f2182d7abec1e0b', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'edc9905c313968b6cd020615e55bcf7f', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '669de2b429bf254edfb938405ed29948', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '479c7dfea58711394c87c557a03c6e05', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '07357ef580cb3fb842aa4aa338fc153e', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '591e29d9e2da323159b289dd806f83e8', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c0b0a903e753f3d679183b25f2dc3909', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7ce8806b3f1ddd19475e637b6658ceba', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b845e72f229a5fdccf9278a6ba3f95c0', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ba19596c99fdaa9cd65be22277daa488', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e4186de82fd90b048cc0abc107dc1cc5', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c8bd79de3d44baed708af44d279ae71a', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:48:00', '2015-03-22 23:48:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:48:00', '2015-03-22 23:48:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:48:00', '2015-03-22 23:48:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '493aba7abc848052fe62b75c8ecbaecd', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '92c4ee8353b8164d5897a1a70448fe1a', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4cdc389a1d74f88b1aff1908d6df3d66', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '83b2b05d82e573d3a21242ff491072a2', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b34074f6f80828ea0a8c4fb688398baf', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c466bf41ae80174ec350d573b746f335', '2015-03-22 23:48:00', '2015-03-22 23:48:00', 410780858)  (23.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------ DupTest: test_0001_handles circular references like a champ! ------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 1], ["created_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 1], ["created_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 1], ["created_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 1 [["delta_id", 1], ["updated_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 1]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 1]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 1]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:48:00 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.6ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.7ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.4ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00]]  (18.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 1], ["created_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 1], ["created_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00]]  (11.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 1], ["created_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00]]  (24.7ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 1 [["delta_id", 1], ["updated_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00]]  (25.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '95e00720b7537d9a532b2667874b418b', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '441f68300e7bf0f24a09b6d2929ce72f', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a1e1864580d2c777e44b02cb558eb123', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b20f3c33a6c4bdad79c2bf7b90848db2', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c601a474cd5def4f51d95b7099fd37d4', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'afb85f196d4544bce241180f210b9c0f', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8f8f9235c208b7a340580a9ebbd7f0a1', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '888de88eef4b9b877cdc2ac1d5cb9861', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '95df1cbf95a65264e2df8f317db515b6', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bf2ac8e9d421067c7094fb280da99c9f', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ecc5d01d042ecd46f4eb51578bdd8398', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'db7c6f2371eb5cb5c57db4220e59c3d4', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '077ca1e05a323656bf831d4b7cd24830', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd0a3766ad7a00763efa52acfb7253cf8', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7caa119ca73c554c29504c26d603c552', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:53:16', '2015-03-22 23:53:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:53:16', '2015-03-22 23:53:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:53:16', '2015-03-22 23:53:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '799a95671105e043b2e5cffce931d045', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bbfae6f4704c0aa65215cff14dedc8b5', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '47f0f1b5b2dc371ecc57a7e6765af0a7', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f5f8f8af52e6f39b8d9735ae9adf6bd7', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7ea84bad0a1e595704d71dca71e7b133', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4b2605d4a48fc88b5ade9c8371a925a5', '2015-03-22 23:53:16', '2015-03-22 23:53:16', 410780858)  (24.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:53:16 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 1]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 1]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 1]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00]]  (26.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 2], ["created_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00]]  (14.8ms) commit transaction  (0.5ms) begin transaction SQL (0.8ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 2], ["created_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 2], ["created_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00]]  (33.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 2 [["delta_id", 2], ["updated_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00]]  (23.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '37465d496d0b94f28de5789d9f85397c', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '980c4d4799f69e16da407a46d4796c95', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '792c119a8e916165fca0b6a120fb1005', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6366aadf485a9efc12889c0332bf07fb', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9f783708de64c21dd88b6856aa9b90a6', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '770ed00dc60e9b6cdef021cae69eb207', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '93710678ea541c0f11ca67d10ee0905d', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4f5cdbdfc130b988c133a57cb351f6c2', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e9db165d5fde12bdd8af0adf1a308c42', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '19b5a277054cdf4b546e642b1c9ac40a', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a924006e80ee994e69adaf275f9c4298', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f43b3a04dadf364fb7b2e5bb6a77f227', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '40ca4e7703c2b67c393720aa60940aa8', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8912f16dafc7b8e76efa7f15e86f9189', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5deb87454c85b797fcdd29ef1e397fd', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:55:06', '2015-03-22 23:55:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:55:06', '2015-03-22 23:55:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:55:06', '2015-03-22 23:55:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e67eafdf0fd10afd1ad778a7204189c4', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c586102b5b57e1a99781d2cb33150276', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6f3d96f61827cabe9a19eaa198d99385', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e9ca45fbf95026b0a28c054170236089', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e0d33d0914bca3895c7486c059d366c5', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '15aec1832dd567281aaa025de5d00271', '2015-03-22 23:55:06', '2015-03-22 23:55:06', 410780858)  (12.3ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00], ["user_id", 1]] SQL (0.3ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:55:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 2]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 2]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 2]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:55:27 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:55:27 UTC +00:00]]  (22.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 3], ["created_at", Sun, 22 Mar 2015 23:55:27 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:55:27 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 3], ["created_at", Sun, 22 Mar 2015 23:55:27 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:55:27 UTC +00:00]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 3], ["created_at", Sun, 22 Mar 2015 23:55:27 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:55:27 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 3 [["delta_id", 3], ["updated_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00]]  (19.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.5ms) DELETE FROM "squishies" Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 576421514, 'Address', 761411935) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 396855775, 'Address', 1057142427) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 106545386, 'Address', 633598004) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '25092aec76686d62c24f9e6b68717415', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e214408b423cf228c2639f794c4a919c', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a40435d19f58a21ef75435e0b0f7de0e', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cd3e7daf181fd64cf657611b19c00b42', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fe1d31d017b1d8769b44a15a9b3d2204', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dc322846a0a40a26ee947fb594cfde1e', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c657b892a06fc2e13ecf87f1fae17d3f', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd366cd2cd80e5f2c109a2c21cc7870dd', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5eb109b8fdf42cff233ea3ffa06f3722', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6f3ca3d641d971fe027cb7445764752c', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '17a1bad419d4b5450ad9e34193d6d9f1', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a142e448327af91fedb09dd993b06ccb', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fdc66c1eb1d63a14f92646fe8318850d', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c5b426c709502aac349b45f295c36494', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1bb0ccce29bb67200d380e365f3839ec', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:55:28', '2015-03-22 23:55:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:55:28', '2015-03-22 23:55:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:55:28', '2015-03-22 23:55:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '457e03ee6072628d3bd3b50681ea842e', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4c577d1fec9d6db54ed6510c3d0b00a0', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9093ae9ff72a69bce3b714d2ebd73ce0', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6781bd765b7f9b9b5a49cdaf9d1fc74a', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b193f4d69300bd92bc6d27803279b352', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2289038dfd54b6d0e60f041499d1cc25', '2015-03-22 23:55:28', '2015-03-22 23:55:28', 410780858)  (20.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:55:28 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 3]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 3]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 3]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:57:10 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:57:10 UTC +00:00]]  (17.6ms) commit transaction  (0.5ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 4], ["created_at", Sun, 22 Mar 2015 23:57:10 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:57:10 UTC +00:00]]  (12.2ms) commit transaction  (0.5ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 4], ["created_at", Sun, 22 Mar 2015 23:57:10 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:57:10 UTC +00:00]]  (12.4ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 4], ["created_at", Sun, 22 Mar 2015 23:57:10 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:57:10 UTC +00:00]]  (21.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 4 [["delta_id", 4], ["updated_at", Sun, 22 Mar 2015 23:57:10 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '14bf09c29fc48c3ef5aea3cad4ed52d7', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62ca522e8d772e574d63b40e2383c0b2', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '65ae9629204b2a7bf0ae441e1482f157', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3558255d9ac232e4de3b5330fa1002f5', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4d3522f4f6151c2f162648198e242ab5', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1511aa3a2e91efab5cab6ec4ec7e19e5', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '80f938cfe5e41b647adc5ef617671b32', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3e6e008d5f5130d514e3e9be9934b315', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ab38dff9865d68fd20c212f6d44a3f6f', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ddc2a024f24fb32914f1d7aaf1e568bc', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5839b4788335c911ec203017af0db1fd', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '33ef86af7b2d27364503fbc0678c86aa', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'acef11cee2972e715908eb66990a6ee2', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'abe742f6c0aeced31a6f07693591409b', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4de702106d5e9a1df334684f3ea89887', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:57:10', '2015-03-22 23:57:10', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:57:10', '2015-03-22 23:57:10', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:57:10', '2015-03-22 23:57:10', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '093306f8bc014f1f14d185b7d04cecf7', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '89ee1cd6f1aaba046a55aa398030384e', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e8048b7f2acbdd0c4eb5ebd736e01ccc', '2015-03-22 23:57:10', '2015-03-22 23:57:10', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0faa0702e1bcea27c7baec25be0507f8', '2015-03-22 23:57:11', '2015-03-22 23:57:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '21d0ec474ed2721b8ea0a20d8faebfbb', '2015-03-22 23:57:11', '2015-03-22 23:57:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ebb5bf18ba3ade151a44121c2724bfb8', '2015-03-22 23:57:11', '2015-03-22 23:57:11', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:57:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:57:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:57:11 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 23:57:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:57:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:57:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:57:11 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 23:57:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:57:11 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:57:11 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Sun, 22 Mar 2015 23:57:11 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:57:11 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 4]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 4]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 4]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 4]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 5], ["created_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 5], ["created_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 5], ["created_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00]]  (24.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2bbc3f1113afab13208782a1a81332c6', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a1d800f67cf118dc3dcc3ae9dccf8bb9', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '73c653c302a5fb0f71c9ffed06c8ea26', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '638bed5d70f6493cb9169b7b804684f2', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3122f36e5805b3fb91a511c077b903be', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aff6dcc02ae70dffcb9e3e9a0c421ded', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e26de967c9ab76e6cf09c960baf9c064', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bfc75ee956b702918dc9431f68708036', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6da911c875ddc4b291808e2b12c7a833', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e26c0f139cfc683852adeba764d5f291', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1a0ba616d735bc799847b50f16898327', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '82a2d0efb0fed3cfafd640b5679ea213', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2fc73cdd7fd2bb89e86454b68957f70c', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dfde1c96cfdd6121c0de7137cf2f2559', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'be155d4af9f0899a61598ce4572d9902', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:57:58', '2015-03-22 23:57:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:57:58', '2015-03-22 23:57:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:57:58', '2015-03-22 23:57:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3970313d0dda471f35a281b6c35b22c4', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c849790a9aeb683fa0ef5e3466f01c64', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b80adb50e29a4ee97ff28ccbd063d4de', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6d5929b21069d15387f46ed038a465a2', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8da805e3f7c130499c02611f02e793d7', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ffb4e6ad6c97e71517d8ba4f886d5311', '2015-03-22 23:57:58', '2015-03-22 23:57:58', 410780858)  (27.4ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:57:58 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ----------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00]]  (15.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 6], ["created_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00]]  (17.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 6], ["created_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 6], ["created_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 6 [["delta_id", 6], ["updated_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eff22e161b783151f56ea04e00033226', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c9078618ae9c05474b13b5623fbe655b', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1d3bdfb41a39ad6ed42d62fdbff8031e', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '79d81b670bc23c44de9386447290beb8', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6d76262989160b6ac5aeab0d677bba33', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '98c0bed07a3d36c4bc4c702d05692491', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b39988fc446a8e7119dc0d3f666eea77', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ebcdeb33fe0ddcf6c2dd48cca814d5b5', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '78003ba790b3405e956a715b022161c4', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd53ad0fe69dfb985a60de2ed80d1d062', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '078185570fdd448bb02f8a48f035494f', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd76047d4b8651761f53db6728cbc34b9', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a1bb17311c789488e35766e4bb3dcf26', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '119832771742cbc403765018379cf36d', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd0660649fde25cf08da4430ea5104ebe', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:58:26', '2015-03-22 23:58:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:58:26', '2015-03-22 23:58:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:58:26', '2015-03-22 23:58:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1e3976b202f2c77ed8df6f08e1877aaa', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c27d5985e1f3a7fb54ae06be1af5dcc8', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '19a09df41b2f6e625dce67f7c69ccbfc', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cd5604dd47dd43a362502f56c14b49aa', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4f349bfacb603b7b02a070da8f643717', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '01c897241d69446baec7bf6850807ba9', '2015-03-22 23:58:26', '2015-03-22 23:58:26', 410780858)  (28.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 6]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 6]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 6]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 6]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["alpha_id", 7]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:58:45 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:45 UTC +00:00]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 7], ["created_at", Sun, 22 Mar 2015 23:58:45 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:45 UTC +00:00]]  (27.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 7], ["created_at", Sun, 22 Mar 2015 23:58:45 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:45 UTC +00:00]]  (21.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 7], ["created_at", Sun, 22 Mar 2015 23:58:45 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:45 UTC +00:00]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 7 [["delta_id", 7], ["updated_at", Sun, 22 Mar 2015 23:58:45 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '302e7b3b44ccf854b4f8e60b6f132c00', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '346e288ce19812c3dc977e6cfd413577', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e5f4454e9f232c00b3ac1b33ad1caf77', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '328b5ed4a223993415e36df7eaf0cafa', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '362480bb42a2808f445ff9d54182525f', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd2a9281b59171f1d4479a32b7ef3a2c2', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2b768cccfa3f1cb3f72d2a7c5b5fe40a', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c26b6af509b28dfcafa0e245b06383e2', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0296ff7cb5f669359970117583e1fb89', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '996d9899b005139811bf99c9272f694b', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '28a0e965844e62b46aa9221e984f43b6', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f1bcf6bd65d2e856b427f0f9a7168bfd', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '02cf7e67a1066002692425d74539358a', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b266c593177218dac5a63d836d2df53', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1d1841a8cf4fc2f9a53591c0119b05af', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:58:45', '2015-03-22 23:58:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:58:45', '2015-03-22 23:58:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:58:45', '2015-03-22 23:58:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd05e9a4e58e859196d4e07245033e8f3', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd1438831a18e42169766e224a16ad31c', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b5683fbf0a5ae326c1633d17f9c497e8', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8f997a577e78f8046fabb8e800f0613b', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3d1722145d5df3efef8625369692a38f', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c0e69ab3d756b0cf537556b83c387a4b', '2015-03-22 23:58:45', '2015-03-22 23:58:45', 410780858)  (19.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 7]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 7]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 7]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:58:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["alpha_id", 8]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.8ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00]]  (13.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 8], ["created_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 8], ["created_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 8], ["created_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 8 [["delta_id", 8], ["updated_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0c2aaded463326a5c8856e03fc2abac3', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '084ab91ea461b13854368af9eb9e56f7', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '369a66d4a3c8264b54a660c315f7871e', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a93f016765e13c5e5035a693fe7b2cf4', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5da88e485c3846f1831e70d24d86832a', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7c61f8f82d0a270340ffbca861160fcf', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '609ee3b50de0d924ff0924ba56eebf1c', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2b09c18d6330768c5e90a22de3f260eb', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8e3fd9c3ec5ff02b68023ede69ff8e24', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '99c8b3e8dc314d16bc78f439c756f0fd', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0c483a35e7a05a5f1e111dd9dfb2a152', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b54005c2a85a70ce2d01b6c08f2b0c98', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f12815ee81796301d07f4b214599ed5a', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '840420ff0a9482be7470889a88fad6c4', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0b15a2d17156d0da1569393030540900', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:59:59', '2015-03-22 23:59:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:59:59', '2015-03-22 23:59:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-22 23:59:59', '2015-03-22 23:59:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '16bc2678885ebd76d602c099daea5ff1', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f7443694ddec719cb98822f6a75941e1', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c02ea275d91ff09ccd3159e4e199cda3', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0854c147b1c3f40046ea373c2a2725c7', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f03ef269dfe41c4bdafcaed95b3b52f4', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '28d6baf639dade13636b095d2951630d', '2015-03-22 23:59:59', '2015-03-22 23:59:59', 410780858)  (25.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["id", 1], ["updated_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 8]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 8]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 8]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 8]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00], ["updated_at", Sun, 22 Mar 2015 23:59:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 9]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00]]  (29.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 9], ["created_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00]]  (23.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 9], ["created_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00]]  (23.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 9], ["created_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00]]  (17.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 9 [["delta_id", 9], ["updated_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00]]  (28.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c1e304ef0080cdfda5e7ec955866bef5', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9325808e1824bdd6d731795400d34cb4', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7f46395a6333a8fc3164d52b89bd266b', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2b57adb92ccdeb56a06d55567890d7c0', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c4d048b4e9cba2a30cae41db430b6eb0', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '69d48412db981d72d0cdcb1b4fee4190', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '702ca8931f9815679101da5eea91928a', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b0f445468aa8a2d18ffb244fe6664858', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1747faeb352d6430cd80d43517529fa2', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a7ecbed0cc3d4eb4fe43d2769e624536', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '47102e45e4d1526e8c0f5d364607e6ef', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0291a6fb4a3194d51533786070771e09', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '28a5d6c005bf6d36adc9b8738f16697f', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9cabdc2e6f8552d22f1156c765df0465', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '44582df0d7479d90e7b4af448fa83fe4', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:01:05', '2015-03-23 00:01:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:01:05', '2015-03-23 00:01:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:01:05', '2015-03-23 00:01:05', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd1579a004b3ddb0c7e8b9546182700de', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '035512e3b004e006de648d211e9f4da2', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ed959095ae8c9fdb67b77275e4395b34', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '774fa9be6be2eba8490749376022f875', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1af33c6c83e0ca091e4d5ea191d0a91f', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ab05a6ee2c3da26470610523729f2b41', '2015-03-23 00:01:05', '2015-03-23 00:01:05', 410780858)  (32.9ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.6ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:01:05 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 9]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 9]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 9]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 9]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.4ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00]]  (15.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 10], ["created_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 10], ["created_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 10], ["created_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00]]  (27.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 10 [["delta_id", 10], ["updated_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00]]  (28.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '02ab89429d79f9f8779d3af3dd9385f7', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7d840220742fd5d96676b2f5fa5f455d', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4bf4036a059721c8e650981d8e01161d', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a55638611b9dfb291f63bae76cf35f97', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '70b583048f84039e20318ac0bb76ab24', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '99969bdd52193c886911262d7a6515c4', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5fde5186eafc43a23f1da2e05ee5f9d2', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2e3b88b740474ace7768447eaf3d51cc', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b7c915f490d49b8c7a888b49ff975b2e', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ad19f57429ae4e70d9e47a9825086974', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '16d05b9da4f247856d70fe5d4d8778b9', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6481e14f27e01dbb999d5a13def627ee', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '32d40f6d8a512c1515edfb4435583a8b', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c1aab9a72a8ab48243490227968df3d7', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e95c0738edbebb0a54cb8c57fb80edf9', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:01:21', '2015-03-23 00:01:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:01:21', '2015-03-23 00:01:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:01:21', '2015-03-23 00:01:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e9935a13f03057942e44e23a0b408a58', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0cf9db0558a1c55b6cf2ffe78483e0c5', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dc31a4e52caaf62028e9cb962258bca0', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '66cb77bcdc6efb773d1b10af6e28495c', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1840161304e7fb9f702775ed24a35199', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7863c5337a20c47513a28bde4f7f31b1', '2015-03-23 00:01:21', '2015-03-23 00:01:21', 410780858)  (23.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:01:21 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 10]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 10]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 10]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 10]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 11], ["created_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 11], ["created_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00]]  (12.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 11], ["created_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 11 [["delta_id", 11], ["updated_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75d185fe631ad5108059163106bd5d77', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4c826a1254a69b87fbb455d29b19482e', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bbe56d97dfe2997be0c16453536a1ac6', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7920718582adcf0b62c8df448f55a791', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dcedd592bcab44a4b03949d6c252f167', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ed12cc5573488332e5e5ff4367b7b5c3', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2af28378e1898accaa5409630f7372e0', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fc6111c18ad3181a3b46bea94b4e29e7', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6a26b2ee47a3793b9199158fe8cc0d77', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '91e3f74150042909ba2713cc17515412', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4655fc0c299e4e990a4ee0ee81195690', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ec1121562273d175a9ba20f0e1602e98', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b092fc6817cee01c09539744c20cbb4', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2ccd7ec184423f707c70872151e506e9', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '786eacd33253cb2ec6390f3d35335b24', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:02:40', '2015-03-23 00:02:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:02:40', '2015-03-23 00:02:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:02:40', '2015-03-23 00:02:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c47e646fa8490eb1a5c7707fbd91c7c5', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f396fc1b1340320ae2ecd9c0594cbac6', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fc0d4f600740ca6d1b55d019a94adf27', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd2a32919131eb5cadd68a7c320083a00', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b5c46771ec8b87e0ab72ea5268dc9809', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5315eb165f2a6b40e0d036783b289133', '2015-03-23 00:02:40', '2015-03-23 00:02:40', 410780858)  (41.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:02:40 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 11]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 11]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 11]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 11]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00]]  (13.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12], ["created_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 12], ["created_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00]]  (26.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 12], ["created_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00]]  (33.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 12 [["delta_id", 12], ["updated_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00]]  (27.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '771d71452cd4fab093a082b3968fb8e0', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fcdebe6881f87b7402f2aba92b520144', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cf4a369edf4676369c783ff1c58767a3', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cf5e7208a93e7a87a5f61e80dc6b0600', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a79d85de59a6e7012ecd8c61f3b1ff59', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '124a3c709f74a636088bc42903c1551c', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '39e369331990b3f3dd59321f5c4c2a38', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e111006ebbc0ac7357fbf3e3a19e5d5b', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4bb24ac39a9fc57af70f3f5573b4a115', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '55cb301ff599b620c2799e2727b81fe7', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '39f1575c023b4ea728a7ce1fed3c0828', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '992ff9524674c357c072f2d5f5d5d55e', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '27c9e6a48b91729c2bbd50ee1830337a', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee6605ab9c776cb95e3bcd180fc654b1', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'db7ff7c8bd8cdd63d542e385c6f3c2b1', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:04:21', '2015-03-23 00:04:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:04:21', '2015-03-23 00:04:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:04:21', '2015-03-23 00:04:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8c036db8425d55d1d6e1da162c68034b', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'dd7adb8cff26b3e69192f8ac32ee789d', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '25791f56661560a7d2807e71cd69ee43', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'da28c97312129a3a094a2f2316183d0b', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd1b8674eb63d97de0a845e84b0329756', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9c16cd8275dbb8c212021181dbad7c4e', '2015-03-23 00:04:21', '2015-03-23 00:04:21', 410780858)  (20.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:04:21 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 12]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 12]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 12]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 12]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:07:25 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:07:25 UTC +00:00]]  (17.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 13], ["created_at", Mon, 23 Mar 2015 00:07:25 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:07:25 UTC +00:00]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 13], ["created_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 13], ["created_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00]]  (26.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 13 [["delta_id", 13], ["updated_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00]]  (20.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e91f51edb50a940d962a90054fc0ee73', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a8ebc5857512cd2dd91383d6b6a61efe', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '67c4c746169bc48d1a657a914605d7fa', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c031a0e6f95fe8b0f7f0cb6a53a1c1f4', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '36879c965a15ac0a84e1938e66c71929', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b75ebe513c06a283e61994f30f4ed6e5', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '27b70977370f7f68a5f6eb58a06c537f', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2b0f32932076508bdda680a70332738e', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '059aaff9e36da700200dd6889df3d680', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b7e3fb3cc3734c040a57ef881d5959ce', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd55d02f298f1c4fae8ce11c1d93e52a5', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8329cf0285e67ec516f920654aa0cfe3', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f68404e8c2231eeb4e8147c7a76553c1', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a5dfd2262a34914650b74f51c55247bd', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8cd7e6c55854fc75b42266c18f2496bc', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:07:26', '2015-03-23 00:07:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:07:26', '2015-03-23 00:07:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:07:26', '2015-03-23 00:07:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '359178e64de777de1a5004ebb2f5f894', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9adc4d6376ce692285bb75a19f5a00a8', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b894273b5d9062cf28e55dfdbef4e333', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1ff40fd37ef4ccf97e6516b3361a4ec6', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9fafef1aa5c61f48a8b8228f9e4780a6', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4f958aeb45d0228703f5cf8c7fdf6fa0', '2015-03-23 00:07:26', '2015-03-23 00:07:26', 410780858)  (18.3ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:07:26 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 13]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 13]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 13]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 13]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00]]  (31.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 14], ["created_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00]]  (31.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 14], ["created_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00]]  (17.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 14], ["created_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 14 [["delta_id", 14], ["updated_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '047b79521d67c173ab8ce1b9addb6672', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd2b2644d201c8cda7ad65fadd93f0acd', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '39fd950aa08c2cffff13a625f3904276', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7d69f8fee069d06aa22b5e8fb673c107', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e9bc2e2f3364ef0187a1f5a79a6a8129', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '22e48d93f9305e0f266da3f343376964', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1c77f6fa6c5bb5de074e3b53f22605bd', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '93ebbf29c760f89eacf22eaf687ae251', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '67eeb2fe30c86dc813e8076e2e567977', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7fa2bbc1575b2000ecadd9046659a8ec', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '23f3162bd8141cb4475dfcb05c4ae14f', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '229be22af2947942e27be213b07569a2', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0765a3d3e3a97d281e36919c6ae77287', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '21ba46cd882f15cea2446b7fb753b821', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e18d9e3e6c8bb368993f023c3ef19896', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:12:05', '2015-03-23 00:12:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:12:05', '2015-03-23 00:12:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:12:05', '2015-03-23 00:12:05', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7c96fb71fc997c149c84799c1da653e6', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'af0672e9c2fe086b6718aae7b8dc4de6', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3380c304943c05fa08143acae713c75d', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9207398ccc075866d14be4d9ad6ed3b8', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c2fd2a778789bc259fe50d68c4c2ee52', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '97d976add434e987195352af1ca93f00', '2015-03-23 00:12:05', '2015-03-23 00:12:05', 410780858)  (24.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:12:05 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 14]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 14]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 14]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 14]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:12:44 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:12:44 UTC +00:00]]  (14.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 15], ["created_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 15], ["created_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 15], ["created_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 15 [["delta_id", 15], ["updated_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00]]  (20.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e0f6733cd718f8fd411de01702bc5857', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4d1aa6f6af96cfd2988f1357f7eb056e', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '93fb0d7d0665fb7f56c46c80d3c6d4e0', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '533cc489216d53894aa104c0f9f5aed0', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f4fa807409f0fb95620faef6c06a6e7b', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7f699a71b2a453ce4605ed344ce5f628', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ab1f88b38ee457204e336b3dcbbfb39f', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c8b240299da6f6b526ac325f36f1fc4b', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4397a0b6363052ac32a49d46a20b5ab3', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '442ccd2756ad52cee6e093058ef96030', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2c826388c37aca3523d2330ee1cbac37', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '30dbface7b58b46e5da49530cd6ca04e', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c795680908a9d25833705446292483fb', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '87999f6c32fd43f7abda265aecd9c0db', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6bd6698c8811648672c8c35fc4f77be5', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:12:45', '2015-03-23 00:12:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:12:45', '2015-03-23 00:12:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:12:45', '2015-03-23 00:12:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '95ec4489aac82003d61e334b6b146710', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7c15b35f408c0bef057a517e36c84060', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eedcc9c566f6fca8a3ae25af5735d491', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '75ecda31b8026978b3c8498bdef4b510', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f471c7ce7de9c0445e108febe9242678', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b0a393c84a57fda02ded11709e646c83', '2015-03-23 00:12:45', '2015-03-23 00:12:45', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:12:45 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 15]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 15]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 15]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 15]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00]]  (24.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 16], ["created_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 16], ["created_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 16], ["created_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00]]  (12.1ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 16 [["delta_id", 16], ["updated_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00]]  (11.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '79f0e7b6c6b2d8d432f432c91062b253', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '47f0de320f3cabc472a7fe04ad2d6813', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3b0cb6f7c8d9868af673add23d6247ec', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3edb7d0b9655d0472505ed17b8c0c938', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '69f26b2d4e9a26413dc4e57d27926991', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '37ce711f8ec2010d6e47292d8f0ea082', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd8c758bf012a0480f48cb2fa3ec663a9', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a0851e40803efa6d6a4ce09ac96a05f0', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '044cc599468ff0de16d8bc2a09c8d54e', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd836ad8a352c32f66244df28888f38da', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ba7e59b1f41fce723f314c173e52c664', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '55c94feca545d722028742c5e0ca3ada', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1f1cf6627cf439f9ad3201e447cc38cf', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '46da2bb8b04e3f2fe4b3b3ea69030881', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e390749c2e62c1f22b0239c551e048d2', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:14:17', '2015-03-23 00:14:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:14:17', '2015-03-23 00:14:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:14:17', '2015-03-23 00:14:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1f77ea28c09cedcb818e96621cedad41', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '54ec273408b47d53bbce35fadc13148d', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '420439c4a64ad9157cb9756d39974e29', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '933b4055e94e509f8c29bdaaf24dff27', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0b85a3981f9ba8dfc785595935ff1d36', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b1774c0ed6391186c930695c6e60deb3', '2015-03-23 00:14:17', '2015-03-23 00:14:17', 410780858)  (13.3ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:14:17 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 16]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 16]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 16]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 16]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:14:34 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:14:34 UTC +00:00]]  (21.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 17], ["created_at", Mon, 23 Mar 2015 00:14:34 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:14:34 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 17], ["created_at", Mon, 23 Mar 2015 00:14:34 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:14:34 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 17], ["created_at", Mon, 23 Mar 2015 00:14:34 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:14:34 UTC +00:00]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 17 [["delta_id", 17], ["updated_at", Mon, 23 Mar 2015 00:14:34 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '813cb35e0da70679dfbb54020c0766b4', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '79b7d37ca62b25b4dfa893a2386c4244', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b56ea74ccadeeefdf48f02c56f2f6176', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1ac251d092f876990d97e637e64d0815', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'acc8fb6e65169c0a6c027207b73e15dd', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '38450782169ca18a77cd3c7df86a5338', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'de07db710a75fb4cfd68917edf4dbc46', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '016e66a4309b7c4beb16d5d5067df42f', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2dfebfe82272817a5033df10819b9e18', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '72bddfade61559de4ea2cf1a7006f293', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6c880615ccdcd3bd423b147872a987b4', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '14635f537d599b4bb8fd2b9085a26de3', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2597896399ac4d65266f8981235a375f', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '270cb05f963d623fb0d627f0a9057e15', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '60909c921a8860d3e6638162cf060a58', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:14:34', '2015-03-23 00:14:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:14:34', '2015-03-23 00:14:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:14:34', '2015-03-23 00:14:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fbde05c665b5a4a1b322a7665467d661', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6f349d89ef858bd72bb98e3115e7bf3e', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a8c9d076e48ecc745fc13d693160b4a1', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'eeb98032e4c1431ff42a75c15fa898bc', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '55c78cc1c48e19e4dce063b4cb8dacc9', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1fafa18cdb2fd18ae1cca895199e9de6', '2015-03-23 00:14:34', '2015-03-23 00:14:34', 410780858)  (13.2ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:14:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:14:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:14:35 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:14:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:14:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:14:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:14:35 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:14:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:14:35 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:14:35 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:14:35 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:14:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 17]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 17]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 17]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 17]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["alpha_id", 17]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00]]  (37.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 18], ["created_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 18], ["created_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 18], ["created_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 18 [["delta_id", 18], ["updated_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00]]  (22.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '96db311c4aa4b179dd1456a8a8ffb64d', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c91cb04d1136946077303426b8cd0146', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bb5e477842f51cf3a7655aa8a455a05c', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6e1243330e0e50f9e0c87574376b532f', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0cfb6b024872b7158178a9e1e6fa5665', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4136b7b48627a8f4c7dc79628d67a1af', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2ddda66a9f18f648c304b0588127891c', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9af99016c527cf77d1a62a2a6e5929d1', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '344a0027fba16c97696c470874ce2cfc', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4a13609fe88899d31e9542f2dbf15113', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4e5b537fe8e25c549882a576c23fe473', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dc200468eddc4c548b5d33c971fa56fa', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'de208afd2d8de8fc60b9fc98ad2dab08', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '09d452d81ffcf15771b7ba5cda56fe77', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f9025ffcbfb75cd2c7dbe12aa64ab62e', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:15:11', '2015-03-23 00:15:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:15:11', '2015-03-23 00:15:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:15:11', '2015-03-23 00:15:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '89bd1be38b916d3e0c5d0114dd1c217c', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ea6ba8cbb8b9da22f9d47f1eb76982cb', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b834cdf9eda998946bfcdd4578c145b9', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0a3c5109f179293eac973a5d4be4c8e7', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6d4498813aa4df0fdaafa23063d1e556', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ea9548221411bc79773ab15b50fb9137', '2015-03-23 00:15:11', '2015-03-23 00:15:11', 410780858)  (37.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:15:11 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 18]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 18]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 18]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 18]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:15:42 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:15:42 UTC +00:00]]  (14.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 19], ["created_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00]]  (17.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 19], ["created_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00]]  (12.5ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 19], ["created_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00]]  (17.1ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 19 [["delta_id", 19], ["updated_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a0fb703f9e8b8b76a39633a6393944b5', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '39bba6b6bf757053062eb942df21c874', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '15f27dc436548b7145e8d15374d2eee7', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6af1bc26cb8270242cd4a822cdd814cd', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '83b5127072504aebe03647b5f39f3a9d', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9334a6539ed98b03d3ecb7ed2320c9a0', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'baae82cb8e4ec45700d5aa8b557cc910', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '13aa4dc186a25cf9c00e864676c59896', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '045c4ee4e05fcb9c876ac39a14284fc5', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a369081f3fcce0983c9489387f0576f8', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '74cae8294eb03cde2e3b39796a8c8aec', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9ddaed4b959506bed20355248740b5f9', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2e574a7319ec8df4d43a216d28e7c2c4', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9f9ad3d1a08fdac70612dfb0eee3d09b', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3f6275d7c5e1581632799e4eff3bc94d', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:15:43', '2015-03-23 00:15:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:15:43', '2015-03-23 00:15:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:15:43', '2015-03-23 00:15:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4208a08bf86dd3997260af47e0010970', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0d3c68c185566c61a123a3a47f2bd4ec', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '177a03af60541bd83567caaf725f6f60', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dc341a2ca99029e2d7db7a2cc82e8856', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '32518fc4b7e2d197c09507e5700b7215', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fd65707be71bfc03ecef4cd1b1b8cf18', '2015-03-23 00:15:43', '2015-03-23 00:15:43', 410780858)  (19.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:15:43 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 19]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 19]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 19]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 19]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["alpha_id", 19]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:16:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:16:00 UTC +00:00]]  (29.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 20], ["created_at", Mon, 23 Mar 2015 00:16:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:16:00 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 20], ["created_at", Mon, 23 Mar 2015 00:16:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:16:00 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 20], ["created_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00]]  (16.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 20 [["delta_id", 20], ["updated_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00]]  (27.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b502917e9e4842a9f462e99e72b56b6f', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b7e5fb300bc62151e3436b0bc904ddaa', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c67042f6bde6652bf8342ad7e4e0c39', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f93f1c8d54143cfd2e8bf540f1295100', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0cb393c570e4a1a2ac0d8024781b0af2', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '807feef26823485a5a3480190101f930', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ab425d6c6d66a4e30b7dcfd4c4f695eb', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd6ec2907fbe910160d0c4576f68a7dc4', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd1a796e9877f278f023b80092ebf1751', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '43e1acb2c34fa686986817b34a98da13', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5bda03c88f42c3516db2865e6368c03d', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e7ab29b5201a10ad24c7b52dff908492', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6f810b62d8d2cf1b748530dbafa033f9', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5abadf960c0ed39bb84c28c43d521806', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8ef40787828fd5bfd59db518c2388beb', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:16:01', '2015-03-23 00:16:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:16:01', '2015-03-23 00:16:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:16:01', '2015-03-23 00:16:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '67272d979e6c54d5fc20997db3d2faac', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ba16c99c98915491b31b4a10dcfa2fb1', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6a7a3a27be836837111850c7e3221c68', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '417a04ef138362d445f76a2741b9333c', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c06e95b1b3a81c0575a89090c1694e65', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '13e4aaad6bb54b79f34d3288bc515523', '2015-03-23 00:16:01', '2015-03-23 00:16:01', 410780858)  (22.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:16:01 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 20]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 20]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 20]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 20]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00]]  (20.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 21], ["created_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 21], ["created_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 21], ["created_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 21 [["delta_id", 21], ["updated_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '437e679ac4fd58131d501c834690c7c3', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2e346ad34ddd53c755f27b744325318c', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aab6514f05bbd46d1b577a07f5d37611', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c74568f51cc88a99d1e1d09a2e0f3c94', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9ae642ebea428541790270ffa84ccf99', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '632d90e8fb1350abc6e029ff97fe7483', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0fbfa20b77dcd85ee6deea9f45bbcc22', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b3360cb31c6310ea9f1385ec2961c8e7', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5ea993ad6b0f90ca8580218f8dff5bea', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'dcae156715813dcd3c62d5073db75393', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b2e52d2f14ddd9b7ac3b28e5940dd012', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e74952eb9eebdf0c28e38bc7bc21b071', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '81df3478214b17cbc9bb7050d6bd4b7b', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0feff337f5699ee4a860139c76786484', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '45e6454ed0313f26bcb5e28009f6b8c3', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:18:29', '2015-03-23 00:18:29', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:18:29', '2015-03-23 00:18:29', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:18:29', '2015-03-23 00:18:29', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '751e2a5ab9b3d7d9bd92ac8e44388fa0', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4c8673cbe007a3a301a000ee80079705', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f36e998915936c52b5dc280bc364adf7', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2b0f708161293879aae7b04934b5c911', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1bb122a3b93c06269090648917524ecf', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e57be822c564c6f9f2e5e6dedac17cc0', '2015-03-23 00:18:29', '2015-03-23 00:18:29', 410780858)  (18.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:18:29 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 21]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 21]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 21]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 21]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["alpha_id", 21]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:20:23 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:20:23 UTC +00:00]]  (33.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 22], ["created_at", Mon, 23 Mar 2015 00:20:54 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:20:54 UTC +00:00]]  (27.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 22], ["created_at", Mon, 23 Mar 2015 00:22:12 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:22:12 UTC +00:00]]  (17.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 22], ["created_at", Mon, 23 Mar 2015 00:22:23 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:22:23 UTC +00:00]]  (17.0ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 22 [["delta_id", 22], ["updated_at", Mon, 23 Mar 2015 00:22:35 UTC +00:00]]  (25.6ms) commit transaction  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00]]  (18.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 23], ["created_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00]]  (12.4ms) commit transaction  (0.4ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 23], ["created_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 23], ["created_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 23 [["delta_id", 23], ["updated_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00]]  (25.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '84cbd2e0e6eef5b8153db2d049e29d08', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5fd3a5c8a94ce928747c0fc1c3d6bbc3', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '32b7000ffb2d8873680e61a7e6c730ad', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd8e0d63982f3507e5146b39a2581d2a6', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2354d0bb03c1591dac2b10da1259406d', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b73e0bb459f823f7d6fcfd29c5939db', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8521807379727b7392dbafba002f64ec', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '91debf2eafb479a9b79eadf208d43f1b', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1bd4dde0192d7464479a638b679a7c39', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c307bfb748992b52fdcb325d0e3f7044', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9a75c7fb0829cfa459c0069043f01587', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd5407dfe3fe6aab91481cbbd3de1d1ea', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b0f3aff7ad009fe2bef819a82d774d0c', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '97df33c46e4ecc1847b08dac0aa452e7', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a593d6d2ff97b0a38b5057aca2829821', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:37:38', '2015-03-23 00:37:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:37:38', '2015-03-23 00:37:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:37:38', '2015-03-23 00:37:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6f87d0c4630b22389fb2ffa6950f9bb7', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f85a6a54712bd04be1dcc795a4bdca13', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9bdaf502ba25a9b4bd088c391a95aa0b', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'eca2746b4bb90b08daad06a3cc168ab9', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9de6624be3f1a0e5917c40f9deef024b', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fc7dde69ffeb1c2a406551c0dc8f9bfd', '2015-03-23 00:37:38', '2015-03-23 00:37:38', 410780858)  (24.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00]] SQL (0.9ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:37:38 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 23]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 23]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 23]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 23]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["alpha_id", 23]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 24], ["created_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00]]  (26.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 24], ["created_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00]]  (12.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 24], ["created_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 24 [["delta_id", 24], ["updated_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00]]  (17.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b93346285e3b236ddbac1ce33f60ea1', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9151e71080417a6852bc2d8ff5c5ac97', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2760dff27c48f30356cbf9571d0fcaf8', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3cec045454a9d478939eef3b857baa89', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0d3a9331946afe9772596cbd630518e5', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6f10529e0fc8acc849e5db836e86de9f', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '071b01b60969c98ddbd05056111fbbf3', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '43776ba2c58a276e7608a89ba6d8f7e9', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '08df95544345cdb1455404b17bd15e1a', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e2ce2266b70e63cb51ab84f57fd60a17', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9c004c4fd5690fb7dff10955680e5725', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd846d037da86da1271a2b736f1bffcf0', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c8ebde586dea8eaf9b2f64c783b036ae', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '11f3d0a71d3b413c502249b52775c1a7', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7e51388b5f8589b14c9a708e3312036e', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:40:00', '2015-03-23 00:40:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:40:00', '2015-03-23 00:40:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:40:00', '2015-03-23 00:40:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '59c8dd6074815a6df278dc6a6d6a04c2', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '80ac1eb86f170b0cd7ad76e84446dbfe', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bb668542bafac85bf93f7d26ae3208ce', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b9ffe76f039b0ab1f983a0910202e6ab', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4f2891affe9e73efec521223f013ebf2', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3388a0dede0e49ccfa4bf249ae4acdd8', '2015-03-23 00:40:00', '2015-03-23 00:40:00', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:40:00 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 24]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 24]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 24]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 24]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 25], ["created_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 25], ["created_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00]]  (33.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 25], ["created_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 25 [["delta_id", 25], ["updated_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3274f4183406896cc50794fad85be90e', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0b1a430638e6bfeff2968f2773c2556d', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9e017e6cb4b34de5c3493f1f6f4c152d', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2340a20e1c78986e26ca94d1abddd57a', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01b1e31e015a3ef6c2082d3175d2f137', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ed86bc7c9b52569b75921855b418741b', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd1b7fa2fc1f26db9aa2dc9c2faa221c7', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '557d31b76656b5b1b895eff3ecc694e7', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '123efae993fec5875c23fac1e6c01470', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '53f66a17096409341d6f9f48b45a2b61', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0461d40114546fbedb787fb5bdf636f3', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c82ef4863a05b538af0447615989bd83', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9163a909fc3beef415749c26b1c2c75d', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'de7c03034f2234047b8e39aa137cbd19', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bb8a22ea8e964c5a4f5f0f404b75b572', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:40:15', '2015-03-23 00:40:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:40:15', '2015-03-23 00:40:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 00:40:15', '2015-03-23 00:40:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8ace6a2a9c7cd8cd123775c8830926ee', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '764e17cb1f88a6e90e875b32de8cb42e', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd1fe68193d6f162ceff3201f77c74c31', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '47d2df1c8b78440c10431dc3368aef24', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1c15badd9d762a861502073d6dea69d6', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1863f594edcd90fd0c854d4372e897e7', '2015-03-23 00:40:15', '2015-03-23 00:40:15', 410780858)  (13.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 00:40:15 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 25]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 25]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 25]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 25]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 26], ["created_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 26], ["created_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 26], ["created_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 26 [["delta_id", 26], ["updated_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00]]  (23.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9b7ea50a379259495a819f9dfd1a435f', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '92a825c12fed6e0500606bf84203f892', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '84f309648215471d2dc755bc5eeb2c2b', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7e495e8b1961a7f9e4edf72037c6012f', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8f6f3c4b82180dd57810eb8117c6a9bf', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aed9b20448eef409fd73bc680937a68d', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '29fffba7e2eac348eb37789e127b8795', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0dbf5bc9d39a180f0a6317ad63a7c056', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1a1a940a69775f9729f08ee6b595643c', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b3a9d755713a42c4e5b74c74100a2df0', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fb9af32e37dc97c205104d959021202d', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dba43c490f37bcabff9b50527aedd282', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f66b6f80c922c81bd0bdea5415e560c0', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a32b8a5477cec196d2bad99665e06e96', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3ac2dfeeb8a1c877cc07710f7a508aec', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:05:58', '2015-03-23 01:05:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:05:58', '2015-03-23 01:05:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:05:58', '2015-03-23 01:05:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd1a1c80a35284f97168c1e09c334afd6', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8df81bcbf4af43a27c6987125bd2c09f', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '35d53b215b72e1df957a51b167160483', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '860bd0b397b8e643a05d2b4cf5b012ab', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '719010e0e1872a884dc0c0b2d5aa5105', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '81862e72c5c540de97d99782284edfd5', '2015-03-23 01:05:58', '2015-03-23 01:05:58', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:05:58 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 26]] Alpha Load (0.6ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 26]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 26]] Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 26]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 26]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 26]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 26]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 26]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00]]  (17.5ms) commit transaction  (0.4ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 27], ["created_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00]]  (12.0ms) commit transaction  (0.5ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 27], ["created_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 27], ["created_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00]]  (12.1ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 27 [["delta_id", 27], ["updated_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00]]  (25.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4efa18ba7d0fc0ea00b74d7f393fe299', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2f20e893bf6eed3a6d57efbb85ff8ffc', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1d3b3e2b16845323eb17c108d39e1506', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '83e76019a6b82bff6ea9b18c21f0c778', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '94948519073211c2381f219458191957', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9663432056c625e351e3964dc5fa8354', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd30b977dbcb94c10a9aae60aa62cebfd', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '82dc04ee6f3816a714b886ff3bc8df44', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4ac4555350998a7eb58c99aca9c6ed38', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6a428705f600eabbb7b296229f0e0708', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ef39a08e3d7d7b25fb07023fb9ed2ab5', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '164286a15706eec5392865d0df14aeb4', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bfc387300df0eec2a8898407dc1bbfd8', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9e87980eed623399a87659518487fceb', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0c05417137398b01c81b4f51f228de72', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:06:30', '2015-03-23 01:06:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:06:30', '2015-03-23 01:06:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:06:30', '2015-03-23 01:06:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b2ae75c8ee2d516c4ff1338a4df56546', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd739678c27fbb1324e9508c92d751ecf', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '942583c63c37806bdc74484a6ff65f61', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2667cb8990fd3a54a1223d66e85013e4', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '100dc171ff82c0df40857878cbf17897', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '681ca268ac088e261f3338e1a2130073', '2015-03-23 01:06:30', '2015-03-23 01:06:30', 410780858)  (12.9ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:06:30 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.3ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 27]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 27]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 27]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 27]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 27]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 27]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 27]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 27]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00]]  (32.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 28], ["created_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 28], ["created_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00]]  (31.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 28], ["created_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00]]  (16.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 28 [["delta_id", 28], ["updated_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '378e42d241de8a045a7d4aa8413c51af', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'caa30246100e82c5721272212ce494f2', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'db6dd23a9c60303a617d79fefcbd0401', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bc30da234ea5b5bef866d36c0899f949', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c732bce807ac78e6ae1cc4b00625816f', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0113cce5c5768f52adf33704a6ba8c2f', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd371b745bf36997ce4c1c17f68a65fed', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '240de591f2f03cf9e1303836a64afa8c', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4279f78874692d57cb1fb0781b6fd4da', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8b4ddbf7365ad8e0c3ca8951a271e00c', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '421199474b7c6091e319477ad079e2a5', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bd2731efbc9a5310fbb2308ab276f32c', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f6dc70f32152fa0dd17fee0fdab3e8f7', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b32bcdd30e867e360520ea4b5144d637', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c781a1695893de2c3343be00c888d3d6', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:07:15', '2015-03-23 01:07:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:07:15', '2015-03-23 01:07:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:07:15', '2015-03-23 01:07:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6b84a88f590b55fd87f3c09fff803c7b', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cbd21894bcc428553971aec5bbb2747e', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd599a3a9ea26b9aa514f27449f8e8e3b', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5f706815a161473344b2fe6c86bc5170', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2e93af7b7f33727b9148a74d2f7562be', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3d5bde5cffcb43a8c0e85d946100377d', '2015-03-23 01:07:15', '2015-03-23 01:07:15', 410780858)  (12.8ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:07:15 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 28]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 28]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 28]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 28]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 28]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 28]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 28]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 28]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:07:57 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:07:57 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 29], ["created_at", Mon, 23 Mar 2015 01:07:57 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:07:57 UTC +00:00]]  (17.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 29], ["created_at", Mon, 23 Mar 2015 01:07:57 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:07:57 UTC +00:00]]  (24.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 29], ["created_at", Mon, 23 Mar 2015 01:07:57 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:07:57 UTC +00:00]]  (20.7ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 29 [["delta_id", 29], ["updated_at", Mon, 23 Mar 2015 01:07:57 UTC +00:00]]  (22.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2a700e23c9d1b636da47f6a2f1c81eb7', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb75cf601375832919c334be6b9e6b76', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f3236e167e3292c7a98d5949a730ab34', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ac8c826f38e042c7e055d3080980bd72', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bbe460bddaac2532546402388b1883db', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c6a554768bc033801f2a90a5b241370a', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e224106b57835f1fe5aa1b8553e5bf43', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2df6fbe3a2601409f7bb54737b28ddd1', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8224d42d9140f6243bdd91d09043cac7', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bfaad66b4ea159b3b6968d6cbf24838b', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5f9c512a562da254f3f32c200c1c00a0', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6f71c2ce83c516441ccf0e48e535e2e4', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'efd0f9c5fe9c3087c805a00a34db46c2', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '130c16dd0579b472b1281a2b23b8fa24', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cf34496e8d976575cac23e01897c03db', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:07:57', '2015-03-23 01:07:57', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:07:57', '2015-03-23 01:07:57', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:07:57', '2015-03-23 01:07:57', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'aa309310f89e9e43a87bfa39d4a6a570', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '762095285bb7368e33591ee601778c3d', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '15645005c01937dd00854ef7ceed1129', '2015-03-23 01:07:57', '2015-03-23 01:07:57', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9141cf44cfeb309344b485ddc02f0a2f', '2015-03-23 01:07:58', '2015-03-23 01:07:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '288983dd1b50f05f6ed13a9e43be6c36', '2015-03-23 01:07:58', '2015-03-23 01:07:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5810d2610f9da1c01e0375bccae2459a', '2015-03-23 01:07:58', '2015-03-23 01:07:58', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.6ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.4ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:07:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:07:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:07:58 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:07:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:07:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:07:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:07:58 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:07:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:07:58 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:07:58 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:07:58 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:07:58 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 29]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 29]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 29]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 29]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 29]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 29]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 29]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 29]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:08:12 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:08:12 UTC +00:00]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 30], ["created_at", Mon, 23 Mar 2015 01:08:12 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:08:12 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 30], ["created_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 30], ["created_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00]]  (23.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 30 [["delta_id", 30], ["updated_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00]]  (33.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '395b4f40a25e863e73c6a47bd92d5f20', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '90c644f227cb6643efd1ab1e474205f6', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '724c8de516c7a229cab092fc7a71c395', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dd97ce881dddf24df8f33312212e399e', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3433719eba3efcda4436584b71f20245', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b204ae55a09c96853d90146519f955ac', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'eee6a88cae04a7c805242b478a8bfdec', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '774ec923f3479bf2129c860ef3208704', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a224c4441d3d74a41b87caf6c145130a', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cb81603cfd83b4d1f1443811cdac5152', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '00c18aae97e4844648f6f209a92da902', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8ea18c48f4699682625eb216dd6c087d', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1f59a309ce2a0667416c2944b7978bc8', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '93cceca9ab3cdfd5cf73662a62ac14e9', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ba737f38eac3b66110df9f358113472e', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:08:13', '2015-03-23 01:08:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:08:13', '2015-03-23 01:08:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:08:13', '2015-03-23 01:08:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9847f59f762bebca3400da468d9c7497', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f6a03aa14396525b3b0e01a05bfa98e2', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a76499fbfcc2c68a987df6e7829df581', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '42d687776ed932e6dd80b5e2b500b594', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '98434becfdbd0aeb11c0ae38b66f9628', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '43551521bdf779f95ff87384237b43f0', '2015-03-23 01:08:13', '2015-03-23 01:08:13', 410780858)  (23.6ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:08:13 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 30]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 30]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 30]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 30]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 30]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 30]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 30]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 30]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:09:04 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:09:04 UTC +00:00]]  (13.0ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 31], ["created_at", Mon, 23 Mar 2015 01:09:04 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:09:04 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 31], ["created_at", Mon, 23 Mar 2015 01:09:04 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:09:04 UTC +00:00]]  (22.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 31], ["created_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00]]  (16.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 31 [["delta_id", 31], ["updated_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00]]  (12.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75c3b3455409c8cd59fd8d300ad3d0a7', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1e4ca5ee5f29d1f385090f977f3b5267', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '590ea080d285730f9eeb8269ab5f0d90', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'de8b454e3c8d1f70da714be1df295984', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '759aaf2c977d3c9b68424b556d122449', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'afbbccf6afb8fb32d9115da4d0841865', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7f7f1beba106846a9b8a2f6b64e6f0ac', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '006bf68f9fad53a098e0e68708771b02', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '23ca94ad70c06faba343e4866bcc88b3', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3c253fcb5a6542e16330b720141ad9c6', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b84a7f162722180a9a68680cd75e6b74', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'eb574f868f15cd1965f63258b5221d15', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f1ce25c7b85cb5ec3c6b6cc53640a16b', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6c8cea7115e9be58c1a80f6d5628865b', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2daa5ba6763a6e3268925b3f26095e56', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:09:05', '2015-03-23 01:09:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:09:05', '2015-03-23 01:09:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:09:05', '2015-03-23 01:09:05', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f126630cb93e6ac875c863f91d0794eb', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7052d60bc19e894f374c76975290de1f', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1e36525fb69953fe19c430cac2cb5680', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2a5f4756e56c49e42932d5d9fe176957', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6e1aee1cff3725756e31cfe9b3423522', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ea656fe898926b2155091b692957c6e9', '2015-03-23 01:09:05', '2015-03-23 01:09:05', 410780858)  (17.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:09:05 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 31]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 31]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 31]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 31]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 31]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 31]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 31]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 31]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:10:47 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:10:47 UTC +00:00]]  (24.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 32], ["created_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00]]  (17.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 32], ["created_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00]]  (22.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 32], ["created_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00]]  (24.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 32 [["delta_id", 32], ["updated_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00]]  (27.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '83b88b480f36e33c0c7035fa77413bb8', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1e14d473c93491ab3446b4e4112de9f9', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6ec5fbeb69dbc8267b22ba3936013731', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5721506b589b86e348361ad4bac1f209', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e08b3d413d7e98093f2c77274d5a4c94', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0e05f3b5e4ddf5cc3f4159c5006f8120', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e57f8d4391d7e4d605cfa7cf56a48a52', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1d0b822eb116bf7b8fe596d92ced4ea3', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e571420484753a1393d85d4d27dbd5b4', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '055c183b6b8a4f8132b84d53c4a311af', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '85f810a2a146722e8d561cd9219885a5', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '064bc0bf7e73f0a3efab45027211c8ac', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ada3b43d8841f4f25fff1c3c44d37a83', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '355d03a9f37a2c783695e82723b1cbdf', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '036731214f2ce67c2fe45a97f1ab02b9', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:10:48', '2015-03-23 01:10:48', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:10:48', '2015-03-23 01:10:48', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:10:48', '2015-03-23 01:10:48', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ebf36309fec273ec490d306dfe659a16', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '221b6d95413ad7aa393ff708b565a2bf', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '137a74a40ebca3cfac54c97e59bd7729', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0d556d31eb59e2d0dadfbcf22b5a3954', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '67809b9e4c0881506695e2ade340cd4d', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cae4092bd6532667d5be44609bfd6c7f', '2015-03-23 01:10:48', '2015-03-23 01:10:48', 410780858)  (30.5ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:10:48 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 32]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 32]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 32]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 32]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 32]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 32]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 32]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 32]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00]]  (18.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 33], ["created_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00]]  (22.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 33], ["created_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 33], ["created_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 33 [["delta_id", 33], ["updated_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd56214599df241c8428e906287c695db', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '48b527a00c80a5b93643585c5ece57c7', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9cdb5cad036d16f82701c5ca15e5acc3', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '02001e6b4824ce92f3106fcb7a850fec', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '47a815ef75802c2f57972c3d1956111c', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '49780b082f4784fe4abfcd613a579c67', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fc212774d5ab8cbace541266900a0ef2', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e3f0cabfc3892c0e92292dbd46194ebe', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f55d891a8509dc8381cb2a0e8733b1b8', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c46e45b3075e0d64adc6a6cb378b607a', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7e2ce8023ecd7f98a45c43a2844ef178', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '95e6a82636ae6cd30728ed7d64732adc', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4696b821abcebe18940849137c89408e', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0b0ea335608cc43f5e903f71367991e4', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '22f3b260a3c2e3e335dd812e404437ec', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:11:53', '2015-03-23 01:11:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:11:53', '2015-03-23 01:11:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:11:53', '2015-03-23 01:11:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bce6ad13f24bb34e2a33408b72d32763', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '161fda2e6079762db88bcff51d8e0334', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '618f45ad473c9896e79ab511d47dcd43', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0ab32aedbbdbae283ff4dcb40bfc249e', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '07d8bab746e22af354e150df1294d4da', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '55fedcb69faf4f7d2463436cef046003', '2015-03-23 01:11:53', '2015-03-23 01:11:53', 410780858)  (12.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:11:53 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 33]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 33]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 33]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 33]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference -------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 34], ["created_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 34], ["created_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 34], ["created_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 34 [["delta_id", 34], ["updated_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00]]  (27.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6c568458bdbb5bb36549217d10891e1d', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '38720374b22080407cd057dcb251b735', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '438558c2a90680658398ade0e818a070', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2332f0b5a1d1b668b19460c1edca77e6', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8aff901e1f2e16149818b831ddb11ea9', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '116b0e45c7760c90bfd01ee789892e4d', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '791e553394eb1a4387785362b041d03e', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd2b5d0cc33a6a895834ea7f3bba022ba', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9fcd0a192a5031a1498693f434abea03', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8d0f0c74eb6a8b96cb6bef94bcdca155', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f61f85c5be5f3d087c63d13df603cd9d', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd932796aaf85042a5ad705aacf78c87e', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '52ddc440e79de9da5117e0a9f3278450', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6cdb8bd87067a7c4f35f65f041cd0883', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7026f135649e03ddfbc262f12da8db64', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:13:14', '2015-03-23 01:13:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:13:14', '2015-03-23 01:13:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:13:14', '2015-03-23 01:13:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a94961edbd1e729163e356985adbf1ca', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a27dcb80563a936b0c6241401a1b97b8', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '86c906165bd680d7b5d46498e51745ac', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'db6846195099ceb8ab3d80fcd5b4e980', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '66fcd1dc35760f14ad7b5375ddd66a35', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eea563f3afc380bd43f8a951d9d022c1', '2015-03-23 01:13:14', '2015-03-23 01:13:14', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.5ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.5ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:13:14 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 34]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 34]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 34]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 34]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 34]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 34]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 34]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 34]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:14:26 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:14:26 UTC +00:00]]  (26.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 35], ["created_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 35], ["created_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 35], ["created_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 35 [["delta_id", 35], ["updated_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00]]  (13.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '717a1ebaab1f41e7c00c63f7040f99cd', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1cbdc247e1cc689219197a1240ecce10', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7338e986196849b1102d002ded4fd72c', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '08b5e812da3c2717adeb185f86e284c2', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8eb59a96761f892ed63b7f5242953098', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '31c5e586f011349e5bac15c47f46b070', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c70c4bbe9785ed910e01b92b10736ce8', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fe1aa73fe09d5abfb1fa2d1488325ccf', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b5cd0dd75d76c0fcd254671fe107f97a', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4bb74e78612043d2196f07a457516a6f', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8f5205843dfac695aea16983a7c80e53', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ba7535b964358560797fbaebc9602cee', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '97933e5096edbb2dd59361b97d98d7f2', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '95840e5307626d9fdab948bd794b325a', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a9e8f7cdabfdf56eb565712a7e832154', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:14:27', '2015-03-23 01:14:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:14:27', '2015-03-23 01:14:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:14:27', '2015-03-23 01:14:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4627eb245db9f2567d0dceb979599e6a', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2e0615d29c059c0301b9544febe867f6', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5bf3d31cba078b29b42f51eba905dd2f', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3cde52fd5928766626da809ddeef742e', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8e2514a5ca9e0b8cc2b44f0d3951b383', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4ef6960c5864278beecf2c23ac85b163', '2015-03-23 01:14:27', '2015-03-23 01:14:27', 410780858)  (12.8ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00], ["user_id", 1]] SQL (0.3ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:14:27 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 35]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 35]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 35]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 35]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 35]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 35]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 35]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 35]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00]]  (13.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 36], ["created_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 36], ["created_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00]]  (23.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 36], ["created_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 36 [["delta_id", 36], ["updated_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00]]  (20.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '660fe8ba1416e351700281ca391fb787', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8b40619ce10759e6be32646599948ac5', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '276cb8463e1be03680059098876ca470', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7124b23620f1fda36ace9a0ecbe01574', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f2144bef303f5fa0e0d6c73cfeda2d47', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '88c658e9d6a74ff76ee37c4e081ab3ec', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '81b7e9f41b1d182d1d42f8e62b69ce81', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c2b0e26cc442dca6e2955df9171a6665', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 478996145) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '22e574a8362bd47322c4dd1a32e42dc8', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b7cec778816e16a6037f6d4fff417759', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f1fc916d5d18d2118e5d204301ac763b', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '07a1ccad7786541fbed3def74547a4d5', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '942da059935f9f56912238d510e8fda7', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '20a15b9e967c2e21e29c3c0f3d029d46', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd585633e118248e189bfcd2114245967', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:23:23', '2015-03-23 01:23:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:23:23', '2015-03-23 01:23:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:23:23', '2015-03-23 01:23:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '592d97a192620ce1b9ab588710469805', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '077aa06881e7b454c36c0ef43080d696', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a4e2a3aff5dd6eda5fa214d7176136cb', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '26220e8ae9bcdabf376ba21593b68329', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e47140490ce71930572f80aed7b15b76', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7c3e5d0e36461232e5f0ae0b981d31fd', '2015-03-23 01:23:23', '2015-03-23 01:23:23', 410780858)  (13.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00], ["user_id", 1]] SQL (0.3ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:23:23 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 36]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 36]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 36]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 36]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 36]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 36]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 36]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 36]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:23:45 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:23:45 UTC +00:00]]  (14.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 37], ["created_at", Mon, 23 Mar 2015 01:23:45 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:23:45 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 37], ["created_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00]]  (17.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 37], ["created_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 37 [["delta_id", 37], ["updated_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00]]  (20.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f0bc5760a952f30e709ab426736e8c91', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '36334ea36c740cecca05303185e3e82d', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dde4681eb7682291cd64a3e7948df9dd', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7dd2f15f02cbf1c982434a4f2d54b125', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f0e7d9b170bc9503e4237238e09f2563', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '710195a8675dea00242f8bbefe6c1276', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '16dd09c7609ecf8e6562a591fa50751b', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1eb12366b571d8d499818bc13255fbd2', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '31e9df24693fdf19661ee058cd9cc5cf', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '532eff1ad80c14803a2603a9dad27c27', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b51d54c86e762ccabec0613245e3a39e', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8211a8e4006fbfc9243ede0eff400994', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f628abcb84f7cb7231d3f9e6937530bf', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a391cfe6870d065413b69541e3f07f68', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cf05f5d1c223b7ac7c92d77180292388', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:23:46', '2015-03-23 01:23:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:23:46', '2015-03-23 01:23:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:23:46', '2015-03-23 01:23:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0673c71fc65452d7776809fef9d4ee17', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e933c46f3f045771673cce742450e780', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9409a12b290357f8d610b9378214a9ff', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b739fad79d18c84b26d99905dbd95fa4', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c12b0490802f8fbf9c79ec6b5361b378', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e36a699bb063b4a0ce1ac94becfa4f6c', '2015-03-23 01:23:46', '2015-03-23 01:23:46', 410780858)  (19.6ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00]] SQL (0.3ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:23:46 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 37]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 37]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 37]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 37]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 37]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 37]] Alpha Load (0.3ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 37]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 37]]  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:24:16 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:24:16 UTC +00:00]]  (28.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 38], ["created_at", Mon, 23 Mar 2015 01:24:16 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:24:16 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 38], ["created_at", Mon, 23 Mar 2015 01:24:16 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:24:16 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 38], ["created_at", Mon, 23 Mar 2015 01:24:16 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:24:16 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 38 [["delta_id", 38], ["updated_at", Mon, 23 Mar 2015 01:24:16 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7fcba8cff69a6d26e5b0a5e091fdde11', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b74b12657bd16e25c4cc88904b1c2a8', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '94b064caaa365a1e08b414dc689082c7', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f1f6247c7f4257c4e244d5bbf2729808', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '665e5f6d66e488bf6ef01cbdbeb27b53', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '006a966a4e917494c4f58e4b46293c8c', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7385eef5bd709fcea527f387baa63297', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8dc560e1204a22082140a147fd4f0625', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '20f704a9b84ba519e580e9f726dea025', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd604b07b69b982ac4ff22f2c10d86ad8', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7675e8a0436b21f7795f42a62fe06233', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b3d4709f9fd70203ba7c5a3eafaf83d7', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '071a291a63a82d318af891ce60faa0ea', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '26df1904982fdca16209e19957c0adb3', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9e1da4f5bf6966bb4dc0e251d1017f6d', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:24:16', '2015-03-23 01:24:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:24:16', '2015-03-23 01:24:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:24:16', '2015-03-23 01:24:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '95002e9300e750e53e50135d398e23a4', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2502acad062ee3b2d25cfc3cfcbc37aa', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '43b19b26ce8ccae418963965a2c9922c', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '317d3878c3834c199b5d5ec55727160e', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '905ccc7dccbe1d1314d3a66d79e8006a', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '040ca4f96dc088d13a9c8b0f0d288f58', '2015-03-23 01:24:16', '2015-03-23 01:24:16', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.6ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:24:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:24:17 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:24:17 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:24:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:24:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:24:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:24:17 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:24:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:24:17 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:24:17 UTC +00:00], ["user_id", 1]] SQL (0.3ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:24:17 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:24:17 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 38]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 38]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 38]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 38]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 38]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 38]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 38]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 38]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 39], ["created_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 39], ["created_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00]]  (17.0ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 39], ["created_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00]]  (24.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 39 [["delta_id", 39], ["updated_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00]]  (17.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7ff742a875d7733d2e12556d9de3bd1e', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c6b264493bb4f751ca608341a1a348e0', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '31083033b3525d4205dcadde2becf5d2', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '89872fc05a96a062587eab16a1ccff90', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4949962c2c653a35297c8c9178a675fd', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c0183918bad66c98d80baab51abf88e2', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a8b2b278cc09c4499f33534e0e4727f4', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '518d55222eacdc63555e428275de9da9', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8ed9982a6e70455ee2ec41a1f30fab5c', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '86b78d4d1bb0df53ea8a5735ea4feb93', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd12375908466cdba982e00d77f657c18', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd6db9912c7ee950ae47d627d5bc29e5b', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a4b02b3ae48411c905fa62a254ea24e6', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '28480c6ea3bf0a43666d22c3753339d1', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fc20ce8ffa2f20b4a0a8393392c4a775', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:24:35', '2015-03-23 01:24:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:24:35', '2015-03-23 01:24:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:24:35', '2015-03-23 01:24:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '77c51b1ab3c67b1058e55bc3ea6c6692', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e3c0d60bb3cdeb68c1c1d0ce7cd44125', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6a81a149e6f7bae25688e87b688f9d9c', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e28d66f97d0577305be7819be2e38297', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2181de4f33f478601a882d78f5912b98', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bd45ddeb2663349d9a37a14af289fc07', '2015-03-23 01:24:35', '2015-03-23 01:24:35', 410780858)  (12.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:24:35 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- handles circular references like a champ!: test_0001_is a circle ---------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 39]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 39]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 39]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 39]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- handles circular references like a champ!: test_0002_clones without duplicating cirular reference ------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 39]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 39]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 39]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 39]]  (0.1ms) rollback transaction  (0.4ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00]]  (18.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 40], ["created_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00]]  (19.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 40], ["created_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00]]  (25.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 40], ["created_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00]]  (30.4ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 40 [["delta_id", 40], ["updated_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00]]  (24.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e0189995e656e470e3764f670fb04ecf', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '823f3960d151c6065fbe1fc5d4070d8c', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '05ab98b415d23fbb538ea180649c59f2', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9b7a0683d166f679df2d0db908b9dbb7', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd3027d1b28d166990c50bdc6b844a45c', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c286139cfa94c5297abddfb3902d4b6b', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '16c5e1d8b57f8aec468c564141832a08', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8b51e7d8fbf602547446aee3b5b72bd0', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5592164ea2b383b5d8df588878095166', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '26ade03df7d09ccfb356e1448e8a779c', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0d784d8f526fc102c206f7974a7ed53e', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a3c41133746d161a5a8c6c3cec5a4df6', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '40fd94ff7942e7c8d37238c0d23cad3e', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ad648f74377a1e24b63c5c06548f8692', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '55d095fc568b6576f40a83910272b1e4', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:25:24', '2015-03-23 01:25:24', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:25:24', '2015-03-23 01:25:24', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:25:24', '2015-03-23 01:25:24', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'eb1161cf12199b23796c8c4c37ae1799', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e60b4cc1535ca8f368a90f8bfb5d6a01', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '761eea880f3a2ad8938e71d78ba34d3f', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f1285270ffc2576f1b54b75c633fc488', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '26fe27bf96048e66a6040e44d07012d6', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f8b3e2a5a02254ca88fe2f7982ed9b5b', '2015-03-23 01:25:24', '2015-03-23 01:25:24', 410780858)  (13.7ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:25:24 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------ PolyBelongsTo::Dup#pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------ Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 40]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 40]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 40]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 40]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup#pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference --------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 40]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 40]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 40]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 40]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00]]  (27.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 41], ["created_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00]]  (19.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 41], ["created_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 41], ["created_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 41 [["delta_id", 41], ["updated_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '76d289c0615cd43c23d60dc3348cd206', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bf269423799759b9e4e38781ba83480d', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7dd41ab74171ebf4f34959b209554d2a', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3e5a11b390e3a2be9707094997129efe', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '274dc5b2a8383ef2dfd71b06d9fc9864', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '80903bd3a27cb01c142101c3723cb484', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f37f521f8b0f22313a8df63c434ce3fb', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0e8e56ff1b9417c5489fb6bf5d805eac', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c94ca54b8d93fa45bd90e6f5f5b0f4e4', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '48f9ea0ccf964b42fdb37cd031b91595', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e5b2859d52d81a19526220f5f56df9c4', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd9384adacefc30d1c91c9e3e0b50ab8a', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ef922334c7a0e5dd4474861ae73f052e', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '98e9dda0e173881e5f79340aaa56a2ee', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '175773245e540198a921b5d125377a94', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:26:00', '2015-03-23 01:26:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:26:00', '2015-03-23 01:26:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:26:00', '2015-03-23 01:26:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0071bf17dd31470b55940003fefcd543', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2f4e73f07569016bae87f56388824b2e', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '33259a148e3354df9cc808cc46679cf5', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '74a66827f7badb01139cf95d6b44fb71', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b427407d422d6934d5c5a5c8c2f5cb51', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '751e34471bd45dcd82df327643364789', '2015-03-23 01:26:00', '2015-03-23 01:26:00', 410780858)  (13.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:26:00 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:26:01 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:26:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:26:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:26:01 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:26:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:26:01 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 41]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 41]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 41]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 41]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 41]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 41]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 41]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 41]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:32:43 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:32:43 UTC +00:00]]  (36.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 42], ["created_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00]]  (25.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 42], ["created_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00]]  (26.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 42], ["created_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00]]  (26.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 42 [["delta_id", 42], ["updated_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00]]  (14.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6bc13acc55273ae3f956a1a7b487b4a5', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e89bcb3a91cb3c0b047e5e8ac1cc6f8', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fcd84729409e8b6ff3d6c265650f8732', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f0cc68c020f704a7180c0798dc2db93e', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '48bdf1c7787b61a02153abfb28501128', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a8e891976f3e1429381d6bf8661adb2f', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'cc80fef1fecb8a71c5f3cdc9279d52b2', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '75602a8663a32bd96d8359dc13c0967b', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7151fc5a9c31a6f3bb5f71bda52f049a', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e2ac5cf0034d47e546cabb04eae030ce', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3101f5295949f83fb9af40dfaebdb3b2', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'de4e59cbbd0ffa2a32a2d51fc0065106', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '630d570520b09c96cd72cd910ac19a6a', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6bb085a97f95f8fc0e69214183c47471', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd67a6e62d4ee08d403fc80df065f1ce3', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:32:44', '2015-03-23 01:32:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:32:44', '2015-03-23 01:32:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:32:44', '2015-03-23 01:32:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b0d8df0c06e685c308827aff08a9a58e', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f3208c8fe6c0abd6c7ffaf6ae7ef52a8', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '18572950ff8992978b5b86055ad83fa8', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2693700c88f4e47c83d9940d8923a863', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ce1b0e1cce000c989cd8cde4ebcf7386', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '096480c27442a59b62fd6c75bda271b8', '2015-03-23 01:32:44', '2015-03-23 01:32:44', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (1.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.5ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:32:44 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 42]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 42]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 42]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 42]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 42]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 42]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 42]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 42]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 43], ["created_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 43], ["created_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00]]  (17.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 43], ["created_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00]]  (20.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 43 [["delta_id", 43], ["updated_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00]]  (24.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ad668ef502826afa4b24e6f110cfc2b8', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '09eb742524a1ae60facb11f390b582f2', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe0e9ae5c969c85fc1c9fc3aa0fef106', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e8c950ca86fb951346c765821093baff', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '21b6c5e0397adb2a67b486328987b6ec', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5430055fb47e1434de9dcb74e48bd4ed', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c0442f00b967d6480427062a2eac7f07', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fdc838579d9789614982290ff1b6be2e', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7072d0f47bd07dcded79c43bf335b469', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 712317748, 336964236, 849808553) Fixture Delete (0.2ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '125dac5cdf994e9b752a7f8dd136c4a9', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '231fca388e20d095e015f05a5274f362', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '036d74f193a0b98d892ed87813b79308', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fc2d4a0638fb9e173ee873989b351c2a', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f7967715bff5612badb19eeb20a204ab', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3f3f0f0a6919cba21ccc10d1be95a214', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:39:13', '2015-03-23 01:39:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:39:13', '2015-03-23 01:39:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 01:39:13', '2015-03-23 01:39:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e24012343e8aa8e12fa075e25f75445c', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a1b38a3fd353f41a67224ad8a5179455', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '490167970b78e6ce53814d67fbe23695', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2e0aa7d3ce7420338f0b7d8dd80432d7', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '101b3c5ebf837d2a0ecf33e251cfd0cb', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '73ed9038b62ba91eabc0cd4721c018f3', '2015-03-23 01:39:13', '2015-03-23 01:39:13', 410780858)  (18.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00]] SQL (0.3ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 01:39:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 43]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 43]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 43]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 43]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 43]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 43]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 43]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 43]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00]]  (20.5ms) commit transaction  (0.5ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 44], ["created_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00]]  (11.9ms) commit transaction  (0.5ms) begin transaction SQL (0.8ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 44], ["created_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00]]  (29.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 44], ["created_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00]]  (19.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 44 [["delta_id", 44], ["updated_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00]]  (22.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8350b530ed616db90cc6fa4d2825efd', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '057d6c2da68e4a25414b7f56bf2ad044', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '761985ad5439f8ce770f16ec8cc8bd6d', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7f4b8890768dd92bef3be824fcfbe630', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a440b7ac746f01ef2cde2a442543397a', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6fb65c1eefb3c9aa5c3dd8aed75194f8', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '07eb8c800b78fc2b41c3f33babad92b8', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '313c254b611a93104bbd02a53de7dd3b', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4542cdedc7a92e7eccd1262ff98975e3', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4fa83133428d8296391e5ccd3344ae00', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8d73cc02cffa59d37ff367e93d8372fb', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5dd04f560a3981c0fe18b34b11331d80', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '39bea9b84d52a91110b8a2433fb33853', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7df1092cbdb1567c653f423fadd01511', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5350c33f5fbb759777f3da58e48095c7', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 02:39:26', '2015-03-23 02:39:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 02:39:26', '2015-03-23 02:39:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 02:39:26', '2015-03-23 02:39:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2a208da6fb0fdd2822ac398bf8e29bdf', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f01041f82a89fac6159b2780f64c0178', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c380ecee05a846be5f4f32e5ddf5d9de', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c070381ffd7c7a1acc1a655566815a8f', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3ce3e713967c2019b8fcf438bd1d0472', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '733474203fdb3194b2135a3d13fc6a72', '2015-03-23 02:39:26', '2015-03-23 02:39:26', 410780858)  (23.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:39:26 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 44]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 44]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 44]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 44]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 44]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 44]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 44]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 44]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00]]  (15.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 45], ["created_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00]]  (23.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 45], ["created_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00]]  (18.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 45], ["created_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00]]  (36.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 45 [["delta_id", 45], ["updated_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00]]  (26.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0e4e19466cc8076ad9a959806c71b533', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5f70f47b17ff9dd82db5b059a1512e76', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f76759d70be28d87d3b12d8e1839ff24', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c3934bffde44b1aec7e7bff2a1f5cd5a', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c60248c08208db2e2a9c3f2ba1d35c2d', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bd63d0dd9c877be93cf429cbf9fe8b38', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '09833ec2f975c42aef2081f867c3b191', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e22292ce7ec51f50663262975cb89e08', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'cb73d55e68bfec539722cae04f5f66aa', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8472240ebd2eb979607ca2b4a44cbd45', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9f7b802e28baee5c7b8eef2005721be5', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '91a84dff444d3c443a284b5daed5ede1', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'df4e55ea6bbe969da9a3923aeb3c7d55', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2c99e61efdb756ae7ac576a699162a0d', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f9db20fb151ca56d527ce4815839283d', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 02:40:01', '2015-03-23 02:40:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 02:40:01', '2015-03-23 02:40:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 02:40:01', '2015-03-23 02:40:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '74ff64ef50201defab453849b5cd86e9', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b14a687aa1265ec895969782d6c51b28', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e7d9317ca72024ca2bbd42d6d54b7c92', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '686ef4f61e8c44e3a7ae901d26e3f5cb', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2ef77381e1c001cff79bbb8f36930257', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fc6ede60d7f84c1a1b98c2cdcf6d130f', '2015-03-23 02:40:01', '2015-03-23 02:40:01', 410780858)  (25.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:40:01 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 45]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 45]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 45]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 45]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 45]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 45]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 45]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 45]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00]]  (15.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 46], ["created_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 46], ["created_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00]]  (18.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 46], ["created_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00]]  (14.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 46 [["delta_id", 46], ["updated_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00]]  (20.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a3f2bda7bdb937474872fee233e3e826', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b3fe9dc06c872ddbb86c381f01435a63', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0143891d41fbfc430b0a32c581da56ac', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7a21d3d57febc33544cf2ab4eccc9978', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f4b4cc66f1fd9c48a22d70909e5169d8', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd0752f20e4d59f82dcb4f4b558a22d53', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '705e8f7c326a3e797b0cc91f0b1ffd6d', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '03535869b34f090af918a2b74fef0fde', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9b39c9b304f4e0b52db2a49d4a0f5af6', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7b74812088ab26b19c39cf12968ee4be', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0cb70e7d5b4d878c2081cb1b1c6d2e01', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '819a6e30c51cafc80621d3fb27ce72f8', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'af4cbd50ef11eeab937c0573dc8e19a8', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9b02981cb8350a8090d0cdb360aae2af', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f18b5d4111b2a9ba6a40ed29f10d1071', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 02:41:11', '2015-03-23 02:41:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 02:41:11', '2015-03-23 02:41:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 02:41:11', '2015-03-23 02:41:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cccafb6351055570c178bf3cb3ddac8a', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0a19024594d1f33f11f66cc8c088a6f7', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eb8ffec2a08553be68a1c04ed3397213', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '81ac64b35ac478d8fc85c3b5657ec28d', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a44df5a1f8a4426dfedb6c45386356b2', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7879ac6a6aa35fb54f6dec9552609966', '2015-03-23 02:41:11', '2015-03-23 02:41:11', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 02:41:11 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 46]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 46]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 46]] Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 46]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 46]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 46]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 46]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 46]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00]]  (13.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 47], ["created_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00]]  (12.3ms) commit transaction  (0.5ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 47], ["created_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00]]  (24.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 47], ["created_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00]]  (16.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 47 [["delta_id", 47], ["updated_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00]]  (25.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c1f3db9ae5bc29fbe74fc6b491dcc9bb', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2a02eb3ec425a625655a27c8ec6d8558', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f598aad2cdc42c5ee0ff827bd8e99d1a', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a2ac478a1eea84eb00b25e098ce20ff5', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8f5a22b2afa6aae58f4581c6a9c5b8e7', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bbc79f0b6c7e26804ada19897adc3289', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a7dc4170716081354c2c07240e9311b9', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bd0a8f136ad01da37617948c46d88623', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '31a72ff13b6369a2c06c34c5dcbb086a', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1b304d671837e52dff7ae99c49f1e9f3', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ea66281e8bdd0d77fcf7b321aadfe0d7', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8cdb811642a75968158806c58ef900b5', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dc4621a2d56326da28089f354962b1c7', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ae6195c85185565cadeac1afe7353c26', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a06d3fce764deeb62baf0413bddabf7c', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 04:19:01', '2015-03-23 04:19:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 04:19:01', '2015-03-23 04:19:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 04:19:01', '2015-03-23 04:19:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '02d3658529d469f06af33ac1ac06c80f', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fe18c1e66502a700297b41c4faae2c46', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6e55f4cd3443dc76e4c200b40bc4b5a7', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e2a10960b13a6de2f30eabad078b6149', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '516a50f51e26c21e68be9154e5136c2d', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '612e4a3247d1ee6139b515690136b5bc', '2015-03-23 04:19:01', '2015-03-23 04:19:01', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:19:01 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 47]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 47]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 47]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 47]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 47]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 47]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 47]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 47]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00]]  (19.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 48], ["created_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00]]  (16.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 48], ["created_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00]]  (11.9ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 48], ["created_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 48 [["delta_id", 48], ["updated_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd47d4e3ab0bc1684449792f49d2941f2', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb78cdb8a36dc7d11b729a6b9db8528f', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f47340683b775ef6dc1999192aa35c8', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '23bd26cc58c8d7d8cfdd3444a16635f3', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'feaf82149ded31817f9701008862f3c5', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dba46f4d5bc77a2e435aff00e8f1fe68', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6cbc6e539489c2e3662f3aa7348c3eaa', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '98f2c1805254f8a322e94196cc9fad78', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd28e8f6b8160eee55617d73fc2e2313a', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f83cda49d0e5ee033a49bcb61646a460', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '14bbac7e7569c556988705650944def8', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '63e6323ebeb03b1238571320da6b35db', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b7be82d954c1318c33590d9639af0a56', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c1969d60dad050a3e4a2fb0e3d32f6dd', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '86c358d4377a4978f6d61c0fe42be948', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 04:20:13', '2015-03-23 04:20:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 04:20:13', '2015-03-23 04:20:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 04:20:13', '2015-03-23 04:20:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ad36235594406a09c4ffd2617c4f33cd', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5a7cca37cfb7c63822049a62a2d1d6f1', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '12af7a7fe79416383d1250bb88f4db44', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '844e953d72f9080ed67cface443671b4', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '07e1f509f9898d7653cadcdb66758192', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2f6c2cb7fa818060897f5a7b1f2fa43e', '2015-03-23 04:20:13', '2015-03-23 04:20:13', 410780858)  (38.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:20:13 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 48]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 48]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 48]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 48]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 48]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 48]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 48]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 48]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.7ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 04:22:17 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:22:17 UTC +00:00]]  (29.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 49], ["created_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00]]  (28.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 49], ["created_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 49], ["created_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00]]  (22.3ms) commit transaction  (0.1ms) begin transaction SQL (1.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 49 [["delta_id", 49], ["updated_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00]]  (24.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '53be7897f82acd08b681424320695989', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '87a009449c255ac26c589ee6823913ad', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4c341ef14a461f8316eaee4b270c90fe', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eaedceaf95521d510f10518844fcdb6b', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2f45a6121396be946d12dfced9035f34', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '787e3cfdebdacea6e630276289527f03', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '87d3685cf9d434385bbc2f3fefe50943', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ec897069042159e605427c6e19ded82e', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7fc7347c9454542ac27306ae7a14229c', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '11e73c6b7b16740a76e3b671efd5af08', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '07b65ab2a374594be79c77f0a74e3af5', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e2cba2ac452bf49e3b68c692d88927c4', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ba12940ef4fe3d4afa625fce177931b8', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '547710bd00b0536b03250cbf5a7c8459', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd60e3575948345399d32324826844782', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 04:22:18', '2015-03-23 04:22:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 04:22:18', '2015-03-23 04:22:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 04:22:18', '2015-03-23 04:22:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f6a629de7755f6ecc7c202bcbaff5db3', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '57a81461acf226b62f5819f7249759cd', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2ff98ce86632d475469368449add8f81', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0ce87b571514740e65be0dda1460122e', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'debf5fff87e56c1f90fbe19667cd36ee', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '757e812027b428b01ad0296c480279ce', '2015-03-23 04:22:18', '2015-03-23 04:22:18', 410780858)  (30.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:22:18 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 49]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 49]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 49]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 49]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 49]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 49]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 49]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 49]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00]]  (13.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 50], ["created_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00]]  (19.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 50], ["created_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 50], ["created_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00]]  (22.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 50 [["delta_id", 50], ["updated_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00]]  (36.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'db8df5ef60c3a4dae5de5e301fa9e977', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cbd9be227d1d3d475ba5f3ac69369071', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '21d4ba8c5d7524294894702dfb05e533', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f1c5046afa4e3a66a6f44f57abb0f120', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b49fd544b4dea9f20e4b222cf8fbc266', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5af505e582fe489a357a8b7e7ebb3fb4', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a73997539603cb97566ca44d85c19f2d', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '384f8b2c9101d1b9fc9cc17483c8386a', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '07b8b83bfc4c98d9481ac013a5cc5de2', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9e94de72e2210202831631efe06272b4', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e7f81bbf09b98a61a802466d90a9735d', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'cb2a12f401fa0370c97434feab30c6c7', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6ccd1c5aa7f4fd776d3644d8601e15b4', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b52ba4c32daf034a70246d7966f62c4a', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '18bdb6ce9c8b01c3925ea3612eabfa9e', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 04:22:39', '2015-03-23 04:22:39', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 04:22:39', '2015-03-23 04:22:39', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-23 04:22:39', '2015-03-23 04:22:39', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cfc4613767ee8e5f4af711c0509c957d', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0dadc0ff9fcd582e088386780fa5d1df', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1f21911f61c3107f57f03f37b2ff0df3', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd526d830a7dfb7bf860a80375993b0e9', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '699da01d21eb1003b666f53dd65a3c77', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e5feb7681ff0d34d2ada9a6f8bd22e4f', '2015-03-23 04:22:39', '2015-03-23 04:22:39', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00], ["id", 1], ["updated_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00], ["updated_at", Mon, 23 Mar 2015 04:22:39 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 50]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 50]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 50]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 50]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 50]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 50]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 50]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 50]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add ----------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< ---------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (4.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:17:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:12 UTC +00:00]]  (19.1ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 51], ["created_at", Tue, 24 Mar 2015 19:17:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:12 UTC +00:00]]  (20.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 51], ["created_at", Tue, 24 Mar 2015 19:17:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:12 UTC +00:00]]  (22.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 51], ["created_at", Tue, 24 Mar 2015 19:17:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:12 UTC +00:00]]  (27.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 51 [["delta_id", 51], ["updated_at", Tue, 24 Mar 2015 19:17:12 UTC +00:00]]  (17.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '01089fa3f4f5233f9df67cf63cdb0c1d', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6f5455fd19d42a2489c57d1d0b57c9d3', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '071ebd34cdd8c46754978e69f0e17594', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '233a2b895c8985cc14d94726c86f3fcf', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bc497de6ba33c7827f7ca1282208fee4', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '783b069712cba1c05f95f180d0f7fccb', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3ee1f16e36442d370e4400ba629fca09', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '52ba208213454bfd8234f2582d9fddae', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f5e0a4ba7d6f26578576a0bc7c8c1341', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b2d3653d5ab26c4a42c0b8898719452d', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9fb73fc03df38acc710f35214ceb238c', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b2a5e20d74f47dcd7e619a95dc90d06b', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8881cde1f6a48d9961c9c87ae340ffed', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3afc60c6b10e5af874bf2ec6f59f75ea', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd04d47e9db1f2387c25ba24ecf51962e', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:17:12', '2015-03-24 19:17:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:17:12', '2015-03-24 19:17:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:17:12', '2015-03-24 19:17:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7bc6bf440735993f49180274ffababab', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ad9ac68093fc205193f1a57fe3ac1a82', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3c198eafc1124b19dce4eb1c50c4dff7', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cf573f70eb79b4242357f771672631fc', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fc2f624ac10b22bd47fea38e2aed279f', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4c3833795c373fa78eae749fea41429b', '2015-03-24 19:17:12', '2015-03-24 19:17:12', 410780858)  (23.3ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]] SQL (6.6ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 52], ["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 52], ["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 52], ["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 52]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 52]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 52]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0030_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 52], ["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 52], ["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 52], ["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 52 [["delta_id", 52], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 52]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 52]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 52]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 52]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 52]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:17:13 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 51]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 51]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 51]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 51]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 51]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 51]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 51]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 51]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (18.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 52], ["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (36.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 52], ["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (27.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 52], ["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (18.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 52 [["delta_id", 52], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (28.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b21a35ca01bdecc219dd555ab3438c3', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c942889bb1d78bc05b7a61580c6b0c1b', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1b5794a3328529c6b5cee742f4e4e5b1', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e5e568552a315ab3361e62df27f55eb3', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '14d1fe97123c9ab6f63924c06fa8027d', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7d7d1ffea81f3b730b3749c5df131f67', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1a1c908426438afc226866e9fee3baac', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2cd6f4f2e9cf50cfa270fbadffba7934', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '27c6ed8de8755daf4d32511fa3d9f0da', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f3c14d3b960d6d35fd25b16a911ab873', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0b6cf223c89fe441b482b5ba2f905270', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6e27123713e6a61c00bad1940a471db2', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '86249a94cb9b131d8d05b69e699061bb', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1ea9c76fd2a434c0cd5eaa3dbc03be5c', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ce3346a2f8e4044e9aed5ff7d74a50bb', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:18:09', '2015-03-24 19:18:09', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:18:09', '2015-03-24 19:18:09', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:18:09', '2015-03-24 19:18:09', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1ab259838317a8e6ed3231863dcf879d', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cd75fbcd102039736b87ef3dcc9e887e', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4ae99efbb9542646879fbf6bb7975337', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2c9e10fa472b5229e2b9f5fea70bde45', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3eabc87321ca8f1073e011a304e3e11c', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ef3b1e775ec62dfd05cc572b8fc34c10', '2015-03-24 19:18:09', '2015-03-24 19:18:09', 410780858)  (18.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.6ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]] SQL (0.5ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (5.7ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 53], ["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 53], ["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 53], ["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 53]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 53]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 53]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0030_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 53], ["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 53], ["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 53], ["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 53 [["delta_id", 53], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 53]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 53]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 53]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 53]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 53]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:18:09 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 52]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 52]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 52]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 52]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 52]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 52]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 52]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 52]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:21:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:47 UTC +00:00]]  (18.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 53], ["created_at", Tue, 24 Mar 2015 19:21:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:47 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 53], ["created_at", Tue, 24 Mar 2015 19:21:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:47 UTC +00:00]]  (37.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 53], ["created_at", Tue, 24 Mar 2015 19:21:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:47 UTC +00:00]]  (20.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 53 [["delta_id", 53], ["updated_at", Tue, 24 Mar 2015 19:21:47 UTC +00:00]]  (14.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aa63e3ffb2125fe9081c4326504b83ed', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '74db48b84e4911f16e2ca3bf98b0ed85', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c804221c13498152ab17a30a4a9e634f', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bc8f411eb08eb50eb1c2832e1310bc59', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1f06256a2fd20f5dc42fc450f861f983', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '117877836e2882db907278eda3f93711', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '96676bcae34474df2edf1bb86a92ec4f', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '67da649905067a31549f76bf08c8e396', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd7c6b4d821f5c7c03655e2d61d36e9a1', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd93008987335ede5abdf319bdc66f388', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3e2ec81c89e0791b5518809031509be7', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dff74578fc3a50732d5dfac47b2dfed0', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb5caf2c0f2eeaec8728f638d8a5953b', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '92a9a7ae933ff784a64b1d1a85b4ecea', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f31d253f354f4abb66babf446811b26d', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:21:48', '2015-03-24 19:21:48', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:21:48', '2015-03-24 19:21:48', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:21:48', '2015-03-24 19:21:48', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '809170fa321ab931dd5bb5c751ef668c', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7ea82cd7f658944f5ece6250bbf7ff45', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eea7762e12c196597c08347eddf668e0', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '81e99dd52046cda564f83a7541ce10fe', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1dc7b4be6263978b3c6dccc65d7d2fe4', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '598e0598eefb28e3d8ba61af25480c3b', '2015-03-24 19:21:48', '2015-03-24 19:21:48', 410780858)  (18.4ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.5ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.4ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 54], ["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 54], ["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 54], ["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 54]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 54]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 54]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0030_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 54], ["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 54], ["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 54], ["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 54 [["delta_id", 54], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 54]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 54]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 54]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 54]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 54]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:21:48 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.4ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 53]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 53]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 53]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 53]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 53]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 53]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 53]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 53]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (23.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 54], ["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (27.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 54], ["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (18.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 54], ["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (21.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 54 [["delta_id", 54], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '953c2e416adc600eab3c41fa77224455', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3ab37bc7766d4f9862b5c4e998c959e6', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '672c33e1944074d92904349d4bfff229', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '462cfa0b78e85db89d7063d1c1d02c54', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '08153abd89e1e80c230af92b1c689aaf', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe6a70173e9186a3ca2261e2385091cd', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fec156a51d519b3fcbd8102fb340f90c', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b4fa86103df179bb784f6937bffdff0f', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7c3d881209f35f6939bafa1848a9723c', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b5b259bc96a28f23755e7d009cc52d28', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6d0c85507a2725aa470733449a08a752', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd1e8c42ec82d2ca2f83c4a8d6bba8837', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a90b2ae2c6515271c51229362f0d3b6c', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1a57709fca407db86e46244f28c61707', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd7a5eba4a97bdea380b73e362f38f33c', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:24:06', '2015-03-24 19:24:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:24:06', '2015-03-24 19:24:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:24:06', '2015-03-24 19:24:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '55310993985a1f6e89464b5a6ddb2749', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fb03b8c324fcff70c771393023a95294', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '58558fb229e2d2ebbf923c4803c2d2c1', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '84650c089c9d869d0c76b30ac8220419', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '38731ebd88d8b9d724ca501344d5733a', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5314b8efcf57c1dd54b7f827bd645e96', '2015-03-24 19:24:06', '2015-03-24 19:24:06', 410780858)  (32.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 55], ["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 55], ["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 55], ["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 55]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 55]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 55]]  (0.7ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 55], ["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 55], ["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 55], ["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 55 [["delta_id", 55], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 55]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 55]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 55]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 55]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 55]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:24:06 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.3ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 54]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 54]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 54]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 54]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 54]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 54]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 54]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 54]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:30:14 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:14 UTC +00:00]]  (19.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 55], ["created_at", Tue, 24 Mar 2015 19:30:14 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:14 UTC +00:00]]  (12.1ms) commit transaction  (0.5ms) begin transaction SQL (0.7ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 55], ["created_at", Tue, 24 Mar 2015 19:30:14 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:14 UTC +00:00]]  (16.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 55], ["created_at", Tue, 24 Mar 2015 19:30:14 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:14 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 55 [["delta_id", 55], ["updated_at", Tue, 24 Mar 2015 19:30:14 UTC +00:00]]  (25.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '20b36502899d189fd4264d31f43c058e', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5ffc6df48df952f8695a8d6928eae175', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9d1cf2e32d2463349e6b7fa231de47b1', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'accfc3a472aae4200a0c6da1df8e5e71', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '63eafa7225cd3190fc265783a2b21fe5', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'acdd80e65b26bb68578f9a45d178a0af', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c41fae9dd31a8138597bc93ef1447a53', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '123a0cfeff4ca03bf66403c243c9e24a', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b335efb5df531fdd9cd57bbd97ed8daa', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f8724c56ed3caefd371e035b566e2077', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4a8bce600cdf7ef5972df5dec93e8c5a', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b2a2d64dceb2c3e1fb855e7eea447b5c', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '708d913835323af073eab11ef18638db', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b6d16db2a2c6a7fa441efbdd6fe5969e', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3411ef2791ea0f9531b7a5be6ae4e110', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:30:15', '2015-03-24 19:30:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:30:15', '2015-03-24 19:30:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:30:15', '2015-03-24 19:30:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c9289a1fa442cf8b882a52be1238eb35', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8f76b19921273d34d39c0081db41df98', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a84fee71de1eb4320c405c188b3d430c', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '691a7c645e4b6acf9d00bcabcbc041e9', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0166d984e6ed7520cd9e88e11deca01a', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8c6d62c7c8083cadd518ceae9f0b7ca7', '2015-03-24 19:30:15', '2015-03-24 19:30:15', 410780858)  (16.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 56], ["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 56], ["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 56], ["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 56]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 56]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 56], ["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 56], ["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 56], ["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 56 [["delta_id", 56], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 56]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 56]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["user_id", 1]] SQL (0.3ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:15 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 55]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 55]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 55]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 55]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 55]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 55]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 55]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 55]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:30:42 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:42 UTC +00:00]]  (23.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 56], ["created_at", Tue, 24 Mar 2015 19:30:42 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:42 UTC +00:00]]  (19.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 56], ["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (29.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 56], ["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (22.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 56 [["delta_id", 56], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (24.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb8d7ed13b83c547d47628538530a98a', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3a2325ee266703619d3c073b06bfe513', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '04df572037f1428428c811b8e53ccfba', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '280d08d3d56cd1a793084949a3f7418f', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e0212a77bde1c61d37138ff8dc32e4a6', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f2bbce355ee3121e56f450731a6e59fe', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4d81b939fb3c307039ff095a1c5bcf3e', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0eab0069d415f5019ecd1cc2500aad6a', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2f9680c27d4b118282639f8de3bc7bfe', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cbc357e3bebd5d4d889fc7501bc137b3', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2a3f330111a4848d2497dd96bdd29cba', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5efc80a2f6c32b2daf6312aa40aa9501', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '039e3a0ba1cb552574a7e9e126e6fafa', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd4cf4034c95fcc6c700826dc5247a0bd', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f8ed1a44461497ba66007560548765ec', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:30:43', '2015-03-24 19:30:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:30:43', '2015-03-24 19:30:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:30:43', '2015-03-24 19:30:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c7f66da423b3a8441a77294e846e6d05', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '12fe08d7433606e365550a11158a017b', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2670a311a4209e13e7d7513f3f6b4c6e', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'eac880d2fa4ebc13a6e399d9a98b75f2', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '450074fcbbbb6e79760e954be3726bbc', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1947ef2df954e8f16f62aaab44d43ce8', '2015-03-24 19:30:43', '2015-03-24 19:30:43', 410780858)  (22.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 57], ["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 57], ["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 57], ["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 57]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 57]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 57]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 57]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 57]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 57], ["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 57], ["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 57], ["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 57 [["delta_id", 57], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 57]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 57]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 57]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 57]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 57]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 57]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 57]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 57]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 57]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:30:43 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.4ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 56]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 56]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 56]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 56]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 56]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 56]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 56]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 56]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.3ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:34:42 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:42 UTC +00:00]]  (27.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 57], ["created_at", Tue, 24 Mar 2015 19:34:42 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:42 UTC +00:00]]  (21.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 57], ["created_at", Tue, 24 Mar 2015 19:34:42 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:42 UTC +00:00]]  (15.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 57], ["created_at", Tue, 24 Mar 2015 19:34:42 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:42 UTC +00:00]]  (17.2ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 57 [["delta_id", 57], ["updated_at", Tue, 24 Mar 2015 19:34:42 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c4c0c3d5c62499c4c0fdd975105cd584', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0709b0f8cbc2a15be0b6e6427390ba46', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '61abef23880d0727ea8925d323ecc770', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4e28816781e3ee08162aca893df3ffeb', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '98420a62d3f8de7471db6723ad550b3d', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '17a86b6c35e1f6ac1ce8b9400fa5044a', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '53a228904f8bceeb39df141d0891dca4', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '20836fc46f767c858c16fcf2971376d1', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '26ed516c31a61716163d11b55d7b21c3', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd483583e5c69f7e166e9bcc7c11fe81d', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '731a7ce8d965f5e277ecf7bbe5d5294d', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 102195269) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7a7ac83be1e40bff3f896b9b3fe3a2e0', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8588e81ad31d8f747d912d52c949ff9a', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9cd74a5f59f4c8232a96b686187e156f', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e22167f0db80c55a30c1f5f699c6ff1c', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:34:42', '2015-03-24 19:34:42', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:34:42', '2015-03-24 19:34:42', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:34:42', '2015-03-24 19:34:42', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9d55223d5d3fc54be670d1b669d1a7f6', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '77fb3316cd454f57143ca5a7300940fa', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '40eb00ab4a6bbfc84a7c37eedccad44e', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'db062d48d6b01284380395e5ef9ae3f7', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '81fe5542e86d30e7bddee394a72fe72f', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2acf135f5a4bcd168aefc47e53f575fc', '2015-03-24 19:34:42', '2015-03-24 19:34:42', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.4ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.4ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]] SQL (6.7ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 58], ["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 58], ["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 58], ["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 58]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 58]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 58]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 58]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 58]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 58], ["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 58], ["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 58], ["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 58 [["delta_id", 58], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 58]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 58]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 58]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 58]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 58]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 58]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 58]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 58]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 58]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:34:43 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 57]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 57]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 57]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 57]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 57]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 57]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 57]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 57]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:35:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:12 UTC +00:00]]  (23.2ms) commit transaction  (0.4ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 58], ["created_at", Tue, 24 Mar 2015 19:35:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:12 UTC +00:00]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 58], ["created_at", Tue, 24 Mar 2015 19:35:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:12 UTC +00:00]]  (19.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 58], ["created_at", Tue, 24 Mar 2015 19:35:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:12 UTC +00:00]]  (25.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 58 [["delta_id", 58], ["updated_at", Tue, 24 Mar 2015 19:35:12 UTC +00:00]]  (17.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 396855775, 'Address', 1057142427) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55cfd7581d68adfdb22f8084c971d303', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9001c62e965ad5b3b1f9c3ca58c0b419', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4d8e420b075c6ba70f40d637fd7bd847', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dce49041de2f3e58452b73e33f6187ab', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '170e1fae5ac13276effda1aa729c45a9', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5d6d865b7ff78a6b1ff18067e9a15a39', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1289f46e7bc0407a33eada7a89123bb9', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'afbe4e98e2efb20104ce3dea569078cb', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0d0c730802874b3a39f2dcdf2333db73', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'eee773e1118a6ac7190c465624282869', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '628d485ae4df479b1400b3bffc42342c', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '180466e2688308e55fb54bc5143a5994', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a435db8ab24756f5b3c0379692dd6b72', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c6bfecadb85fa4ecfa9270c00404b3e0', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6ce164e61270c7acae17d1d1bab551a2', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:35:12', '2015-03-24 19:35:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:35:12', '2015-03-24 19:35:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:35:12', '2015-03-24 19:35:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3878b7cb4753e98122bd936518d1bf50', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '32dccea0716291f70494d50472613f08', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c1b6680eea2e3f2e7680ed5c96b9bce9', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0026671548c85f2309838fffccd0e7a5', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4282e316dca67bd6f3102a84d3cb1d00', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dee59c62f9edb5ba4ec64102bada6280', '2015-03-24 19:35:12', '2015-03-24 19:35:12', 410780858)  (17.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 59], ["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 59], ["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 59], ["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 59]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 59]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 59]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 59]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 59]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 59], ["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 59], ["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 59], ["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 59 [["delta_id", 59], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 59]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 59]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 59]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 59]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 59]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 59]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 59]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 59]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 59]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:35:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 58]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 58]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 58]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 58]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 58]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 58]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 58]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 58]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (14.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 59], ["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (24.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 59], ["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (19.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 59], ["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (18.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 59 [["delta_id", 59], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (21.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 106545386, 'Address', 633598004) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9c1e1718485545fad90fdc814dd278a5', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bed7ef491fdf1c9b5940fcbda49f4d58', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '832db5bea3969ab6d61ead9f5eb29cec', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0c2bb18147bf825132f21ad7786857cc', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e9cb2be22a522cea6aeeea1dbb1e1d81', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '140fbcf1be9d67aa93faef6b885f0f3a', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7fd8baeaf0071d229bf211d1db92d7f7', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5690c31f4f313c7f1b67a466819ce760', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5805e7af16a5795e75992db2fd124d0d', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c8dd1293f551733238b573cfe7fcc244', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '90345514715bba7d961300c73a105913', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c90b5ae2d753114876a0c3684b6f6e73', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 483796712) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '81c518f1965bd67e37c9a973a13c98f5', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '35755ff7fcf54c8c7330501bd4690ede', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '915655d1d9f1a9885d46956e0e64d2f7', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:39:21', '2015-03-24 19:39:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:39:21', '2015-03-24 19:39:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:39:21', '2015-03-24 19:39:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '97a1259cc6e4a221f1708d6280c1fe27', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b20b33f1d419f1135a064d60d8dde501', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9c01b4e47b31da9336df04c1d2083b5c', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0948cc41b763093e7fdcac9dcfc4578d', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a9bdf61f5302f6609fb41148c892f2c8', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6ceadd309924a961c393d6fa20623e77', '2015-03-24 19:39:21', '2015-03-24 19:39:21', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 60], ["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 60], ["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 60], ["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 60]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 60]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 60]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 60]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 60]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 60], ["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 60], ["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 60], ["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 60 [["delta_id", 60], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 60]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 60]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 60]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 60]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 60]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 60]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 60]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 60]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 60]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:39:21 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.3ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 59]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 59]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 59]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 59]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 59]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 59]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 59]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 59]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]]  (32.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 60], ["created_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]]  (22.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 60], ["created_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]]  (44.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 60], ["created_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]]  (16.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 60 [["delta_id", 60], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]]  (11.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a47a6aac6bcb96b622ba371261c2124e', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '653cd4c4fdcdca55a628faeddc59118a', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '799ee027df6c114b4da35f7004f3a3c6', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '703bf9e6a2c5e1dbdf1d3c8355cfe789', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b07ceec183209b0dd9ed5131087a7c56', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4130011e5906ac4b9b82af68132a2d16', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '81e858c1a552026c7a1be75ef4a958c6', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2334faf2a4ca7a2218449e1f5fc6bd8d', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3bd646de4957033656a28e5d78c3fd8c', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a576c8bf97e517c4509a9ef5e50d9380', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dba5e2973b7155b5234a5efbf26133d3', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4a0406cf7d94b20f8c3af20835e9d0de', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '207e5ef94a26bd322230534349b5df42', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be44f0ee8987a44101ad26988e59820d', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4bdc815c4e73c5ab0136c14538408fa6', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:41:25', '2015-03-24 19:41:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:41:25', '2015-03-24 19:41:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:41:25', '2015-03-24 19:41:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '530a78a6cd3d05aeacd92b6ea6bcfc68', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '02f11ed3b4477af7b701c119aef2bf2d', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8054a5a705d0924d44bf2900bc3d7174', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '54d5ea937148b4cf41c9efb5b1534485', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e10976bc0c8e9f8c9c5f53dc824fffa8', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '49519694a361a971c0fae4fe9146a414', '2015-03-24 19:41:25', '2015-03-24 19:41:25', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 61], ["created_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 61], ["created_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 61], ["created_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 61]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 61]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 61]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 61]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 61]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 61], ["created_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 61], ["created_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 61], ["created_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 61 [["delta_id", 61], ["updated_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 61]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 61]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 61]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 61]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 61]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 61]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 61]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 61]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 61]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00]] SQL (0.3ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:41:26 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 60]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 60]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 60]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 60]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 60]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 60]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 60]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 60]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.3ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (18.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 61], ["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (17.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 61], ["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 61], ["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (11.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 61 [["delta_id", 61], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd2586b68aef3ade2632cd0f6880ae7ee', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '05e29291f76f71bf7eca58b8536006cc', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '588f9a273ba0ffd3da5767f5df6e53c3', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b4c648d282dceed334b586f06fb9bf2e', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '685cc832794b674d021373c5aab6af3e', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '679b0ff361e3d675d26dc7ccfadcf186', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'db96c6a80fc1969ff7c3106fb4e21733', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ac1a73ff97599ac9c778b578863256de', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'bc34cc4766cd189a16be957416f00bce', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.3ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '37d4b50becf89887ba9e27057bda242d', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a545d4459d8817f5e46ccf9a07050aa6', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b61e90397ab95277f206bd3665ace384', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c10ec01ba176d979cc5e85f880273bb1', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e5a4d544ff2c7ce2ef02ce66a37ce2ed', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f182651b6c097d1765a6adb9d6dacb4', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:42:32', '2015-03-24 19:42:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:42:32', '2015-03-24 19:42:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:42:32', '2015-03-24 19:42:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dd1e086d70fb559ec5249ac721f47cc6', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c1be5b9b7b09bc87d0f9c352c767ece6', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1b64755d8b351e90093f2e4666d4d146', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '00198d5120fa4e8dc560a164f9110729', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ccff25419d854265c409ea6636b17416', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2cebf24970a4584220cbfd8bce7f5fb7', '2015-03-24 19:42:32', '2015-03-24 19:42:32', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 62], ["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 62], ["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 62], ["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 62]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 62]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 62]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 62]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 62]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 62], ["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 62], ["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 62], ["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 62 [["delta_id", 62], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 62]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 62]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 62]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 62]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 62]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 62]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 62]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 62]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 62]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:32 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 61]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 61]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 61]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 61]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 61]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 61]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 61]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 61]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:42:56 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:56 UTC +00:00]]  (14.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 62], ["created_at", Tue, 24 Mar 2015 19:42:56 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:56 UTC +00:00]]  (22.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 62], ["created_at", Tue, 24 Mar 2015 19:42:56 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:56 UTC +00:00]]  (18.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 62], ["created_at", Tue, 24 Mar 2015 19:42:56 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:56 UTC +00:00]]  (17.6ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 62 [["delta_id", 62], ["updated_at", Tue, 24 Mar 2015 19:42:56 UTC +00:00]]  (25.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7d06084109c0e5e0afb7ddd65d3dcc81', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd812722f9065a2a6b2ecc44f40d73879', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '332ff6f1657a702203713e1b63a3f052', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2a60056036fdd5d9b37a2c2db13f59bb', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '17de9f03d817ebae9c179546d5bde979', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '48360f2358d1d978c4a33ca9ee501368', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '67cb0c062668f7c61414bc719dc923c7', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd8816273ce56255d15bf48eaae756c6e', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '144ee59b90d14c8a8349cfe143d50432', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5572bdf3e1f4b99542fb60ef387216e3', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '152bb12a2af688b9d85b2acd6dabbcc4', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '09afcb6fb606cb01393f58ed084a38c5', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8307940adf6f2c1366c7255b33da22d9', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e864dc7731859c527e39619bfebe53e9', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '85c39e8da19ddbe5537a43250374f4c5', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:42:56', '2015-03-24 19:42:56', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:42:56', '2015-03-24 19:42:56', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:42:56', '2015-03-24 19:42:56', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4b579ba9af9fe56828cbe1b2772a65a1', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '46171ec92d8842aa46ca04a741ce2680', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4ec8749442106849b2f66b025039608f', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7917e22ed8540bbd35598d70cc52b9c6', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8c813e37d4b0fe1a8bea4aeeb7258514', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '979f04f0d190668fb9ca0e62b27b0c36', '2015-03-24 19:42:56', '2015-03-24 19:42:56', 410780858)  (12.9ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.7ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.4ms) SAVEPOINT active_record_1 SQL (5.9ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 63], ["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 63], ["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 63], ["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 63]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 63]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 63]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 63]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 63]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 63], ["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 63], ["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 63], ["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 63 [["delta_id", 63], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 63]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 63]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 63]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 63]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 63]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 63]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 63]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 63]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 63]]  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:42:57 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 62]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 62]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 62]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 62]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 62]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 62]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 62]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 62]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.6ms) begin transaction SQL (2.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (21.3ms) commit transaction  (0.4ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 63], ["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (21.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 63], ["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (32.2ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 63], ["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (27.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 63 [["delta_id", 63], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (17.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ad9c85ec6548cfb81759f75e2803d038', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fdd50d8e2fef35a43a03731a80e8eb0a', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b84cea00092e59ef13ef0f0971ce1274', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e7be09588f369a0d20ea317652386110', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c55e747e9eb04698a4dde903f626918a', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ff764181c66aa22d654264d17e0c0a39', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '05728397a91d7681d41bab51d9b654c2', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '40ca58e8fa77a2dab89b494e33ab60ba', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'aef42c0a32fc0b86c3ba22b2c4145e14', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '841f8086d8504626cdd60c353213e70f', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '82d14bf6e0431d00b8c787ab173b2f36', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '77518a29d1db371651ad56b696275632', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5c42a3cde408b8191d0189876ece8444', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e10bbba03f5bbd7fe71fc4a85102c287', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0db6fd28b5e6f4748b1031e3c41ee839', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:44:07', '2015-03-24 19:44:07', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:44:07', '2015-03-24 19:44:07', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:44:07', '2015-03-24 19:44:07', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a6e297276bcb9c64f6533666a3b5949f', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3a17b778649e98e5fb02c9c4839c5c9f', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a86d1602e5c5f4e0dc6eafd3def6ffe0', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '328fa78c71b4f3a345d1d13b99807965', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd6c7d39bf30078921d8f3240cc214be5', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ec755f9056c52489a2efc5d2df76450c', '2015-03-24 19:44:07', '2015-03-24 19:44:07', 410780858)  (28.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 64], ["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 64], ["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 64], ["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 64]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 64]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 64]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 64]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 64]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 64], ["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 64], ["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 64], ["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 64 [["delta_id", 64], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 64]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 64]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 64]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 64]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 64]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 64]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 64]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 64]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 64]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:44:07 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 63]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 63]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 63]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 63]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 63]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 63]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 63]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 63]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.4ms) begin transaction SQL (3.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:45:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:57 UTC +00:00]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 64], ["created_at", Tue, 24 Mar 2015 19:45:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:57 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 64], ["created_at", Tue, 24 Mar 2015 19:45:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:57 UTC +00:00]]  (18.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 64], ["created_at", Tue, 24 Mar 2015 19:45:57 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:57 UTC +00:00]]  (27.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 64 [["delta_id", 64], ["updated_at", Tue, 24 Mar 2015 19:45:57 UTC +00:00]]  (24.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b1d6a9d3ce94b4a7a3dd356006f854f', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a8680e18c8c5f763d32c186b44aad27c', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '53feccc4b5dd474b6490486e2a6eb765', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6f0d41e5bc920261a7a7c72610a19cdd', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b23becd1aa39b15983242fab666e9eb6', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e98dea52debad7b6cc730babcbbd416c', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3da220ea516af3e3a38a2793369b33e6', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0fcfdcd67074ee9c17b9d4f4ef2ab01b', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ff32bec20e86f19d267b878fe297037c', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ccebeab44522939cf76466ad19a2cf8d', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c40318a7fbdc4137703f9ac2378cdabe', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '33fc8a639a9b2034de48e79208f341ec', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1d9fa01dede39ad40d385e8b9cfed535', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'acbaab5ccc338160ff779e9ae08971ef', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f569cf368a76d5235a9258dde605823', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:45:58', '2015-03-24 19:45:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:45:58', '2015-03-24 19:45:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:45:58', '2015-03-24 19:45:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '31ac453b7a9a24b446e22a617c084de5', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '54e3cdc1a768429cf7af0d7923610609', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '61a89967b2d9d11046b8989425d4b27b', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '572a47a040e45b123bf8f5a3f5842659', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd489eb4db07f90bceaca7003c512dd09', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e351c0f1e532516302554d3d44beeaca', '2015-03-24 19:45:58', '2015-03-24 19:45:58', 410780858)  (28.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 65], ["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 65], ["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 65], ["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 65]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 65]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 65]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 65], ["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 65], ["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 65], ["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 65 [["delta_id", 65], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 65]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 65]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 65]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 65]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 65]]  (0.5ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:45:58 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 64]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 64]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 64]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 64]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 64]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 64]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 64]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 64]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (21.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 65], ["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (22.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 65], ["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (19.5ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 65], ["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (24.9ms) commit transaction  (0.0ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 65 [["delta_id", 65], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (30.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a3a173143d4ea3b3532077e6b1689b06', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7c47908c41c249b228a7b05fce5f2f24', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c2a212c1c6770898ed325116a6375297', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b72897cc9360d36fbfcd5dc15b0e46a1', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7238fc1a78f313f2d24a2a8e016c07ca', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '517b7683a47a52ebf11463971b0bcedb', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f8bc997c414962d15ee92e1147b8622f', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cd29b0e0d86c87f539a6c951208f1e9a', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c4ac55aabc62fc7307cc1fbd2edd6e6b', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7ea9bf853a1de5218dab182e080a40d6', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4f421b9e584739fecac5250ab8af3fab', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ad5e0bd518e371df357324205660efda', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3300de18299804c83cadbdf96de4c0d7', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be014e9eaf8dee6f0d7ce4b5a70ca424', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd65bd73b020f97547a566c1ed9af368b', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:47:12', '2015-03-24 19:47:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:47:12', '2015-03-24 19:47:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:47:12', '2015-03-24 19:47:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '88f75392a60a7e31aa8b18da84bf9cd4', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b42b545c034ce44fa669336e58850300', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a6caec2c7f5782112b60f704e9eddf99', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7ac79b8c2f87c7cee380971c6b6210f0', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cfc024d71b74b4be1e9892e196cdbfc2', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dac001e4307e316976d8675494dda981', '2015-03-24 19:47:12', '2015-03-24 19:47:12', 410780858)  (30.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 66], ["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 66], ["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 66], ["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 66]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 66]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 66]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 66], ["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 66], ["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 66], ["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 66 [["delta_id", 66], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 66]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 66]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 66]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 66]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 66]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.4ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:47:12 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 65]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 65]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 65]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 65]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 65]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 65]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 65]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 65]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (18.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 66], ["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 66], ["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (13.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 66], ["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (19.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 66 [["delta_id", 66], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (23.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5d683b0401eccda39d21948e54a92924', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9bab0fd5b2dcc9cdc229ee141128b588', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8b76d96dd926fcfbfcb72f03701a2774', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c3ea08e613ada8763db56ff66ae46a4c', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f21285d406cce912a1361a54821f6150', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3b63f122c1040477b71010f552ec7826', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2009bb20e6a5a00f7ac8b26c7868a12c', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '321ee9b1c0896b086678944932000ad2', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '21a90396a815a847d0aa05eeade9519f', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e6d7cc72c173acfb5a172ee8eebc38fb', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'bbf18ba5aca6c5dc95164fa0bc9756ec', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '38fa06a696974021dc7719b8ea78391b', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ae10ab11c6057a7e259a43add90cb528', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ecbd9b6acebf3e886eb761850bf8bddd', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9fe95d7cf01c5f7965eb027b4a4a2152', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:48:38', '2015-03-24 19:48:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:48:38', '2015-03-24 19:48:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:48:38', '2015-03-24 19:48:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dd3afb96ed131828f8f03250d5495aab', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4013630e5d75a14e725b4b7d105fe5cf', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4d1f5a6da4bdc1cb4707b6a0f11ffa15', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dc4ed44a99609dcad9748c4bf612ba70', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '237ddc23ad671d04484f0c5e7f0fe764', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c6a1776f8781a0c6f3bb94b415e9753f', '2015-03-24 19:48:38', '2015-03-24 19:48:38', 410780858)  (22.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 67], ["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 67], ["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 67], ["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 67]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 67]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 67]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 67]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 67]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 67], ["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 67], ["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 67], ["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 67 [["delta_id", 67], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 67]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 67]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 67]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 67]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 67]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 67]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 67]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 67]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 67]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:48:38 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 66]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 66]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 66]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 66]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 66]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 66]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 66]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 66]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (14.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 67], ["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (26.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 67], ["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (21.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 67], ["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 67 [["delta_id", 67], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c5f1b7aabcf51351acf86d9e912e2309', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c97776b7e821fa7439563af22e711ccf', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '54061dfa06c9bd2ab4b0deb932e1c789', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4493dc44c050a2ce584fdb9918b7506b', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e70807ec1c4b615961d877abb3b91b89', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f2a9b5d0020649a3ee2451bdd0cbe049', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7fee8e6e038f3204f2b91b41a4d172d7', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2ea1fe5e853827548cc896d73d2e5b44', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e4e62c1b243472c753e7b17a379bf506', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 966629572) Fixture Delete (0.2ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '46b1e39c9e19caa7fdb76a97f69920e4', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cef42da550614f3b8d2ac94a77ffce19', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '424ffe02513ec6fdcbae7bbe6a9fe4c9', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0957440f738577955729c2e6ec36cec5', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '053ac87a9d922ab38969d49f72101dd8', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3fd45418eae6449d79c5deda5ba00b6c', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:50:34', '2015-03-24 19:50:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:50:34', '2015-03-24 19:50:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:50:34', '2015-03-24 19:50:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a4b025e156c1e9a6affd00d730b39f15', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ade44475d4a48cc5ab277b7bdcbad1c2', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e0433c2f63b77ed982caf3153b99bc66', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '991679c08ab3987b608c501b85f5a10f', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1bf92b2bddb3effdfb7317d410bebbde', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fec547e47e040876b6dcdbcc67a454b3', '2015-03-24 19:50:34', '2015-03-24 19:50:34', 410780858)  (24.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 68], ["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 68], ["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 68], ["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 68]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 68]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 68]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 68]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 68]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 68], ["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 68], ["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 68], ["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 68 [["delta_id", 68], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 68]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 68]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 68]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 68]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 68]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 68]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 68]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 68]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 68]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:50:34 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 67]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 67]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 67]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 67]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 67]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 67]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 67]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 67]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (15.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 68], ["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 68], ["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (32.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 68], ["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (17.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 68 [["delta_id", 68], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (12.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2db8866ba1a208a970932c6fe242b68c', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fa4fb79319d7ae62efbb08b38285ea3e', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1d5da5188b023aa60e3676c3ef73e465', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '375129f5da817299ae6b14aa9effad33', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0b1571bfb69dacc0199be4b420bda7a9', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '351e90a7d40e58d0147c9ba791e71d99', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'dee96cdca12c751c774b045a9659bf7b', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd4310f4868562feaefd6874c59ed9732', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '28803ba53379411e054a625cc8167069', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2da75d673ecb9adbede3b221269a7389', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '95dfe85a86e843603fa6bca46a45dc85', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0db89fe835775919ef109371a1d79a01', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6947e9e9b88bf0967f58510f1466afb4', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '80c722b365541b73de453b76973781c1', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '657812186088ef27bf2da8f86dcb5040', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:52:47', '2015-03-24 19:52:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:52:47', '2015-03-24 19:52:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:52:47', '2015-03-24 19:52:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f0b8b6ff459eb697ecb7996fe34f6be0', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '58a96f3907885cca3eff574dfeea6c08', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '23b3196aaeb62787accf42bfa279bd1c', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0c52d3820a9a44264f51811eed71e379', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b715898e0fcc3a4e5595f84b6a6f1b52', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd7028d8756b156ccdaed343fbc3b5223', '2015-03-24 19:52:47', '2015-03-24 19:52:47', 410780858)  (28.6ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 69], ["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 69], ["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 69], ["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 69]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 69]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 69]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 69]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 69]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 69]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 69], ["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 69], ["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 69], ["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 69 [["delta_id", 69], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 69]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 69]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 69]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 69]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 69]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 69]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 69]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 69]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:52:47 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 68]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 68]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 68]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 68]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 68]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 68]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 68]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 68]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (18.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 69], ["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 69], ["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 69], ["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (26.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 69 [["delta_id", 69], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (25.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '570153fcec96033ed5ed21a3adee8176', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc367a402134350cc3aecb4a06fa6a37', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bfdcd206e4809800fb48ab62f40a09bd', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '09d6855a1ce32c5d9e31870a9f7a329e', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8bbaf318c8eaebc7469383d431dcdec0', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6fc54da649e536839e4faa81d3668ace', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3aad02de26bed9393fdd2c8cc0cc0259', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3664fda9fa48447e2df4d7c80edb17a1', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4ab2c4a4ee038364211d844c3e511e00', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '09ef2d44d523a3a761e159bdd4bb5ce8', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f18f4cebfe27d73744738b83fc817a98', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '37422716e12f76b2bd1002943f5f6aca', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bd25500fbc133c146ad98069aa227982', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a9458d94702388d0b81916a41f03a61f', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aba634e573de5ea30fcca033e3bb9bd1', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:54:38', '2015-03-24 19:54:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:54:38', '2015-03-24 19:54:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:54:38', '2015-03-24 19:54:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c809d990935888dd19f9fbbab36678ee', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '194f1425f18f3961922398461bad46c9', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5a800ea065e0712c29d2cfc5e45f5409', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a98f8257c995cf510a9789b5527c68d8', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '52aa463d9b1389f6e98b8a23d774fc75', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd7fb3f604825c906efbeb57a261f80cc', '2015-03-24 19:54:38', '2015-03-24 19:54:38', 410780858)  (20.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 70], ["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 70], ["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 70], ["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 70]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 70]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 70]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 70]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 70]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 70]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 70]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 70], ["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 70], ["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 70], ["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 70 [["delta_id", 70], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 70]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 70]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 70]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 70]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 70]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 70]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 70]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 70]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 70]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:54:38 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 69]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 69]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 69]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 69]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 69]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 69]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 69]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 69]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 70], ["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 70], ["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (22.4ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 70], ["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (16.9ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 70 [["delta_id", 70], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a41d09f5b5e28570713413d64c38d7d5', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '971f07be8bf7d8e044bf48b0262fdd16', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5e114f36665662f64c93e18c09355e07', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '573f57b495587b5436dce45fb1d5e33d', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6aefcc4e77c9fd5ac5f7c72c3a379bfd', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '12c03b76f9ccbaf493b4a25f2ffe4fde', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e1e97b97e898a73159097240420e00a0', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4b38e50e15a3c8401aae49dc5dc09c25', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '386265ebf6210e7525d93e430d896349', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a351e4c86d41aac6b39d70d118bc910b', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cbb66da542fe0e11d19724ea5cb935b8', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1638438d03f82de83caf813f01f09fff', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '88f5b702590d434e4782cf3273cc1aee', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7e6e0947efab95125d1c76263a429429', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c4d98ea3ad3d3877a01cb24079d10789', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:55:46', '2015-03-24 19:55:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:55:46', '2015-03-24 19:55:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:55:46', '2015-03-24 19:55:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5a2b61fd8ff9ba7c00c62eb51cae72b6', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4040903a4dbc04e05e6f065b016215d4', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fc7e8da8601ea0dc45ae016dc7f08c22', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '55bed53ed8c52c6eb46580884ed3db02', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '869c13516831c0142a84449d43222b33', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2ffc56fdac070be952f1302cd9dca732', '2015-03-24 19:55:46', '2015-03-24 19:55:46', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 71], ["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 71], ["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 71], ["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 71]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 71]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 71]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 71]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 71]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 71]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 71]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 71], ["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 71], ["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 71], ["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 71 [["delta_id", 71], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 71]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 71]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 71]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 71]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 71]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 71]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 71]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 71]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 71]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:55:46 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 70]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 70]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 70]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 70]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 70]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 70]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 70]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 70]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 71], ["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 71], ["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (24.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 71], ["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 71 [["delta_id", 71], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5640de0202f170217459faed889dab1a', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9ea9e33eddb5b3590a03281a8658a8a5', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7c6c3ea172167328cc6864b03981a1aa', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '801122aab6878997531c0722690af154', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6283648d26047bd8a61eb36d01762d52', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b5c8006970eeffa733b757a1c7772cf0', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '977f437d82e3b2220fd44c073052a807', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f3ef371e0d34423def36e638d253b3e6', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ce14b379dac9f89f701b160d049f30d4', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '00d1c7497aab6bd639e36906878e106b', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c05a061d13976dfeee5df1224f9896b2', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bb687cf2b29cea0a7817776e6d38c5ab', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '76ff144ccb998105b5cf98cd471c3bdc', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c9d7cfa80df2f9501f1191e9941dcf3b', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ec0cac9dfce3522257062ab9b3b4c36c', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:57:17', '2015-03-24 19:57:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:57:17', '2015-03-24 19:57:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 19:57:17', '2015-03-24 19:57:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f4c5ad64ff7e2317f7c1cec18c0cf5d8', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1290366f91848999c494467e0ff3c279', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c0f61c7854553e4f2fd1dc7cba7129aa', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a9d33b43669e98a59e05276853b7e636', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f71f3d25207776ccdfb75c89b2e8d519', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f44744b6c2b2c9b59c053b6f4916e6ee', '2015-03-24 19:57:17', '2015-03-24 19:57:17', 410780858)  (16.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 72], ["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 72], ["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 72], ["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 72]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 72]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 72]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 72]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 72]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 72]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 72]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 72], ["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 72], ["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 72], ["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 72 [["delta_id", 72], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 72]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 72]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 72]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 72]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 72]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 72]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 72]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 72]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 72]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 19:57:17 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 71]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 71]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 71]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 71]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 71]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 71]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 71]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 71]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 72], ["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 72], ["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (18.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 72], ["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 72 [["delta_id", 72], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '095c3f98e52d7be76b54ce415ace37e2', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '59555c67c3365402fd0ef39aa98e72e5', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7a4099d426ef485a25789750f16fd5fe', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '17d4007c94602dfbee1cef034c5f5de8', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f2735a3740d35ea57d3a3fbb6131d93a', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7fd85235ee3778228fa20046b1799bc7', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7f01ff157a723de5a5879d1fd102cbd5', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cd935a92e301ca2862b164b151049e73', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '63fe6f2d44520d40e0d8688c3c4bce7f', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '131925c2c5486e6c1c5a87fd6512e806', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c701620610e74f5a2b67c0ac19e4024a', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '62c6e538c6b75d73f44498db5abf7614', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0b2c73c64edd8069c48ecbd991dc4e26', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1d5f04e69b0469cfcaa04e6230f2bc43', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '64a8daac35c08008571dd34a422e6ac6', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:00:19', '2015-03-24 20:00:19', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:00:19', '2015-03-24 20:00:19', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:00:19', '2015-03-24 20:00:19', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b423f642af897fbd158a6ebde909dbb2', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '79e78daf2057173a03ac817273560467', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bb0e1f7f35bac5700509e89d8b194df6', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7d5df8f736f3a6280189864d2052519e', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '77a577845fba108062abddfbe89175ea', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7e4b295c5f7a5fb607c527fd0aa232c7', '2015-03-24 20:00:19', '2015-03-24 20:00:19', 410780858)  (12.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 73], ["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 73], ["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 73], ["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 73]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 73]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 73]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 73]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 73], ["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 73], ["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 73], ["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 73 [["delta_id", 73], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 73]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 73]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 73]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 73]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 73]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:00:19 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 72]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 72]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 72]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 72]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 72]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 72]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 72]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 72]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (26.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 73], ["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (22.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 73], ["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 73], ["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 73 [["delta_id", 73], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (32.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f2542f3724dd72b4f9b8e52008764337', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ad83ba9ce3f2cc7a10e41ce86c8293bd', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '10bf183027293171cfed2de81351c374', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '58122cc04dd6cdacb21462337ebd84d1', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9a6c4bda44c6be542cd1c2ef33b61e71', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '24b32b76393372ee522ee8bce4eefee5', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'bcabf98f742005abcea4e5695cf7dd09', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7e496b1934b49a80de4c14e45529851b', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '429986090858b71f77157e6eab5cac3d', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3132185fa069b39ca23e1f80a3839b25', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'eb3ece1b1fc213aff4be4fe014f4b550', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '31cabf9cd003ea930a70762d1f326daf', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9e10d67a4d040b5fa6ae1545f2d81cd8', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '23d9dde2723c6eefa0c152951dccf6e1', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a05b325b2ef88e0140f195ba32ed43bd', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:02:48', '2015-03-24 20:02:48', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:02:48', '2015-03-24 20:02:48', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:02:48', '2015-03-24 20:02:48', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '70309bda309b1c2c34eb136ac0a3a9b0', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4888a603df64f324c29e3fe85e24cb96', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7a53673d7add291927bcb058ddde4716', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a7855fdcbb5e4e73c078981ba50bf351', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5e69ecbdf96b7f8764f22f1efffa892d', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9bfe84549af176788b6999229ac4eb1a', '2015-03-24 20:02:48', '2015-03-24 20:02:48', 410780858)  (23.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 74], ["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 74], ["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 74], ["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 74]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 74]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 74]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 74]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 74], ["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 74], ["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 74], ["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 74 [["delta_id", 74], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 74]] Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 74]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 74]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 74]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 74]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.3ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00]] SQL (0.3ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:02:48 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 73]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 73]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 73]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 73]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 73]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 73]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 73]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 73]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:24:40 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:40 UTC +00:00]]  (28.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 74], ["created_at", Tue, 24 Mar 2015 20:24:40 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:40 UTC +00:00]]  (19.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 74], ["created_at", Tue, 24 Mar 2015 20:24:40 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:40 UTC +00:00]]  (22.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 74], ["created_at", Tue, 24 Mar 2015 20:24:40 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:40 UTC +00:00]]  (25.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 74 [["delta_id", 74], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (17.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '275e055cba3a8e11f2b0c2f4e411b81e', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ce1ed20abea8b57ac200a1c5281b5256', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7ea531b82a14d36773c8596510cbbc1b', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bc77c8407d325fe93578cfbefb3fbbda', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4d0832cee072c679e3e42534295dec80', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f7e4a38b4f54c69827618efe3d343ee', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5297c4672bb14c1a744f56d9e417107e', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5a3350166f94a94d57a7076d7b3c01d0', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c7a09b7485e5d25db6f05ffe8c7467a7', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a57af83b6edbe043ecf4bceca8326242', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '56d89165807a6c4214585a1926b43fb1', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4a4170bb80dead6415d1343d66a9a003', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a7fd4f7eec2091e6b0f4aa88491a67e2', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8134ef56235761aabf800279eb24c3ca', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0b7555823083b009929ccd735ae1739e', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:24:41', '2015-03-24 20:24:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:24:41', '2015-03-24 20:24:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:24:41', '2015-03-24 20:24:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3337ee64473ae25a12809d75369b2a27', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a8d110184a79eb563787a382121a09f6', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '416e86ddc752f241b28a5d96f093dbab', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fe1d996b5dff8ecbded660ece97dcc6a', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '317eabbd0c36c7163169ad732c693395', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fce6c705379e26ee3d266e3e375cf53c', '2015-03-24 20:24:41', '2015-03-24 20:24:41', 410780858)  (17.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 75], ["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 75], ["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 75], ["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 75]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 75]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 75]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 75]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 75]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 75]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 75]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 75]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 75]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 75]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 75], ["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 75], ["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 75], ["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 75 [["delta_id", 75], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 75]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 75]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 75]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 75]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 75]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 75]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 75]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 75]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 75]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 75]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 75]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:24:41 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 74]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 74]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 74]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 74]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 74]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 74]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 74]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 74]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 75], ["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 75], ["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (29.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 75], ["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (25.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 75 [["delta_id", 75], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (32.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '942f25613580fa24a4348578cc8b5596', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ce3b3e6cde289a6951e0d0877b3b2506', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fd023509e6f146b0c88c6e8aa48aecb7', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '17986c0d3d64b652a26ee56a83d06239', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ae2abd7b4e997e9791955fc4c553b184', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c4d7ac84b312a3161d637ba32cd0ed44', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0b8891b47f7b4cf00759b906c7a21b46', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '193a7ec5f2c7fa6f20e2f4796909af22', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '88c01c670439b7d6cfd795db17e8fe0f', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5a576dd22d149370527b92351aa128ed', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6d4e99c7c9dbe66e04483b906fb5269f', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6033316a254a0307d663daa70188ece3', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7002721c7951668ea2305c24b3beac08', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f1ed0566a3f4efa1298862a0178b7d06', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ec2caa5479f942207260256855072ec2', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:26:31', '2015-03-24 20:26:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:26:31', '2015-03-24 20:26:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:26:31', '2015-03-24 20:26:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '840c6edf68af3a1a0e337873ced95a63', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bfbe0be1fecc8dee6cc40ee2dfe66447', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c59e8d915fcf30f653f8349aadcaaa77', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e8e1aa300aa6cb9c87d52b7b732ee4a3', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b7c28cab453ab3d334dfa04859a6b775', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f54a797a884077312d48bee254067081', '2015-03-24 20:26:31', '2015-03-24 20:26:31', 410780858)  (27.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 76], ["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 76], ["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 76], ["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 76]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 76]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 76]] Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 76]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 76]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 76]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 76]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 76]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 76]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 76]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 76], ["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 76], ["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 76], ["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 76 [["delta_id", 76], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 76]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 76]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 76]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 76]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 76]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 76]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 76]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 76]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 76]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 76]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 76]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:26:31 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 75]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 75]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 75]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 75]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 75]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 75]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 75]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 75]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.3ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00]]  (20.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 76], ["created_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 76], ["created_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00]]  (17.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 76], ["created_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00]]  (12.2ms) commit transaction  (0.0ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 76 [["delta_id", 76], ["updated_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5243a2fb60899218aa7cc2ff0d1be544', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b9f32553de6d9db8257c66b76556606e', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cc5117ee948cb1d54620edcf37e2c58a', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8c9bbd01808c8f35396d8a8311b825c', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0944738fe1d476120013e0afc6963cf2', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '15c0e1e6d43542d517a825bad3d5ec2e', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a7b437594fc276ad71406e57b614e7d4', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '124d09966f4238f3740160f1b6bb4886', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '464c28c84fd0263fadc1bb34f7f3537b', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '59818b8d6c87661df22a82ed70364a31', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fae31bd593119d28954726290bb07536', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '43f2903954dcf5db52c0efea3fb17f6f', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ac9096b525dcecfcc20b9c5d0db0e1e3', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a82ce28baf5309d5a6fb81a44cb95aa3', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4da789054efa37f410385dd1524a3ec8', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:27:54', '2015-03-24 20:27:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:27:54', '2015-03-24 20:27:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:27:54', '2015-03-24 20:27:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '18b6313081cd1a49eacd63b80de627a3', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7711cf9f600c0e740883af0373c750dd', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '36d8de1ee9e22f83c6a2f11b59ea3640', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e91c0e8f9d649ea5d08affeae12e0d22', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2dc03d227f8e088ef047a531fd972ed7', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cdf7e53c1e70a5ab5e2b69856d18f454', '2015-03-24 20:27:54', '2015-03-24 20:27:54', 410780858)  (12.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:54 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 77], ["created_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 77], ["created_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 77], ["created_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 77], ["created_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 77], ["created_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 77], ["created_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 77 [["delta_id", 77], ["updated_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 77]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 77]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 77]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 77]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 77]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 77]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 77]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 77]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:27:55 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 76]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 76]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 76]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 76]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 76]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 76]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 76]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 76]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.6ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:28:44 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:44 UTC +00:00]]  (27.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 77], ["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (29.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 77], ["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (23.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 77], ["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (25.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 77 [["delta_id", 77], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (22.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'daf83f52b47e5faf528c634525cfca26', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '390847d6b4a053bcff37ae0eb3304246', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '05ed4ae718233a7ccffb94b0704b2d10', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '103eb22a0c1c97c8bc3687fd9dc12994', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '39c58751bf3518d7e882147e37b119b6', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c68707fd0ffed0c00170ca19e19bc979', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '420392978f781fbe41ad89a5dcbb5ec7', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ba1ad8cd2611a68230a527ceec89073e', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1da1b0d2eeee38405b5a5462f65302df', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f05299938fd0a67ed226b2c1296337bd', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c973e99d92b4646dea32375150bb9265', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3370d7d913ae2db5bc04ed50361d4665', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5bbc9de3821ae0185d67e1642e6c56f7', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5ac2bf971d850a21924cd2f478cc95de', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c34ad83b24ab41a99b7c6dabaa3650d', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:28:45', '2015-03-24 20:28:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:28:45', '2015-03-24 20:28:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:28:45', '2015-03-24 20:28:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '84036ba5b451bb5e058399eb527f6502', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '11068f19fd45a5c1dac76be026de02a2', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f883ace49a2d49ca1e81c7bbce468065', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '40e57b2b8502c9e2528bcba7af7fb314', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1552ffcf548beed4610930b91f82ab76', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9f5d707dc3a37d6771bd89aabb6c3a14', '2015-03-24 20:28:45', '2015-03-24 20:28:45', 410780858)  (26.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 78], ["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 78], ["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 78], ["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 78], ["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 78], ["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 78], ["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 78 [["delta_id", 78], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 78]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 78]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 78]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 78]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 78]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 78]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 78]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 78]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:28:45 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 77]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 77]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 77]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 77]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 77]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 77]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 77]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 77]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (21.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 78], ["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (28.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 78], ["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (25.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 78], ["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (28.2ms) commit transaction  (7.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 78 [["delta_id", 78], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (21.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8068eb7559d21fdde62f9bd0a13ee5ae', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '461bd9241c7bd1e81317f41a5101f0a9', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e0a34a4eee3922555e8c11c9a975f5bd', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e5003ad5728b76f852a373a42840bd5c', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f7a61cde38518b4a98ec3b970195493a', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '38d59b3f085692e081e65c212ee2e252', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '52f30826e817b468c602a01d6e20ed49', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0a42172dbb52cc51ea36a6bde233ca15', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '78c0204198798b9acc054b74f5271cd7', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b1a6cb9dd6c4e2d9e0092765b6567831', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'bfd920f1de68fbfc07b7a65f3bce42ee', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5db02a59c8cc36a6947c20ef1b4deab3', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '20a2e515316f1dd4c6008503d422ab57', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4210a6be7aa0dd2bbdcaf518d7cc8b9b', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fafd0fc971cedf8208f7b8e0476c5def', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:29:35', '2015-03-24 20:29:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:29:35', '2015-03-24 20:29:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:29:35', '2015-03-24 20:29:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e887fab3a81af1b6990626d05d8f2e72', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0563775d3d4510e765bed63065a79952', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd5df8054889e6769bac06f6097a448a1', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5d1b5494f7c5382974028fefdcb8569d', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '878ced9283da86fd132a9b03ce6f0903', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '39df5aab1749f4df7c6f76cbdc325a91', '2015-03-24 20:29:35', '2015-03-24 20:29:35', 410780858)  (26.1ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 79], ["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 79], ["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 79], ["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 79], ["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 79], ["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 79], ["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 79 [["delta_id", 79], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 79]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 79]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 79]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 79]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 79]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 79]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 79]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 79]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:29:35 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 78]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 78]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 78]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 78]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 78]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 78]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 78]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 78]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:43:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:21 UTC +00:00]]  (14.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 79], ["created_at", Tue, 24 Mar 2015 20:43:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:21 UTC +00:00]]  (27.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 79], ["created_at", Tue, 24 Mar 2015 20:43:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:21 UTC +00:00]]  (20.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 79], ["created_at", Tue, 24 Mar 2015 20:43:21 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:21 UTC +00:00]]  (20.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 79 [["delta_id", 79], ["updated_at", Tue, 24 Mar 2015 20:43:21 UTC +00:00]]  (20.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e7f79a2b53d1683d192c0b6f32ee8b09', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c39911e8895161fbd448bf7b24391b31', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b939511c1e07742a8fdf19176e711eca', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c83326ecfb4108323d07d635dd89100f', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a58bb8aee5ecdecc8ee087fd21126957', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2aeb47701bdb532cfb8e86c61b6c601d', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7f780d10d6a4505510b3aaab770a05f4', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6f6ebf24e49621b14c68f175076395ca', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e8fe89bd24248ae410a5e320631ee832', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b6c6371b4d1a78ce91bcba5439295cad', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7d64f91a89581f11fa25694fe0f68908', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'aa23e7111e54abc5cf3d54b7a226f18a', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a83b866ba6f2236039bdefb8a62a93c2', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4b850f92c8b231d4d3e817a778069f5d', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b4d9adbc89d469d19c2104d84962211', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:43:22', '2015-03-24 20:43:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:43:22', '2015-03-24 20:43:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-24 20:43:22', '2015-03-24 20:43:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a9962bb25685afa6715a00d4ceaafb85', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '27b5c733494a97bcf72e0f50b0318e78', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fde13009b8854c6a006a7f93b9259e86', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3199210b42e00f50bf3f0ddd595bff90', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e1ee5e0b5a28fce7020d78af9d4eb234', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0ff5b3fdcc7198f5ca76868fa1d8650a', '2015-03-24 20:43:22', '2015-03-24 20:43:22', 410780858)  (32.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.5ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.5ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 80], ["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 80], ["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 80], ["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 80], ["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 80], ["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 80], ["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 80 [["delta_id", 80], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 80]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 80]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 80]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 80]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 80]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 80]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 80]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 80]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["id", 1], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["updated_at", Tue, 24 Mar 2015 20:43:22 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 79]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 79]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 79]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 79]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 79]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 79]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 79]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 79]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.9ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (26.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 80], ["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (18.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 80], ["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 80], ["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (12.3ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 80 [["delta_id", 80], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (17.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a7f8c2ebebc8d3b01f9876aeed7354c6', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5725d08fae08dd274eb8e48900389689', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b91f3b4a809642b771a4fc1f125d5ebf', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd521632afae663ccecc72394f1c750bd', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '913ff58023067da9d713e0b245b4ac3e', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f53030cabbfed04efe63d6477ff92a68', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1cb138247957fab616942045c0058ce1', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9446b72a331d85dbbccbd1716b22257b', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2f14bbd4b148f7441dc1f7f682d7a421', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8cd52ca8e7229da2de3dcd58aec0a841', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '46b0917086872eb7ef736f0c53754bde', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '389ea5136f823956382fdb603abed46b', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ace350a1c4df3cf03c170af51b2ca532', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e497dfc0d1f53806e17faf0842c1fe72', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '85a569eb23357dc601a70e5f949499d6', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:23:24', '2015-03-26 05:23:24', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:23:24', '2015-03-26 05:23:24', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:23:24', '2015-03-26 05:23:24', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '554bbf459d4bbff9291066c8ac4670c8', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '025c6c768f00cb02cc6e77c249eb2ff9', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '78787e1f21a2f32717c5f2cf100b515f', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '883ad68dca6c8e29153249ae2672db99', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f43d39f17d0b9ca5bba68f5ac80c2445', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1bda3fbdf3480b6c3dd66f23745f99e2', '2015-03-26 05:23:24', '2015-03-26 05:23:24', 410780858)  (13.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.6ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 81], ["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 81], ["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 81], ["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 81], ["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 81], ["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 81], ["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 81 [["delta_id", 81], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 81]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 81]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 81]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 81]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 81]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 81]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 81]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 81]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["id", 1], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:23:24 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 80]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 80]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 80]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 80]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 80]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 80]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 80]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 80]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:26:21 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:21 UTC +00:00]]  (18.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 81], ["created_at", Thu, 26 Mar 2015 05:26:21 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:21 UTC +00:00]]  (27.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 81], ["created_at", Thu, 26 Mar 2015 05:26:21 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:21 UTC +00:00]]  (27.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 81], ["created_at", Thu, 26 Mar 2015 05:26:21 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:21 UTC +00:00]]  (25.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 81 [["delta_id", 81], ["updated_at", Thu, 26 Mar 2015 05:26:21 UTC +00:00]]  (22.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c870d13586ab096435c83b366ed50444', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a81feb529d616d5c2471fc143e3af6cc', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6a1ce62ae3d9fbf6ea4568233d80b7d4', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1148ad9aeac327ca517488574fba2644', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '63cb40bd8ea31e05f1dc4fbbf7430369', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cf3c6765060f3bdbb8a56475e178366d', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e9c30ed688e9f06014494fa54af684ae', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7aab02019ad721005fc548f29371456f', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9a23ffed2b7cf0af214656aaf8980b04', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b74f867e5444dade3a27d136c940df44', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3e43567cc161cd35a4ce14e616255b20', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c0e65d90daa44c08544c6f73dbee803e', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '278672ab0c528108faf52d9ea5f34995', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ffca9c2cac83f93f6db9db84b83ce7a6', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '80c498c9f3938f61fa50846829a5b62c', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:26:22', '2015-03-26 05:26:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:26:22', '2015-03-26 05:26:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:26:22', '2015-03-26 05:26:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3d2af9463e28f668631ef64470d943eb', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '766a85b8d9b9aba8aac0f11c905bc325', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e2fae9f384e5b1b88f237fa367689e11', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd8c340c327d0b6ba324d64e1b172cb53', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8168ed3baae3338c5c163e9ac077f361', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7946db0f92b90149c0e90cd06244a471', '2015-03-26 05:26:22', '2015-03-26 05:26:22', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 82], ["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 82], ["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 82], ["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 82], ["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 82], ["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 82], ["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 82 [["delta_id", 82], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 82]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 82]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 82]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 82]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 82]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 82]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 82]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 82]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["id", 1], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:26:22 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? ORDER BY "squishies"."id" ASC LIMIT 1 [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 81]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 81]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 81]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 81]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 81]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 81]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 81]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 81]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["delta_id", 81]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["delta_id", 81]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["alpha_id", 81]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (13.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 82], ["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 82], ["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 82], ["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 82 [["delta_id", 82], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (23.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bfef49a4574fc6d0ad85fc941a1035f3', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '59763ccb094775eb6d1569cd1b31f1ff', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0b279619d2173d5f0efafbe26b9ff0b4', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd760a947b72b26b558f9af13bfa9c2c5', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5d0c2b3ef48f91469c5236b2e92fac9e', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f9ebc96c9f40e5509579ec46b133f01f', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '95cbf23f5d0135fd93dea44b02133be6', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '26433ce951f5f662e343f0fef586818d', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '27318c665249c1332caaee8fc750cb24', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 438300604, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '72a820e5d13dc50b1d941411289a6384', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '567f59f46df38e94f68d07dd8e272ee2', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f6bbdc0480a16e3e8311637561fccb49', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0e4a6900b8806ea740a3f86d3679da25', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fd415eb0f3dc05294594e7e88ee8fd85', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7318c65c2bbd3dff024987a88713f012', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:28:27', '2015-03-26 05:28:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:28:27', '2015-03-26 05:28:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:28:27', '2015-03-26 05:28:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6869775ee4bd76a77c6024539dd93ecc', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd4a84671f259b132e19956ba57034136', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'af16c4a9f86a58b11deb694e21defcd0', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b2319e9fbb949fd6a3e2008ccc28f3e3', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '85ea40728aa3bd1be2704cee243db556', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '12f4536132e474e77d691138a1852ed1', '2015-03-26 05:28:27', '2015-03-26 05:28:27', 410780858)  (24.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 83], ["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 83], ["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 83], ["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 83], ["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 83], ["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 83], ["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 83 [["delta_id", 83], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 83]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 83]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 83]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 83]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 83]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 83]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 83]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 83]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["id", 1], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:28:27 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 82]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 82]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 82]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 82]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ----------------------------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (24.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 83], ["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 83], ["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (17.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 83], ["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 83 [["delta_id", 83], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (17.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c6441dfafb05d3792db9b43df0faf7a1', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '750d6f9d3e0430f1822fbd7586d4c1d2', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1ed38da78e345c1c3f87a6ebbadd3ad7', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '962a20ba1ccdc6b54b727531e93cf991', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9a2271e9486e2bce32d667fe825bc514', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2ac61a8ae3cfe8850e129d6667cf3c90', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e725a84b3f6f1cb3171eb08f6a11d4ff', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e426e9c41018555db3e1d36f5e32712a', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '052d20f9cb9db721b141c8d7d1cfa834', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c6d7d0c336a37f015ae5ae9c778b8602', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2bbf680088e23b587bebde290c1d906c', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c1799c336a383e3ba5cf8748c3b5fa33', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c09d36a8fbe93ebc07a679883fff84ee', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ce34c0e8eb006fc881b17c7235ef3b91', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4bc0a4df481a60ea09988e3cf41430e3', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:29:02', '2015-03-26 05:29:02', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:29:02', '2015-03-26 05:29:02', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:29:02', '2015-03-26 05:29:02', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8feaeced8cfafebd720aab26a84f3c54', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e94f562e7e01b5c86b8f868500f8756e', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '65866866fb527cd358ac0f47625795b9', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '79c7bacc460d7d90e245c98e65c8b6a4', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ba8338aea94b50462153e4de1ef8d962', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a2daa995f25b20f4cbe0d7f72cca33a0', '2015-03-26 05:29:02', '2015-03-26 05:29:02', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 84], ["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 84], ["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 84], ["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 84], ["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 84], ["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 84], ["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 84 [["delta_id", 84], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 84]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 84]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 84]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 84]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 84]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 84]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 84]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 84]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["id", 1], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:02 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 83]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 83]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 83]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 83]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ----------------------------------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (13.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 84], ["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 84], ["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (20.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 84], ["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (18.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 84 [["delta_id", 84], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (24.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7cf3e41e9924500156409486808f29b5', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b7447492c5fa11bea11afac8ad61801b', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0a06333010030172c7541899155f9f3d', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9a5380547e810487293610ffbc10aec3', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3c14e8f126fd40d1ebcaf1a140097e1f', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '11227b78ae033d4f6a42c1205feaf7cf', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1416cf7e94584fc19d007dfc660da8cb', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cd55a9ebf2ad64180d29af63399eff34', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9e315b18779cfc774ef2da1c36f86309', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2d962ae5999bfa9d0909384e197aec5b', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f40630dc3946d11f2e35c2419cff874b', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'cb178f1528d85242c026d0cd13a7a944', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2b151d67466d4871c1f4023611da8b6b', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '70adfe9f59878d4e58a04863a4258e0e', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '14278752afa95cc7c66f4c1e1578f627', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:29:13', '2015-03-26 05:29:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:29:13', '2015-03-26 05:29:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:29:13', '2015-03-26 05:29:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b90af16c645c0e97f97cd9a4e068c8fe', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '778f67bda2a7aed0f74f8ce97ae01682', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c68cc64ef75ccae9521b0f9b295e109c', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3468c038bfbd29725b2d80ea64ee79de', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f43f34caecca36a6384eb39896271a7f', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b40c214e51c96cceea75ff73ec3b516e', '2015-03-26 05:29:13', '2015-03-26 05:29:13', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.6ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 85], ["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 85], ["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 85], ["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 85], ["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 85], ["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 85], ["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 85 [["delta_id", 85], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 85]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 85]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 85]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 85]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 85]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 85]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 85]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 85]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["id", 1], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:29:13 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 84]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 84]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 84]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 84]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 84]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 84]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 84]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 84]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (18.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 85], ["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (12.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 85], ["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 85], ["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 85 [["delta_id", 85], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '191c55c4e334173be06d68a1f3d8d5bc', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 761411935) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c514e12fc298d73e3d60585ac9405613', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '72c6d89e07b4af932250d02d595523f1', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f6772faea89394c178679f317cbf5bbb', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4438decafe1edc17f58ebcf5a2688a06', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c802791fb8c45148203a79a7b59bc473', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '23ebe6faf52300d74ae694b8532317ae', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ac66e81d40ff365c3b067b1f24cac0b9', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1ae696e584eb47f335159b548fb72728', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4c13b966581961b9cb7e890954e34df5', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '37fc81db529a89249ae5798ca13e6093', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '604448fec86aa3369a06d21a4d31ce04', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eff3fb07454ed3a6420a1d4b95d829aa', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7e321ef6b87df53d560934f42199c19c', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '62c0aeecfc19194691560a1ab74855cb', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:30:20', '2015-03-26 05:30:20', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:30:20', '2015-03-26 05:30:20', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:30:20', '2015-03-26 05:30:20', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b53b377004f2eda9ac9325673723a48a', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0a00a39c87dbdc34d5a9368ad3d7e66c', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a2446d54cce27be41b50b964ecee0f7a', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bb99c93c940c110be0eba2f10b6bccc8', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'aa44ae3475b366ed46ccd55ccab95c15', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6e5fda848202d5738aca5982afec19be', '2015-03-26 05:30:20', '2015-03-26 05:30:20', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (6.0ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 86], ["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 86], ["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 86], ["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 86], ["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 86], ["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 86], ["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 86 [["delta_id", 86], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 86]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 86]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 86]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 86]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 86]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 86]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 86]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 86]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["id", 1], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:30:20 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 85]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 85]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 85]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 85]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 85]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 85]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 85]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 85]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 86], ["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 86], ["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 86], ["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 86 [["delta_id", 86], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dce482f0ee6055dfb3b28ee7218204dd', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c81e633c5c0a9a451814d220bcc9ebe6', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8831bed83c9b240534dda9547d2bed6f', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7a1cf9b5d95412beb0385e537c94ca79', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f29a76eb03232729d971628f245dc8e', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '13d548109f7b0398bd55fc71061c488b', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '97efe375974602f6393083f4c5f8c9d0', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '36ea94df33a0f88b425b95a0106df15a', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1c23900a8d5afa70729cbb2f356e947e', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c1eb35cb06a86432eb7e2ce165176310', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '62b0eff4d412e395dd0a73e8fcb834f8', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '517ade2b3be1059c622e94e742c0abd4', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9551cac4efa097d92f0f9b376bad8eff', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '233da903844492bf9e95351d90b5c5b8', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b1e1d7757c12508b6c795bf161ae21ee', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:33:02', '2015-03-26 05:33:02', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:33:02', '2015-03-26 05:33:02', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-26 05:33:02', '2015-03-26 05:33:02', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ec26da55c1ede0f27ada02ee0d86e2d9', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2cbe383d0b5420db973647e2020f4d49', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4cf0e22af2d3cf3a3d6d3d6447a505ea', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '825234dbaecfb47c3da7f928b9df0ea7', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '73ec00042f0aa25864f9d1b7a6c883f5', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '521a14d85e810f777f6d1d346c06d26c', '2015-03-26 05:33:02', '2015-03-26 05:33:02', 410780858)  (23.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 87], ["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 87], ["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 87], ["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 87], ["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 87], ["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 87], ["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 87 [["delta_id", 87], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 87]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 87]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 87]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 87]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 87]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 87]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 87]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 87]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["id", 1], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["updated_at", Thu, 26 Mar 2015 05:33:02 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 86]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 86]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 86]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 86]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 86]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 86]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 86]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 86]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (4.8ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:14:38 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:38 UTC +00:00]]  (19.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 87], ["created_at", Mon, 30 Mar 2015 00:14:38 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:38 UTC +00:00]]  (35.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 87], ["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (19.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 87], ["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (15.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 87 [["delta_id", 87], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (17.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '53c0718e7cfaa37ffda1f7bc26706fc9', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c02167dd03c93fdce9f6c51892d53cbe', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b62b61f164e4f79309dda9dd1d80309', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '67906316031adb7e54401adf9f6812d7', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4196d9699a09bf45ca05dd267261c324', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3cfa5c1432e4d8124d93e6db71296617', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5a8f3b952468fb53a0738972badc3383', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '094704da576197a9b98c2e1d0006cf32', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '16219253c64b1949bb9e60e9d5bbbe0c', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9aee9ee1d150cd84b29f699f0c389924', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'bcf1b27f0194e9625d96f1e55d522513', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'efbe09741d41da91284705c4fb9089c6', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd163b430594c98a95e8a764732050816', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9d326b159f5506ada4f71c3a5dff0ca1', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c707b113123079b2f479de40b6d98504', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:14:39', '2015-03-30 00:14:39', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:14:39', '2015-03-30 00:14:39', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:14:39', '2015-03-30 00:14:39', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '618e179f0c1e666a62850cabb59ec9cc', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7499afe2b31a81d248a131b2fec2c70a', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '71d18f6c9232d996960f2d9350165718', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '127846e3f5a37152295549d1d7807364', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2f3d1a967d1cc01f5ef072ce10bd54a5', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f46352eefd23cad912c468d20fa698d1', '2015-03-30 00:14:39', '2015-03-30 00:14:39', 410780858)  (25.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 88], ["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 88], ["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 88], ["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 88], ["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 88], ["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 88], ["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 88 [["delta_id", 88], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 88]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 88]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 88]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 88]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 88]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 88]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 88]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 88]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:14:39 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.7ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 87]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 87]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 87]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 87]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 87]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 87]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 87]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 87]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0020_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:15:11 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:11 UTC +00:00]]  (14.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 88], ["created_at", Mon, 30 Mar 2015 00:15:11 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:11 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 88], ["created_at", Mon, 30 Mar 2015 00:15:11 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:11 UTC +00:00]]  (19.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 88], ["created_at", Mon, 30 Mar 2015 00:15:11 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:11 UTC +00:00]]  (25.2ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 88 [["delta_id", 88], ["updated_at", Mon, 30 Mar 2015 00:15:11 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3f504ea6e6e3f71f6ab7bf655113100b', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '87ea7ffe97f46164a47ae450455c8022', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c5807e889d39405982bc497835587dd5', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '09470e3f4ce33f984436093e650d148f', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ec11e5f7b699f39aa677a5ec9025eb3e', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a15c73fc238f19956a228bf927b87a3e', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9c6319bc0770d9691804d51da609b00c', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0f0247936fb160a3340f5eeb9cec79f0', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c3c85944474e869e1a1ff863e772e829', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f04fe380f54b719f3a0603a0e70cece6', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7f8216a8cac0c71f3244d4b053c3c66a', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'eb56baa598f56583a2eac1767e20c611', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1cd8ca7bf4e7c87ba8c5834c6cbd025c', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e2b611e158070fccd85d76b8f9d228cc', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eb7ba8e6b7ec4062f920f29940ddb398', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:15:12', '2015-03-30 00:15:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:15:12', '2015-03-30 00:15:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:15:12', '2015-03-30 00:15:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8d9dec44f0ade6efbd947b77f5b078b2', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '83b296ae68675151ec223ff4cce95c7a', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1e975125fb85cfad8c7561ad4bbcf29b', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '610b042a3ab1de49625b6b0eb8b65e70', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1b22752e9fa54f4f63bc287551b4f3c1', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd15ee3f6d3aafe57fdc32bde9b9815e4', '2015-03-30 00:15:12', '2015-03-30 00:15:12', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.6ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.2ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 89], ["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 89], ["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 89], ["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 89], ["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 89], ["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 89], ["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 89 [["delta_id", 89], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 89]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 89]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 89]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 89]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 89]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 89]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 89]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 89]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:15:12 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 88]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 88]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 88]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 88]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 88]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 88]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 88]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 88]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0020_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:16:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:47 UTC +00:00]]  (17.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 89], ["created_at", Mon, 30 Mar 2015 00:16:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:47 UTC +00:00]]  (12.4ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 89], ["created_at", Mon, 30 Mar 2015 00:16:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:47 UTC +00:00]]  (27.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 89], ["created_at", Mon, 30 Mar 2015 00:16:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:47 UTC +00:00]]  (22.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 89 [["delta_id", 89], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (25.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'abe6ff5e65257532e3a3d0fd6275b17d', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fb1f69c6dd0515133f1dc8c999057c61', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '388961e49db951b1d95a1b1315e603a1', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7e62624bb936ec2bb1d1814ae920136a', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '93caddc4f6187de370a2016bf7848840', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '568e7fe9da8113aebfbde59f786f9aae', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b776671317619ffc5b4f34d70046fe9c', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8285456bbf67d004c4971a968c2cceec', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a0e32d45f3119a32e44844e4a9b33189', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e441d2a6801a08a0f6dd0d70595c8f8d', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '100f0a0e2fc455b4f5ffe133c5a3d337', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6e65e0fce69a8179652232c6180d90f2', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3364c7fd6eccb6061d2e5861a538e098', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c8e216034a7f979117ecaeda7075a6e0', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8909444b2ee9373bbc0c3617080add52', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:16:48', '2015-03-30 00:16:48', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:16:48', '2015-03-30 00:16:48', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:16:48', '2015-03-30 00:16:48', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '480c880014a9b5c12fa394fe778f524c', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'df47948230d1fdc2d489e24704375941', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '752e91f01712e4a047fad23ee3c926dc', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '053c0a7df666ed9d9528776593cba58d', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '300d7c4347966800c2c8864b4814cf77', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '981a7c1fd78132a4575bba852551528d', '2015-03-30 00:16:48', '2015-03-30 00:16:48', 410780858)  (12.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 90], ["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 90], ["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 90], ["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 90], ["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 90], ["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 90], ["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 90 [["delta_id", 90], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 90]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 90]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 90]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 90]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 90]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 90]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 90]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 90]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:16:48 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 89]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 89]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 89]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 89]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 89]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 89]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 89]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 89]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0020_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.7ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (30.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 90], ["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 90], ["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (17.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 90], ["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (12.8ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 90 [["delta_id", 90], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (26.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '18c0d8a93b8ba0b003d1531d82263c20', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '85e1bfc87b4f76978bb2b690ce7c2db7', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '80460fae4fa0f218c4f1ed044cb4693e', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd38cc0c0160b9a4f9131417edc13c0e4', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5d699520923075ba71d479c3e03d5fdc', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '12f179b2c9f5fb0911b26aa6d0b575f2', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6ac285515e9fa3ec845b4ebe0da00c8a', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '88c4e4f2d6574f4de041f21c2a0b701a', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd32581a93c0c896376f87fdfe8447c7c', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1825fc0128247b44c252a706b2519378', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b487bb9d44a6a3ad25fbe1babb358aab', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ebda240615c6cbfb9e2cc68831c4c360', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8513ee378e22c9633038bf5903aaa721', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'db90d3c25e3be69876fd4ad62845b3fa', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '85a390afac34b164bcf3330d80f73f33', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:20:15', '2015-03-30 00:20:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:20:15', '2015-03-30 00:20:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:20:15', '2015-03-30 00:20:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4646658b83c70ac3b07d866142d0a42c', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7eb88cf2bf73ee2b77e6734d38ca8aa3', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '97b3abba69ea58048f3843b0391f6f67', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '24dbb616681010bcbd0a48a6805f28b2', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e94eb85e6d79bfc7d3378798def056b6', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '208140a005ebfae40119e4ace4fa0ed2', '2015-03-30 00:20:15', '2015-03-30 00:20:15', 410780858)  (17.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 91], ["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 91], ["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 91], ["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 91], ["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 91], ["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 91], ["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 91 [["delta_id", 91], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 91]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 91]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 91]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 91]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 91]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 91]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 91]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 91]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:15 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 90]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 90]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 90]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 90]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 90]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 90]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 90]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 90]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0020_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (13.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 91], ["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 91], ["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (26.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 91], ["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 91 [["delta_id", 91], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (19.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ff30c9b5de472dd79970f72183425caf', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '02beafbe75db1beac583b73c8f08cfca', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '502dcd71613b281908d132d33a8650ea', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '905e98043a7d070353b6d84af58d586b', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '162ecf9dd5e28a7080e48247eca7473b', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd1950cc089de03b2e06002a3369f03bc', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8364094675f3b6ed7ff5db935359ba46', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '14101778fcde2adda18aee84805718a4', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a2ae330476d6ab72db0d56925cf6ea4f', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b536e461205b774a4d8c6cd5be4ab38c', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '738d01c7181779cfaa972266d9bd8d80', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '748a8883e362afe30a5fd68305f9d4db', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1c94e30b9af0b8ceae7ce9bc8b55395c', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '89ec9bfa6d6cc381c0e38b2435f601b0', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9a386c6deef599291856d4e5bc52ea48', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:20:59', '2015-03-30 00:20:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:20:59', '2015-03-30 00:20:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:20:59', '2015-03-30 00:20:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a4cd98cda46d9fabe4d17c706c0e2238', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7ac187e746e805bd4900bf313cad0e60', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'af172678ccfd930511af517e77b4b32b', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8e0c2a1681e47310955907cb34596e93', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bc7fc6da4f73ef2cb1d8b530949cd45e', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2ce8013a81eb7ae719378410d57ad804', '2015-03-30 00:20:59', '2015-03-30 00:20:59', 410780858)  (25.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 92], ["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 92], ["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 92], ["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 92], ["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 92], ["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 92], ["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 92 [["delta_id", 92], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 92]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 92]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 92]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 92]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 92]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 92]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 92]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 92]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:20:59 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 91]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 91]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 91]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 91]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 91]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 91]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 91]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 91]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0020_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:21:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:43 UTC +00:00]]  (27.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 92], ["created_at", Mon, 30 Mar 2015 00:21:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:43 UTC +00:00]]  (27.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 92], ["created_at", Mon, 30 Mar 2015 00:21:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:43 UTC +00:00]]  (16.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 92], ["created_at", Mon, 30 Mar 2015 00:21:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:43 UTC +00:00]]  (22.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 92 [["delta_id", 92], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '748fc2557eaee28e94a49ba50c0458e3', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eda31265790f6be4432727bf6daeb0a2', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '962cd48f0091f8421e8f20e9bfb491df', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b6f07e9fef1953b15f0cf6a9a77adb96', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1f8cc4a221bc28d89569d53b80c3a001', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '57c77b2da50aba982456c1dfc718c606', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '54cc2d135b04599e5db3c8ce60f78fff', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c12bc300eb9a0794e1666cb2b1f170a9', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '28878a924bc8cb7b17789f9f6067094b', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5614f4762388413eaf50d55ddf56f966', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3e5589b7283e44a2070a5a9c2711b6dc', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '84f13f63a28cce9932dfd35779afc4a6', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '866ac72f1ebcdfa1c0cef19272489b3e', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5565db49fb97371d37ed8575b8d2e2c6', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ece033cab9cfa9cb6991e98e0a0e9d6e', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:21:44', '2015-03-30 00:21:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:21:44', '2015-03-30 00:21:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:21:44', '2015-03-30 00:21:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1176a6c1bffc602cef9267068ba37081', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cb7a5e6963def6d61ff6de10087792e2', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f36369fa81a3ca55b177afdb99734d89', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8d9ebef5d9e18d4bd864c99405cfe029', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1de0e3164f3012522a4c463c6915adcb', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9c5b3db5692b7e955dd15255b189a782', '2015-03-30 00:21:44', '2015-03-30 00:21:44', 410780858)  (18.4ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 93], ["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 93], ["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 93], ["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 93], ["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 93], ["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 93], ["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 93 [["delta_id", 93], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 93]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 93]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 93]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 93]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 93]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 93]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 93]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 93]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:21:44 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 92]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 92]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 92]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 92]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 92]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 92]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 92]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 92]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0020_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.6ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (13.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 93], ["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 93], ["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (18.1ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 93], ["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (22.9ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 93 [["delta_id", 93], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (19.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '85023092bb7436acbebec10762f0200f', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8a0c2c998927790498ddec441aa4d8f8', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '14f48a46a8833ee425aa3e86b5746145', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c89497f0be88e8dce538ba5794441d51', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4b791ad2e25a07cfc3651c000f7846ec', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1af0ca97d5f4e4922b0cc236e6587c42', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7777396fc24e666fb892d7f96589fed7', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4366e5012dc9badf34dbab21a6bdc804', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5470d3f90a8ddfcd4ca6e3ffeaa4c087', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3edfb4205feba1d80de6ccf225428d2c', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '12dc734f3264ad73cd04a568f8dc453a', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1fa24396afd9ede17d7fcbb69fd9afe8', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e3cadf4c8220bc777cffc9c8797342ef', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4fedcd06bf2a8807e6ef57a05b6c4fde', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0d745936acadaf62424f38fd117f9700', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:22:52', '2015-03-30 00:22:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:22:52', '2015-03-30 00:22:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:22:52', '2015-03-30 00:22:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c648f7a499deb1361252fabca5439f1a', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0c6f83eeccec0c02a81d0736749716ff', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ed309d1ff5e9f60ef7a694c19a0c80db', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '84d6fc67e8e4c0d89984fab71f865971', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3b94cd3fbce2a24f4367f57c1c573d71', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd71f05467aa3982c4a2cf9d5385bb5c9', '2015-03-30 00:22:52', '2015-03-30 00:22:52', 410780858)  (30.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 94], ["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 94], ["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 94], ["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 94], ["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 94], ["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 94], ["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 94 [["delta_id", 94], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 94]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 94]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 94]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 94]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 94]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 94]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 94]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 94]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:22:52 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 93]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 93]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 93]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 93]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 93]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 93]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 93]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 93]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0020_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 94], ["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 94], ["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (26.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 94], ["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (29.5ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 94 [["delta_id", 94], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (24.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e5edf76bd4bdd3ab4a125ece77e2f22c', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '22104683d73b9b55fa00d4998d5096bd', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '38f7bc6d05c03d718c026122be7af96a', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '57adfcf4be3fa67d61c5339bc546d960', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6a065184bbe605ae1a68a8052648cad3', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e66a7cbe61c6c4e5053ff5a757b24dad', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd29d6389a370e365d780d8abb4f2c2dc', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a4eb7340747023d5ab09d8c949860d9a', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2e23cd33a3c4f81762b933ad29dfc258', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1eacf3c2b7f9db6f7a9767e5c5930eb3', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7786c4b02ae7f5456fce203bc5d28e8b', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5e4899e41c71b7d286da92fb0c38070f', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '04b0d5ecbfd305de8e9bf3e19f545b75', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '25f58b4e2cf58bc5a58001f4206b7763', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'df14457739a71106e76fd8f0c88092a9', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:27:22', '2015-03-30 00:27:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:27:22', '2015-03-30 00:27:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:27:22', '2015-03-30 00:27:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4976194b5302a169689da015f2ce8e8d', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '107c55cf45630d305b8d4c6599d3d37c', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8c1623cf8a9f963e266f2f6799f2fc1d', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c5719a6bef89cd196c1061f1e0ea1929', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '56ec924680ad44c3af2efce83886565c', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ddfb7d5dcba5f3d359bae8125dc7d040', '2015-03-30 00:27:22', '2015-03-30 00:27:22', 410780858)  (30.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.4ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.4ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 95], ["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 95], ["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 95], ["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 95], ["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 95], ["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 95], ["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 95 [["delta_id", 95], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 95]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 95]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 95]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 95]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 95]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 95]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 95]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 95]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:27:22 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.2ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 94]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 94]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 94]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 94]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 94]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 94]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 94]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 94]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0005_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0020_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (23.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 95], ["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 95], ["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (12.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 95], ["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 95 [["delta_id", 95], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '91141764b889b1a8657a2a34a82c0a02', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '32f1e0514b332c6d6cf4a684f0208cc8', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1aaf9dc03581b3ea9c178c1048c01095', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e551eff2b5f73c0801ee65b91d4838a0', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '74661bdb834166282c39691fbfaef49d', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a7a3181dfaa46c00c0262f0f8b0a3a9e', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '92bca2609bb790400bf64471eb7306d1', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'df2c18e9e8f1c539134f6759027dfeb6', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '415a04f2b4ffc6ff1935956d227a2def', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bd4c706b3e172cfab3eb8dfe3e44e9bd', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '12962ff7ba851250a5382c19823a4bce', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ef40a5c2930523591c1399ac0ba14460', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ed932e1203c4ccce72d3ca6e05fcd227', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c13c6a403dd73855a22d6bd7f6479669', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f2fc161e47cd30d3096644c75993a683', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:31:14', '2015-03-30 00:31:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:31:14', '2015-03-30 00:31:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:31:14', '2015-03-30 00:31:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '93d635d02bf3964f3ae6b18c5361e82b', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b2b864ce7aacd276d598974eb6892d2a', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd5b6d57839d0a2fb1c87db57968416cf', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b1536b7970353dbb85baf8ec7bf78b46', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '910e234a814bba232676f8e64893d3e4', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6ac5a8417fa2a5fc30f0ae945290d8e5', '2015-03-30 00:31:14', '2015-03-30 00:31:14', 410780858)  (13.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.5ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.5ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.5ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 96], ["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 96], ["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 96], ["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 96], ["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 96], ["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 96], ["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 96 [["delta_id", 96], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 96]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 96]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 96]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 96]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 96]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 96]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 96]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 96]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:31:14 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 95]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 95]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 95]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 95]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 95]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 95]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 95]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 95]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks validity --------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0006_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0021_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:35:58 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:58 UTC +00:00]]  (23.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 96], ["created_at", Mon, 30 Mar 2015 00:35:58 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:58 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 96], ["created_at", Mon, 30 Mar 2015 00:35:58 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:58 UTC +00:00]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 96], ["created_at", Mon, 30 Mar 2015 00:35:58 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:58 UTC +00:00]]  (12.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 96 [["delta_id", 96], ["updated_at", Mon, 30 Mar 2015 00:35:58 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ccfcf658b6900ccc0857563039f04241', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eda7bf733b1f96fe13361f942d94052d', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9d1a07edeb2279aa6fc020373f2beefd', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '80b6674ca99a0e382a5fbcfe09258c1a', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '059f6a61a3f832ad549b78282cd04b35', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '72af9ceb4f8f4852de740a7f96539c3c', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9d860230dd0c27fe3004d00c3fd6811a', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b79104fb5f822a6d49cce8f51ff3e4a9', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd9e41e1ebeed810d66c936f083eea13d', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '03962d3fdc684d9c3d102238f5288441', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fa6f2512f91bfe11a6dedcf9966d5d0c', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e096db7db39194e4283bfbbbbc60b905', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c2547aeb418e7243f28d096a91b471ac', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '100c33ef6188f44e316ec708cab65528', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3854ee925a3d16867d7fb3c15ee974ce', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:35:58', '2015-03-30 00:35:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:35:58', '2015-03-30 00:35:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:35:58', '2015-03-30 00:35:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0d8f544439653f878aaf84e094949893', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c6eb5e264f58ff1b88d0667864c6d9ba', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1b5f06075489a6aad05d3dc738b8a3c2', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e37e849eb186127b16db4dc3800efca5', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '290d1643fb059a08a30223befc9d312b', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2098bc771edf8a3a35e2a2683f92ffc9', '2015-03-30 00:35:58', '2015-03-30 00:35:58', 410780858)  (20.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 97], ["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 97], ["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 97], ["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 97], ["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 97], ["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 97], ["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 97 [["delta_id", 97], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 97]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 97]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 97]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 97]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 97]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 97]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 97]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 97]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00]] SQL (0.3ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:35:59 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 96]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 96]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 96]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 96]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 96]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 96]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 96]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 96]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0014_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0023_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (13.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 97], ["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 97], ["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 97], ["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 97 [["delta_id", 97], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (30.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd9f3dd4e56399b8f68e5cdfd24dcdeb4', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e15b98ae887cf31711ce076200a7d1d', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd39771e94445140e46299925c1375f8a', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6abda11c50cdf9ed844eac7fa8f64e7e', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'da161b2fc1cab702517667e33ea02bd6', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3fbf4e5030b0a865892d8afa7a9606ac', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '729cb54f2bbc3774bdf86fe8313b693d', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '29750801f17e8807082b1daaa3559797', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '32262d10cd8d3f45c7bc7959c1dbf912', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9d71901be33ba1fa1aa9b2571ac4140e', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '97d4356a2ba4482a5a1e43a2472a925a', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '31189b4baee82eb86cf70ae91a618e68', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb22f1e5d140b78e24f6cdf23c52259a', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1ab16a3798f542f4c0a6e9777c448e92', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '00a28df05b10e05605adfad8f1a8fc8f', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:36:45', '2015-03-30 00:36:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:36:45', '2015-03-30 00:36:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:36:45', '2015-03-30 00:36:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7209d7b59737c60d5e27d74dca19ee0d', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b0dff7a65cec7da7a3477b0a7f0ec055', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f0706635a89f428c3893504c36442697', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c30ca4435f6d2402b7607b5a360b05ce', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7a43bdad94f27d479d03d0be61d17339', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c1b94809885aec3d455ae4137c4a3a75', '2015-03-30 00:36:45', '2015-03-30 00:36:45', 410780858)  (25.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 98], ["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 98], ["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 98], ["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 98], ["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 98], ["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 98], ["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 98 [["delta_id", 98], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 98]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 98]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 98]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 98]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 98]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 98]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 98]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 98]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:36:45 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 97]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 97]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 97]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 97]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 97]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 97]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 97]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 97]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0014_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0023_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:38:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:13 UTC +00:00]]  (13.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 98], ["created_at", Mon, 30 Mar 2015 00:38:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:13 UTC +00:00]]  (12.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 98], ["created_at", Mon, 30 Mar 2015 00:38:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:13 UTC +00:00]]  (35.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 98], ["created_at", Mon, 30 Mar 2015 00:38:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:13 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 98 [["delta_id", 98], ["updated_at", Mon, 30 Mar 2015 00:38:13 UTC +00:00]]  (20.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '51ad3704ad9460d04d0ba03d04b73e9e', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e9ed84c9cb725e9ac307a93be60eea50', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bbc014055db6a225803e58fcb62fa4b3', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8cd17b48c414fea8b59d6d5bdd10b9c', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9173d8c7f1616dd736a3a3b94fe38832', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8e06ae25d5bc6b97eb17bbbac6e1fd40', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'bd2c9815816f786fc6115925d39b98db', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1f97b40164ad911a2ef409b1ce7e0451', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'baebd56b60cfbf0dc6d2427e23c14884', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '38d8c2f331f9f77fc85610f65dc900ff', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f4e7050fcdb98357b2ac3a77db314728', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ba020c409366ab00752600e48b31c221', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2b21d5b12b2ed0719c9506018a92e810', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '91b37a5ff58ca5086d6b3201b9da65b1', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2446c2e85952abbcd8a4f6baedfdd133', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:38:14', '2015-03-30 00:38:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:38:14', '2015-03-30 00:38:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:38:14', '2015-03-30 00:38:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e8e0fcb94a1015836cf59561351d2e82', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b933e259b7373d0d87475a7bf5ed73e9', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1560c5fa81cb6ed144a4de2d402d8de1', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'efdb77029ccf14c4728443b1cc94a8fc', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '28331c00c519226fe461121efaae5eab', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c1eab5fcdf693a0a99b27bad315b9a6a', '2015-03-30 00:38:14', '2015-03-30 00:38:14', 410780858)  (17.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.6ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.4ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 99], ["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 99], ["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 99], ["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 99], ["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 99], ["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 99], ["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 99 [["delta_id", 99], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 99]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 99]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 99]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 99]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 99]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 99]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 99]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 99]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:38:14 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 98]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 98]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 98]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 98]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 98]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 98]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 98]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 98]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0008_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0009_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0011_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0012_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0014_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0023_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:40:24 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:24 UTC +00:00]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 99], ["created_at", Mon, 30 Mar 2015 00:40:24 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:24 UTC +00:00]]  (25.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 99], ["created_at", Mon, 30 Mar 2015 00:40:24 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:24 UTC +00:00]]  (12.5ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 99], ["created_at", Mon, 30 Mar 2015 00:40:24 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:24 UTC +00:00]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 99 [["delta_id", 99], ["updated_at", Mon, 30 Mar 2015 00:40:24 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2f873cfb5739751a09bd5cf3194e6bec', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aaa23051f35aaf8fac67195fb3c281d0', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3a29b0c5fd0ca8eea7b0a01b94af2dc6', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b0b783ae7e414038c032cd945f90b01d', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '71a09ba67dbed3739f3ee96b54c54edd', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '02680b53412e1535100d82f409472c2b', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5894f7999b8389c9330a07b115d46c77', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2e835c1faef651615093b3fd227b0c68', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e66bed09242786a6c3e8774ed939e8dc', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3575bfe6117362f29f62c87f99384130', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ce1a0754232b60b01bbcea00764f21c0', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '32f4318e2e7356138022d531b0c2bbed', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9107be76964c4011033775ed0e723c03', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6c6e9f0cf62eca4df419b1bea5605c38', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '336916b8536991f6b4852a9895db8594', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:40:24', '2015-03-30 00:40:24', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:40:24', '2015-03-30 00:40:24', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:40:24', '2015-03-30 00:40:24', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b67795b1a3948efe74f9c21329c3565d', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bca7c63cb79cc44bdf251fa0ecd64a3b', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0f67348c5bb1c9a5368284809947deca', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'da9f5a79bedf4e68a550a0246f77af55', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'dacc9e554f5dd252c392725e3c65551c', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '87b0a2b87123e0f379357947513d60cd', '2015-03-30 00:40:24', '2015-03-30 00:40:24', 410780858)  (13.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 100], ["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 100], ["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 100], ["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]]  (1.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 100], ["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 100], ["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 100], ["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 100 [["delta_id", 100], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 100]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 100]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 100]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 100]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 100]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 100]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 100]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 100]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:40:25 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 99]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 99]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 99]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 99]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 99]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 99]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 99]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 99]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (14.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 100], ["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 100], ["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 100], ["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 100 [["delta_id", 100], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (18.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '629a16c60fed8cf0e0f18490840109b3', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e0ffc05cfac5e8bafc9bbd42d5e60c9a', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cec445b0087d9c3bbd0713e054c9ddcd', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0e8b97124b9aa62f4c14e59cab1a2a09', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7063dbb72af5f0463b411fc50c188925', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe07f8fe4b396cd739c3d4958dbc9610', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2d42f8e7de16b0fd978707cdf919fb2b', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2dc6b8452569f04ff6f9af98ad451059', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ba22475574c904641b8c358ab7579225', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '524195c4eb16dde62e4d0c59c45b9673', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6fbcfbe0ac31a580cf9ab1639bc43881', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f62628cd3162d33cedb46d296a09c95c', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3493e0a79849f4073b0bae52abb43480', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8ce01de0deb0adcc2933ea73893a3945', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '51886e93159c14fc3c5a40b13913e7e1', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:42:53', '2015-03-30 00:42:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:42:53', '2015-03-30 00:42:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:42:53', '2015-03-30 00:42:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '839de2764e53ffeb0cd1da6efb8bd3c5', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ea109d08d3990cac735a2f703fbb24ce', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0c0bb399393022c48360f61137c6c91e', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7ea43de551b6e74f22a06fe527f6680f', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '937765ab05c105ffa29006fb15366bbd', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0474ae11b396902603beaebed876a15b', '2015-03-30 00:42:53', '2015-03-30 00:42:53', 410780858)  (13.2ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 101], ["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 101], ["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 101], ["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 101], ["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 101], ["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 101], ["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 101 [["delta_id", 101], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 101]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 101]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 101]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 101]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 101]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 101]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 101]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 101]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:42:53 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 100]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 100]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 100]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 100]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 100]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 100]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 100]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 100]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:43:50 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:50 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 101], ["created_at", Mon, 30 Mar 2015 00:43:50 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:50 UTC +00:00]]  (29.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 101], ["created_at", Mon, 30 Mar 2015 00:43:50 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:50 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 101], ["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 101 [["delta_id", 101], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (25.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'de687fe56972a27c07476349b408f8fa', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b74a61b4f83a8879aaf4568365170cb0', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '98504d46bae4480f48de6c88e7ecb734', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b06acc7a2bd06e789ac318cf1a3ec8c', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 775134066) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '77c74419a09e48660a91d7cec7512ccd', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'afad19626fd406a346f88585df50d193', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a415d3c8c8f7f87233e174aff83d015a', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1259d08e95a1195c7a6d8e2ab18d35b9', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'db3db28dd8d15422af5ec4e6f72fbab1', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '32fc6761bc52053a889174f535b6c243', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '73c276d8d98485a24eecb525560eeb9a', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'eeb50d5264f20d2e14f48e9f23c36518', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7f60a592abc0759f3e617468d208eb03', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a5c37df352af53ccc737710d099298a0', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '18541671458929c8f574cefd268adc87', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:43:51', '2015-03-30 00:43:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:43:51', '2015-03-30 00:43:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:43:51', '2015-03-30 00:43:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4822888ec66d330d3af7fdb41ba0cacb', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9ba65fadc77fbb84b3c4725d43936f69', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6af355ffb60fca02af0f77bd64d893cd', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0fe0e979b51e8227da4aeacefc2c5fb3', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9fc48c99255486c34406d69c68545651', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '43cbc00643f23691666f9d5f08ab446d', '2015-03-30 00:43:51', '2015-03-30 00:43:51', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 102], ["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 102], ["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 102], ["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 102], ["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 102], ["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 102], ["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 102 [["delta_id", 102], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 102]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 102]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 102]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 102]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 102]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 102]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 102]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 102]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:43:51 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 101]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 101]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 101]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 101]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 101]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 101]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 101]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 101]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:44:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:46 UTC +00:00]]  (21.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 102], ["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (17.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 102], ["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (29.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 102], ["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (36.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 102 [["delta_id", 102], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (19.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b1a0f0d88b9e8c7fef96be7807f0b94b', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '78a3f50346830194c53cc5bbec553d26', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1803adf725d098c77665ca6bff96e7e7', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bf3efdeb143416b6b307ce17acb8aebb', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c13e6bf5d5775d6341b29da3cb2e1fa0', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '49b43bed7f77464cdab2aa5326018273', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7460d3bd6f1005a530f717ccd9f69da9', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a506d7b63bb5ead3a516fe9c13247db1', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd0f745bc6675a047bbbbf2a773678866', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '532f7f8c6f217d27b095c56eab6c4f0d', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '69b4c9bea649fe98dfaf43dcd1a957ac', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9db052fe81aff634436a73f7a497d1fd', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b71d89b6c64532ee0f68ff5852b9ffce', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2671d994ba4a0963705e145c8581b261', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eb23dbf455463250139888cd9ba3c313', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:44:47', '2015-03-30 00:44:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:44:47', '2015-03-30 00:44:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:44:47', '2015-03-30 00:44:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '033efa9088cfa87e93560c58239c2ba1', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 884173432) Fixture Insert (0.2ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '15535f9f98023a5431456fcea47374f3', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '59b025ed957266b40675ab9631e028be', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9f2a8527212dda2eafc4966247af6e00', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '334eea40f707022626f669546fcff77e', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '60086568cd4a566c925725b287d51c95', '2015-03-30 00:44:47', '2015-03-30 00:44:47', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.5ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 103], ["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 103], ["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 103], ["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 103], ["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 103], ["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 103], ["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 103 [["delta_id", 103], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 103]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 103]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 103]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 103]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 103]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 103]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 103]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 103]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:44:47 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 102]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 102]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 102]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 102]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 102]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 102]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 102]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 102]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 103], ["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (26.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 103], ["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (25.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 103], ["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (20.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 103 [["delta_id", 103], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (14.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98df5e06f4684d4e77fc9f3f4c44098e', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '87163f721f722bf7037a50f2ea7a7ca2', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3870deb158337a581a0fd24d839a8cc8', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '54c96cbb5c9f54179c6b3e1738f92720', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b3cfe6a00a3bfa71eada0c1c7d786f16', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd17caa03bfd2074fef8433055493bb07', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ed68cd04f92af7702b27efaaf863eb8d', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2db97ddf3ec498867bcbf4a748951809', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '05f3c7f6fdcfb0c4b3c309bfb1988cf5', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b3ccc4aca4aad9349f106f7ce4155944', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '038a5375fe5f4be1a6fe12264b53bc6a', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a5bf3b28b8fc626a0324c9d0faa1dc7e', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '31fb4da0621ebfd1951ecd75e4a956ae', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ad897ea4b1206cc5f0313203ffc3f346', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd7cc540225d568edb24dc45cf3474c6b', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:45:35', '2015-03-30 00:45:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:45:35', '2015-03-30 00:45:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:45:35', '2015-03-30 00:45:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cad85a0587b12cadb2c23eb3193b332b', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '74da56f031c034266ee8238ec21960be', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bdc1795c0053333f185145eab31e4916', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '738bd7423657242a44032bdc73b4509a', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '219d8f990846f8e7d98f539a589a6b34', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a9751c5879820cddbbaa410d354e76d3', '2015-03-30 00:45:35', '2015-03-30 00:45:35', 410780858)  (18.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 104], ["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 104], ["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 104], ["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 104], ["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 104], ["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 104], ["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 104 [["delta_id", 104], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 104]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 104]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 104]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 104]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 104]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 104]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 104]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 104]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:45:35 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 103]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 103]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 103]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 103]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 103]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 103]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 103]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 103]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.3ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (13.1ms) commit transaction  (0.4ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 104], ["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 104], ["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 104], ["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (22.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 104 [["delta_id", 104], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (19.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a686b9de9b636128d0cacb3ef081b538', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8e65408d5ae2c71bf6f83569a242e5e9', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '45b2cb26892316bac190b11a20f0acc4', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '563c8d3d53ba1799fc3d38d01a3745f4', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '028321d8139b34a074373ba0e2be61b2', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a457e8aaae90d0d68f962dcf72117910', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '65097dc9f2c52536d6264ee9457f8946', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '13263ff3e2f6ecb9e1488be9b30d3a34', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '845bee0dc92cfe92bca295309867669e', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8fb4c9f1e3248b79f2a8b50ecd6bc87d', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dd2290e8afc6f94098185312f2ba139d', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd8ac9f90e42c4c827186e3900deed708', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8effa9ff88678c9ccca5704b41fc9c9e', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '74a378bea258f280ae14445a784ecd28', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4ff8ea228983476675cd7e1f5ab5ace5', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:46:13', '2015-03-30 00:46:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:46:13', '2015-03-30 00:46:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:46:13', '2015-03-30 00:46:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7e464b5341198e501af6afdf76c0b24d', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8be1940c2034d477f29912cf85bc4321', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'af793f7d4b48e8d684d8a143a49d835e', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3cece9e4154d5d16be0952a127d1bffc', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '55b18ab21d474a049906c1176dcd8bf0', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2a4ad41047eb939dcc29bd3ba6a41f9b', '2015-03-30 00:46:13', '2015-03-30 00:46:13', 410780858)  (17.9ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 105], ["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 105], ["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 105], ["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 105], ["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 105], ["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 105], ["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 105 [["delta_id", 105], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 105]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 105]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 105]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 105]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 105]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 105]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 105]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 105]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:46:13 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 104]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 104]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 104]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 104]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 104]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 104]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 104]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 104]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:48:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:25 UTC +00:00]]  (14.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 105], ["created_at", Mon, 30 Mar 2015 00:48:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:25 UTC +00:00]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 105], ["created_at", Mon, 30 Mar 2015 00:48:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:25 UTC +00:00]]  (24.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 105], ["created_at", Mon, 30 Mar 2015 00:48:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:25 UTC +00:00]]  (20.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 105 [["delta_id", 105], ["updated_at", Mon, 30 Mar 2015 00:48:25 UTC +00:00]]  (17.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '211c7198bdca1cb49e02a7023d3c0451', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '70f9fd557102829ea6cc9b6a1e390bf3', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b58778ac62dec11ac27259cc9226fd11', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '47a4a8955b773b684a489d8382fb5637', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2b54557bd5453ec7918dbff34dc268ee', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '90ac101f5481b12c472a373898ef18cd', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f9c7d4c424864074984d68b393a74057', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '16d5ba787791dfc61de41e9341519a87', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fa7984cd60701b446731be9c2b9e9211', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c11025e866d5206e19d0880ea7b31a28', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ffbe547001f818fa03d49cf04a540f24', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e61bc2efaaf89e745e262b4adfc5e153', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dbb7a79298894db226b67fd3cf2d7f33', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f2b1846fab2788e29e1dd34aae9c31db', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '406fad1b5215404bd3e68e94c96f0bfc', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:48:26', '2015-03-30 00:48:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:48:26', '2015-03-30 00:48:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:48:26', '2015-03-30 00:48:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a6d9aaf90b14e2b9d64ddf225b4ecf59', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f95fe297cc81f6b2e29bfd29d6d80b2f', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '05b3ed1a1afc7d40a5cdc889792debc2', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '38dbeb71ff7774cf14005ae957b64e29', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '69f0d55199ce2ce1a246a3d67606dc20', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '597c2fa323e215629f57d80ad768168a', '2015-03-30 00:48:26', '2015-03-30 00:48:26', 410780858)  (26.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.4ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.3ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 106], ["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 106], ["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 106], ["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 106], ["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 106], ["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 106], ["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 106 [["delta_id", 106], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 106]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 106]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 106]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 106]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 106]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 106]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 106]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 106]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:48:26 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 105]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 105]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 105]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 105]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 105]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 105]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 105]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 105]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------- PolyBelongsTo::FakedCollection: PolyBelongsTo::Pbt --------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:49:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:25 UTC +00:00]]  (14.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 106], ["created_at", Mon, 30 Mar 2015 00:49:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:25 UTC +00:00]]  (12.4ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 106], ["created_at", Mon, 30 Mar 2015 00:49:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:25 UTC +00:00]]  (23.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 106], ["created_at", Mon, 30 Mar 2015 00:49:25 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:25 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 106 [["delta_id", 106], ["updated_at", Mon, 30 Mar 2015 00:49:25 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b9d03097378734fe76e1e9536c61455', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1d2946d6caedd00a1317d83b7f3cc9de', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bce2e986e86865ae6468918a6224750d', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f96bd0586df17e8e49516375162a8a30', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '805b62b400c12e70d3456d96afcbaf00', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fadebf8542c846d3c4065101f22d39dc', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2bd110cd1d5a2ec69f12b6c29fd709a3', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8ca71510a867d821a3bbca03fd58ddf8', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1c49c7d0cd9fbaea93001d7f3587d80a', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7ba45282675fbe0dbbbc8e6783270fa2', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a5ca0fe3e2108662c220c8add7aa057f', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fb71142fb2b1ee26bbd96227f93fd939', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4e5202117cc747bafb68903e371f69ee', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ac943a4e870681cf57ecd4032df30230', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6f118bf92fd3e7413c24db513c3c2c53', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:49:26', '2015-03-30 00:49:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:49:26', '2015-03-30 00:49:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:49:26', '2015-03-30 00:49:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '872487c13a57dcd56681e2499bd0db4b', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5cd6c2252ca4fdb0c4f83e292e8b3cc8', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4fdbbfea398353142799c87ef446de8b', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7c62e398dc8b9508b82caeb77f64b9c8', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '129277bbf68181c255e49ebe54de89ef', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '98b6e527fcdf42b39d934cbc05769150', '2015-03-30 00:49:26', '2015-03-30 00:49:26', 410780858)  (21.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.5ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.6ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 107], ["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 107], ["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 107], ["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 107], ["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 107], ["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 107], ["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 107 [["delta_id", 107], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 107]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 107]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 107]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 107]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 107]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 107]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 107]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 107]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:49:26 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 106]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 106]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 106]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 106]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 106]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 106]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 106]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 106]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (14.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 107], ["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 107], ["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 107], ["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (12.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 107 [["delta_id", 107], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ca8bb50c93c61e222a23d55c1481aca1', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8ad8521b2f6cf85f4bde591344366dbc', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4ef52d790d0f82ab457f523052cb2b29', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b3af03ff6970ea66f33165f546eab23', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5ef26543c141a27cb814308eb652a348', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e9650ffaf2e3291af869f2185776cab9', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6a852eecc758537c4bd2122083b162c3', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '86e46ff461ed70d44078fee95371a051', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'eeb70d0d27ab1cb6d8e9740383018fa4', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0261c312ff5bdfd9ad937e411e9c111f', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd33a32c693250b4b7c5e53b5b07e4ee3', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3a8f83c627f2930d903fa63ba2989f92', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '74d8b62f6a745b58bb15919e1103f29a', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1554954f3dc959bcb60981aed87a108e', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd2315176a4d9a890ef0ebde1a6e45667', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:50:16', '2015-03-30 00:50:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:50:16', '2015-03-30 00:50:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:50:16', '2015-03-30 00:50:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '60a04c57eb18300c590f690bf13089c3', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e8f4f92e9ba1df468142fefb7da6299a', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fe4d571ef4909674d44c131287312300', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f2fb8b2c54b73c9b2d79bfb536b4f941', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4818c8688676ff333f35094de8901944', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd314bf1b5467fde141301e33a80de7f9', '2015-03-30 00:50:16', '2015-03-30 00:50:16', 410780858)  (13.3ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 108], ["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 108], ["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 108], ["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 108], ["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 108], ["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 108], ["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 108 [["delta_id", 108], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 108]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 108]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 108]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 108]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 108]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 108]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 108]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 108]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:50:16 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 107]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 107]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 107]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 107]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 107]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 107]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 107]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 107]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.7ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (23.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 108], ["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (18.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 108], ["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (18.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 108], ["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (22.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 108 [["delta_id", 108], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (26.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '007098d95d2047b3205997e6f503778b', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f0305461dd8a5c38c08c034df2389bfa', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e93818496d774158f21da0eaba7cb088', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ab67d4ff3d03e00d4a9666e887cba540', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cdd70c1e5e3658d292e272c89aaf4a38', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f671ebfe823d44d4fbfcf6fc5695b7e', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '364ea6ebb2aab76b5479e41e4e4f91ba', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c4fccf69bcac12eafbf7d6e6bc88427d', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '15230787486ebf144b07a8743317f2a4', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9be5c748cd5bb2daf9abc6b904487697', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '37f06339cc37a7edf2ad83bf1d85293a', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0d6fb0bc81984d2745f49f55743f98b3', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c27a622d32237814ea774073ec51c543', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3936792e48c7d9f90b12ba98a4abc73f', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '25fd5ea049e95fc06ba45f8d51595bf9', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:51:16', '2015-03-30 00:51:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:51:16', '2015-03-30 00:51:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:51:16', '2015-03-30 00:51:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5adbfb983fe89a3069a6168bbdb0f2bf', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '07d69f0147d49863fbf98e8a21cd6874', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '845d1c4b6044ea30ddd23e17d56c985f', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'be45f473a0b5d357d5e6d123f01880ec', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bc9619a560d4eb80f0d0ba66dc3532f6', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ab75a6827e623923ce3589e9a08e6519', '2015-03-30 00:51:16', '2015-03-30 00:51:16', 410780858)  (21.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 109], ["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 109], ["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 109], ["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 109], ["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 109], ["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 109], ["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 109 [["delta_id", 109], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 109]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 109]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 109]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 109]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 109]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 109]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 109]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 109]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:51:16 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 108]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 108]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 108]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 108]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 108]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 108]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 108]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 108]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (14.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 109], ["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (27.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 109], ["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 109], ["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 109 [["delta_id", 109], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bbc65d8cad12e235aadc1ee7bb3f01a7', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '24a474dfce911a339de8bd1295343b3f', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6fe57b7028a536e3298d80fe24654085', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7141484db046adae7ab38411dbdff8bf', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8b5e0cfeba993edc342ce8da29702dfc', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '641984832403c82758bf36808eb8f0a3', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '57d513f608a4ccee6b085986a8c65334', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '443e5c1d0175781de2c6583aa9a5c0d9', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c777e9d072cb4fb0d57f667c2a13ca3b', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f0c85c6309dd81df95c3f5a25b13cf6d', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f12997551ded42e4c39f8ff206283ba0', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '237eb2de1eb7722637a62da9ae48f214', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f395f6c1e59928d4325f21df2eab3f29', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '960b2594336bdb9bc7260096974c58de', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d4ff45c6510356f78dbbed2002d27c4', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:52:53', '2015-03-30 00:52:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:52:53', '2015-03-30 00:52:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:52:53', '2015-03-30 00:52:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7292264699e9b01b0e0c13cd5d42b7bc', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd71ec36becf991123b48b770e4c22e56', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b86a760c91c157fa0e745611e293b499', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bcda18f8c1a56454471bd60aec393818', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5d88fdd737ab6b3ecc8b21e45dfa8bc6', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8fce6fcb856738317449d1cad17dd1bc', '2015-03-30 00:52:53', '2015-03-30 00:52:53', 410780858)  (25.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.5ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 110], ["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 110], ["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 110], ["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 110], ["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 110], ["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 110], ["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 110 [["delta_id", 110], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 110]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 110]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 110]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 110]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 110]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 110]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 110]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 110]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:52:53 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 109]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 109]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 109]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 109]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 109]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 109]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 109]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 109]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (14.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 110], ["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 110], ["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (13.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 110], ["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (18.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 110 [["delta_id", 110], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (25.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '882b64d80d5347485dce07fc7b286a0a', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bb7d84d8cb88007cc14e95b1acbbe64e', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '43ffddaa6b83c5974ad2fee7527847f4', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'deb142accd94cb01cb679285b128587c', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd1040cb386523a46cf631472b9adcc62', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '95818c0712758d1054c4e3a2a41dfd6e', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3bcd704529b5e968d407e764a3f7bb9c', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '81379a8363e506bd3f8f65d592996d40', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '73fd272071e16ce785e91ece17b66a62', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bbca9e43c87b20f6b8e6b005fc0768c3', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '52ed70f05e6064cefd03d22d1c77e5e0', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c735ecc06b2409cf055870a6642d0f30', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6966a750d264f27c912dc7e66d32d9e4', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '55bd1cb363a715369c93e07c65865b9c', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8fca240e1d41209ca4235abe82d3b487', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:56:40', '2015-03-30 00:56:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:56:40', '2015-03-30 00:56:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:56:40', '2015-03-30 00:56:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '973974567b4b2cf1cb085e892f299c3b', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3ab87648247672aca53bc80db2685127', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '365fdcd6a663630da5e1eb7c4cb21139', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c68952acac92dae76eff81c2c56a1664', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ed8841b96007235f57bfbbf5dae3165f', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a0b75eb579f8425575f5d99b76b01914', '2015-03-30 00:56:40', '2015-03-30 00:56:40', 410780858)  (26.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 111], ["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 111], ["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 111], ["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 111], ["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 111], ["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 111], ["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 111 [["delta_id", 111], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 111]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 111]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 111]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 111]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 111]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 111]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 111]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 111]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:56:40 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 110]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 110]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 110]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 110]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 110]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 110]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 110]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 110]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:59:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:26 UTC +00:00]]  (15.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 111], ["created_at", Mon, 30 Mar 2015 00:59:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:26 UTC +00:00]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 111], ["created_at", Mon, 30 Mar 2015 00:59:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:26 UTC +00:00]]  (30.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 111], ["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (25.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 111 [["delta_id", 111], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (18.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7489e154f19b9c0f45242b38d65c1f6f', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a2b937e059b87626407dc83a8781c3c7', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '342f5600b902ab51fa2c757a78bc1f54', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '238b3aa80a30fc9708c5537ae77eb3fa', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '96835a10c40c00c9b3ff7f26918e1a64', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dce41e41d035ced4961c9efa8f2e7dd3', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '68e07db95cfb5ed5732cea37dd0b5c2c', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9108b9302b6a3ac22edba9d584b7ab00', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5220faa3be9322845e7324cde09746b9', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '252e1656e082915b8c7a862ad0ea937a', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9f129b650aa8c7828886da37ae6ca9da', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5513dee48e46f05a441d5c61e59bf6a4', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8fe7ca0e8b2034522795e4c9d7887cde', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ea018fc94017781ab866f0c801cf538a', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8033ecaaa7c1e3ba4966ef6fb995a437', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:59:27', '2015-03-30 00:59:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:59:27', '2015-03-30 00:59:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 00:59:27', '2015-03-30 00:59:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '30272704e06ef0c8d57d8e5fa4042634', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '07c1acb643e68b6ca43f64bad4df63b4', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd0ffc92e98a2a9e730b434a9b8dc5a2d', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e319b6fc8d45b44b27c7b47e00507f34', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5a1bedfa74e82cce36d7c8bcc41c2fde', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'aeb7bdb521287845a15b65fa2229a1bd', '2015-03-30 00:59:27', '2015-03-30 00:59:27', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 112], ["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 112], ["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 112], ["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 112], ["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 112], ["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 112], ["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 112 [["delta_id", 112], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 112]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 112]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 112]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 112]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 112]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 112]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 112]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 112]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00]] SQL (0.3ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 00:59:27 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 111]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 111]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 111]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 111]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 111]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 111]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 111]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 111]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (29.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 112], ["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (34.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 112], ["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (24.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 112], ["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (22.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 112 [["delta_id", 112], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (24.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1c0483bf22c85a793e1a3a84fcde3f5b', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '740043545d6bca48308ec6fdf9e636c3', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '42e979a63925c2e484f7e1a868e9cb99', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd62ad4fba4f240955e2fb6971b435321', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1d5ffed60198da15f4d41c937a0e4743', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ef2849f6575a1ec55952897290a9dcfc', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c8ff2bc33ed2c3c7ac98a5ce40745231', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '56b5055462dfaa7172dc49fd668682d4', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1e1781005084ef071c1c3a800424cee9', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a0fe226b1cc76a8b905710049a6ef60f', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9753b902e3862cb472bbe329e85b26e1', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0415a2f289ff082fb1cfe2f12ea72647', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4f47c7748032b65900b0ccfc7fa7939a', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '922ac85a06d83547d03c665d1763582b', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5cb7d12c2f9e41dacb638877c94cd542', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:02:46', '2015-03-30 01:02:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:02:46', '2015-03-30 01:02:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:02:46', '2015-03-30 01:02:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4bf79afe0cb8ede617bbe971964d879b', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7396b49e0bec12853046c1c3b00d33b4', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '52d8229908529bfd8601a7df67a8c58b', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '22618d86a83906dbaf5d8872e22c340d', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '984289fea561eba078afa120150cc82d', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e8aa2c9554a7fbeaa93c9468419bd4b3', '2015-03-30 01:02:46', '2015-03-30 01:02:46', 410780858)  (18.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.4ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 113], ["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 113], ["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 113], ["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 113], ["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 113], ["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 113], ["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 113 [["delta_id", 113], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 113]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 113]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 113]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 113]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 113]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 113]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 113]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 113]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:02:46 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 112]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 112]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 112]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 112]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 112]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 112]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 112]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 112]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (30.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 113], ["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (19.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 113], ["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (26.6ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 113], ["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (30.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 113 [["delta_id", 113], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (20.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1efa79bd6fe8b30e3575de2eb6d90f06', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c1d9d226238e18bdfcdd60380d55f98a', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9835c6b126ae1a6d48fc33a81cf44e67', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ae0da66fd637b6acc3ad36cd1f964606', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dffe9d051a6f7f9b32f7a9377b570e4a', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '021285a820307b4fbe2559703a101d9e', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f8878778429a43c1521560f142165596', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b04e9489875a18d6fda072c9bb9a9576', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e01521a3e0ea7ea5572ee4a0e8b79a7f', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '46e5c92b5b00dec6ee12296d6d14bee5', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '900d49cba8ec8028e430fbc4cbc64780', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0d8810e9be8c67c54596cba9e141511b', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.4ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3fc3f76bde971a94b93ca7390d7da206', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '21119aba7e895a39690be16d665144bd', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bab175adedf084223d5e220387c7abb0', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:07:13', '2015-03-30 01:07:13', 902541635) Fixture Insert (0.5ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:07:13', '2015-03-30 01:07:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:07:13', '2015-03-30 01:07:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6476b637b4a8ae6d0fd56e5cb9b5c54f', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '25021ae1cdd2117adc068984975b4b47', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3ea3ec73054dec45e239ae617430a990', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5f5563c9651bf1006dc5b57c99f72e32', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '16891d7fe838da3cbbaf974cab9a9945', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e9adce5e9da19784267ecc52e482b189', '2015-03-30 01:07:13', '2015-03-30 01:07:13', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 114], ["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 114], ["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 114], ["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 114], ["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 114], ["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 114], ["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 114 [["delta_id", 114], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 114]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 114]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 114]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 114]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 114]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 114]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 114]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 114]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["user_id", 1]] SQL (0.3ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:07:13 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 113]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 113]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 113]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 113]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 113]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 113]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 113]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 113]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:08:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:46 UTC +00:00]]  (18.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 114], ["created_at", Mon, 30 Mar 2015 01:08:46 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:46 UTC +00:00]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 114], ["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 114], ["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (19.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 114 [["delta_id", 114], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (26.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0eba8564f0a3cf0377eee0e80be9d17d', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5dc94cc1d6b504b0578f45688e7ccdd0', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c99cf28292c18b67bae1614b467b68ad', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '249ed7404fe365d030a88d1c56af24ce', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3c13baf9cd0e306a585a44578b8ebd81', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd177995538bd6b7811c6cb330e60a03d', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '93f6af1658370ddbd844a72b9bcd0e41', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e180af8fc3707b91f956305a94e366c5', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ac8495f9fb7acd87e751dea495065ef7', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd75652ff4d2a8a2b125c6dedc1931e0d', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0473f009b339802aa136a57be9dd3b5d', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'cbfc6d3c0b2dfc5542056ac8046a1f7a', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4a109be1cca7a80eb3c48e380a9a4277', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '55b969033cf217bdeef62fd71d15bb5e', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5f076bcc5cd005f9afd9e88ae90a4f42', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:08:47', '2015-03-30 01:08:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:08:47', '2015-03-30 01:08:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:08:47', '2015-03-30 01:08:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '10a1d6e20288df862c0a947eb7a4e0ec', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '86f4fdc06bd30be8f1894d1a0829d0a5', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eb7cb8e9747c204c59cc226e54d5d6f5', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd4fc7a0b518bf7ecc722ff3db09efc2e', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '34dca7e668a91fd068f0b2c7d5a68e7e', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '34d2fcc7c8f409e14cb500feb083a4e2', '2015-03-30 01:08:47', '2015-03-30 01:08:47', 410780858)  (29.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 115], ["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 115], ["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 115], ["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 115], ["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 115], ["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 115], ["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 115 [["delta_id", 115], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 115]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 115]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 115]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 115]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 115]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 115]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 115]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 115]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:08:47 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 114]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 114]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 114]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 114]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 114]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 114]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 114]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 114]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.5ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:09:20 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:20 UTC +00:00]]  (14.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 115], ["created_at", Mon, 30 Mar 2015 01:09:20 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:20 UTC +00:00]]  (18.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 115], ["created_at", Mon, 30 Mar 2015 01:09:20 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:20 UTC +00:00]]  (24.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 115], ["created_at", Mon, 30 Mar 2015 01:09:20 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:20 UTC +00:00]]  (23.3ms) commit transaction  (1.0ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 115 [["delta_id", 115], ["updated_at", Mon, 30 Mar 2015 01:09:20 UTC +00:00]]  (20.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2f113585fbec204e1571a3b2c0d60bc3', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1bb8b145d930a7385d0a157e71cffbec', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b239c6c493d8241e2c44236056d51251', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a2184b03ff7800e3276e178ccdb076d7', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '15f3ea28b036e114bfdc0dcee29487ef', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd1e1956c0a9a0b522e93c7fa34b21fc3', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '12ef8a1e984be890e289a3805903d7e5', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'dc11efa4fead81ca4c0a88c26c48f1b5', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fff121e6cea3b744427a880af039f810', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9c007a16409f3e9790d7376868c0c0dd', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ae7e91f5d1e765210949143841c3dbeb', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'cac9c35f79e1564caa18e08887115ef5', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3e7f6d0937e010e84dca82241166317d', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '78774029aca2fdc437c8d824c36a0e6a', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4d5f34acd2cf935fd7c591dc4b04d22d', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:09:21', '2015-03-30 01:09:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:09:21', '2015-03-30 01:09:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:09:21', '2015-03-30 01:09:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b51366e0e2eceee72c6e7f0b86197265', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '67715a98384ad423c28301564f1dfa18', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7391f43cfc0290a1188d4616af660ad1', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ce8f52c7f7f5c3962feb55b61fddd965', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '22b08768834ef91098af5786acbf0abb', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b0dac39ffc53adfeef7a892af65ff52c', '2015-03-30 01:09:21', '2015-03-30 01:09:21', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 116], ["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 116], ["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 116], ["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 116], ["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 116], ["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 116], ["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 116 [["delta_id", 116], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 116]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 116]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 116]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 116]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 116]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 116]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 116]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 116]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:09:21 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 115]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 115]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 115]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 115]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 115]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 115]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 115]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 115]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.8ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 116], ["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 116], ["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (23.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 116], ["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (26.2ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 116 [["delta_id", 116], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (25.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '17bf64456e42ea7d19f8787be6c63476', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '03d6af674d4329194519f58fc35d4bed', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '687ce2dce26622c51649ce7c453b7dd6', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '62737b7ed11e450715dce2fea08e8a74', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'af58a4057b34d712d1690b6d1663445c', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa17a00290fac8dffd3773e5c1e8647e', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4480966c5bbbbd1ce8444924ae3c1016', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '16f477ac13f44beb59523a011c93f185', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd841fa7ea5b8c8eff7c5a6feb6e81c0f', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'de96832e588688823aaa6e7a6d1410bb', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dcc9a2c13142ebb29b7e9b0c10eba903', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '801215178d38d0f06644de3d3333e867', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '214001c71d406f3ad73a1e75c7499455', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7c5adef58fcf1a4a5f712fe91f629750', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b62b9f87a93bee50534a191737342be6', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:10:05', '2015-03-30 01:10:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:10:05', '2015-03-30 01:10:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:10:05', '2015-03-30 01:10:05', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '24f93e0e1f8fb6f8933334ddaf4a7a55', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b308fbb38263a121df879b0861abb392', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '731156097c45d9d7a1c9f305463a7c02', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a652ced3593e5b7486850d4af1655e40', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4714018c4b460bb33f538b726fb60159', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fe690b2b2da6372e711b132e4fbe58d6', '2015-03-30 01:10:05', '2015-03-30 01:10:05', 410780858)  (24.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 117], ["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 117], ["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 117], ["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 117], ["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 117], ["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 117], ["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 117 [["delta_id", 117], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 117]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 117]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 117]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 117]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 117]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 117]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 117]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 117]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:10:05 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 116]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 116]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 116]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 116]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 116]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 116]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 116]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 116]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:11:30 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:30 UTC +00:00]]  (19.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 117], ["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (25.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 117], ["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (32.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 117], ["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 117 [["delta_id", 117], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a1b1ff0a8ed7dc6c55956082f52a2d4b', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '050d491fd48add00f3d3d7def795a69d', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b856506094cf236d90aa96d8852540ea', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7b1c7518c9004546e277869766a97356', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b5bed40054a128161b6f19d2d3dec075', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e1fbc2e95b420d7d00d2a4d1928dbff3', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ac95fd1859059a56eeda87ddc0847b99', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '58ce5017a75b52b629966508248289ad', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '71154d166a55884366f674f5dd793d71', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9d40bc121d1114fba27cde2c865df1ee', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f1fe537552d629f4d21552d62582d823', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9e1ea6704e61b1e3bbebc634bbccfae5', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8d7cf881051577c2bd9700e0f979018', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '26401a82d51b9c2fd567de71b4d13c10', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd0901cbfdbd6af4ef5e7d26271d805ba', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:11:31', '2015-03-30 01:11:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:11:31', '2015-03-30 01:11:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:11:31', '2015-03-30 01:11:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '705bf3597cf6a5f80d3c60a62a81904c', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6f5e5d9ddd616303c809e01d3695caff', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b8784eca7ce4c9974aa6ad7f508de7bd', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '28a6a00a9d39a2a11a2ec3922bd22981', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7d9349e10cc4b66e4c299b1977e3b080', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8f502c70d643d437db6c80a876179cc5', '2015-03-30 01:11:31', '2015-03-30 01:11:31', 410780858)  (12.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.6ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 118], ["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 118], ["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 118], ["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 118], ["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 118], ["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 118], ["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 118 [["delta_id", 118], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 118]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 118]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 118]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 118]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 118]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 118]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 118]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 118]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:11:31 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 117]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 117]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 117]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 117]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 117]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 117]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 117]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 117]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_adds with :add :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_adds with :<< :: DEPRECATED (reverting behavior in 0.2.0) ------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_can tell you what's included ------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_flags a duplicate -------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0007_says false for unflagged items --------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 118], ["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (26.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 118], ["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (26.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 118], ["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (16.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 118 [["delta_id", 118], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (30.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2e323798034e69cd58c526a6476e5938', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c10f9bca3f4983df4a2bcd21c0cc47cf', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ad3e3364367092df18049ca621d9c3ed', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '23036491d0eebc43a98a58549e9d97f3', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e52c2500b3b420d5cca12fe38e31d559', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e923430234e0de5b92b4cd27ab159e08', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '004be504bdac40df00f4af843de76cde', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9d2615ad8434e1eacc7216ee27bba30f', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4dbc7cbe863eeb4b20c0a287a456f0cc', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0d7f5ffbeac375b96b2cbc6d382acb28', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1d529069af89112e4e780371f8d51568', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b47c4f18cbd364df94cdf5970629dfd5', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f1d6912b3f4eba6baa25e801665a546d', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee6fe5363e16551256c22133c1619a2c', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8292434b50ba67473522ddeab16b68e6', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:21:51', '2015-03-30 01:21:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:21:51', '2015-03-30 01:21:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:21:51', '2015-03-30 01:21:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7af27df7089daacdfcb3c298579d664d', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e456636e6d8b5feeab659bf7f952b65c', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6bf1e268003b6f6d180fce6ac57d85ba', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '957a9af23ba984b3c04355241e0f0032', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '49befe547216c5137f4bc6dd0760b823', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1e2868923f2538be3f8b9ac97f8ff888', '2015-03-30 01:21:51', '2015-03-30 01:21:51', 410780858)  (17.8ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 119], ["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 119], ["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 119], ["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 119], ["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 119], ["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 119], ["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 119 [["delta_id", 119], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 119]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 119]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 119]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 119]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 119]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 119]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 119]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 119]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:21:51 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:21:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:52 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:21:52 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:21:52 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 118]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 118]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 118]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 118]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 118]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 118]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 118]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 118]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (15.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 119], ["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 119], ["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (11.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 119], ["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (25.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 119 [["delta_id", 119], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (24.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bef70f91eae56233ffec26dad472ddd3', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '011e4ab438d0053754814ed2510d3e0a', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '793a25efd64565a550f77e64701bf58c', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aa1095cbc49ba31fbd29a5d3c8a2bb16', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1feef05c73624135ad0b0d2c1bb5a193', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f0917dd89de1d5fbe2bb3883e77e547', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c2e32889aa90231d6346fdee32af84ef', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bda739a61c869d13f5ea25c1cc07d271', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b49c123642d24fdcd84faefb9808d0f8', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3ae8d982a12647294affb7cc3aacbb77', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3321d3a82e2770266538ac153fbbaf5b', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '25079a7d280f943b0f73c84790b8ec04', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2d0431f4a5e8290e15dd3013399e14e5', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '874b6b13ff03102f159d2eb0b058f140', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b825c33e6260020c45f47e49f1a9c0c6', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:22:35', '2015-03-30 01:22:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:22:35', '2015-03-30 01:22:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:22:35', '2015-03-30 01:22:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '18038472526cbf6c37e6326f12760eb7', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '32f7c89ffbbf6fa46040e3a80328d027', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9a6df047019fc964d3732f2a28043a25', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a2beff613ca01df5967fe3a09db523ce', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0773c0ae082cb369a241e5279aa6a04f', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '48777b62705e3d7814a3ed78cee7fc2a', '2015-03-30 01:22:35', '2015-03-30 01:22:35', 410780858)  (19.5ms) commit transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.5ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.5ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 120], ["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 120], ["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 120], ["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 120], ["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 120], ["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 120], ["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 120 [["delta_id", 120], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 120]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 120]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 120]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 120]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 120]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 120]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 120]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 120]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:22:35 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 119]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 119]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 119]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 119]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 119]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 119]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 119]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 119]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:23:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:39 UTC +00:00]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 120], ["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 120], ["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 120], ["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 120 [["delta_id", 120], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '177a5f3ac9c6a1ec258f12523531b13f', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cf4b9830ee87efd769247d606617e4d4', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd86396597ca6fdfc055dc3fb5f399821', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8d30cd4422ee8d54f8448db42fc3f43a', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bb532d17b7ba68dc755320e70606e40a', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'be46840a664558fe7cfdf381541a8e59', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '66fc459cb9d40406c8aac2a96e0d7af9', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9fc60236a961d9a6701f220f2b477993', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '89421328a8440ec34b8a22e7b639becf', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e848972dfdaaa6567c103dc81f93e8d7', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2c1a2b644cba0608d43059f231da3986', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '66cfa1b345c6fbebad7f2805bd3adb87', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6c6b4f800a9740e2af597d8772bde8f4', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '24088e7249afadc5566f2603aec39e8a', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d3af07c97993a851ee828f209a1657b', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:23:40', '2015-03-30 01:23:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:23:40', '2015-03-30 01:23:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:23:40', '2015-03-30 01:23:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '800a4cf9bc4ee63f8d51d934bba35ccc', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '068e0b6b7c1839be18739e10701698d7', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '95ae453de7934dd5e9ba0d29eac9168b', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ae9fd234af616a19cf2fbd54a708de24', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e77f7ea7e6f27a2f555bb7a84b9f4121', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '987048b1f32a6d884a52cc22ba5604bf', '2015-03-30 01:23:40', '2015-03-30 01:23:40', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 121], ["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 121], ["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 121], ["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 121], ["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 121], ["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 121], ["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 121 [["delta_id", 121], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 121]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 121]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 121]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 121]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 121]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 121]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 121]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 121]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:23:40 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 120]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 120]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 120]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 120]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 120]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 120]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 120]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 120]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (26.9ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 121], ["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (28.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 121], ["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (19.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 121], ["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 121 [["delta_id", 121], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '43827085d6322d1e286f1120ccd160ac', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2afa7c685a6b2f08bc06a4322a007b29', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '04ea728ef5b7d386c3bcffa3960f23f5', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '855a5a9101d73a85fb4471563f5531f0', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6791023e75be7776dff6245ecc9d1348', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '30782e6abcd4d50ef697877c5fb6da92', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3b83efb2684a1db580727c30af0707d3', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0ddfc05b385e19bd6f6abdb2b52fb336', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c43b4f0321c05c19109b79e46cc7e31b', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '265b293a87feddb6743339954e9fd1e3', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6fd3ef6355464f5d2021264db41b5743', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '64f86d48306217b277756dff5edb6b06', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '51a08d30480bd0aa9930ee2cdb98f78b', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '70f2218dfea4e3c8b32d94a5514d3bab', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ecefd7926bb1272077a937118cd97ce9', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:24:47', '2015-03-30 01:24:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:24:47', '2015-03-30 01:24:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:24:47', '2015-03-30 01:24:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '802775c18ecb5d43100e5be635863928', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a5ca6faa98747b2ae2697fd74bd9d7fc', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c6bcaac29fc3aea9c476994a3a3c91c6', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c43e27c66754209f70c1b4edf2d08921', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '596b3bc1aaf1a040a5d9a3419d409940', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '52cfc33d4de6be9b733663c682aa3ec0', '2015-03-30 01:24:47', '2015-03-30 01:24:47', 410780858)  (22.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 122], ["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 122], ["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 122], ["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 122], ["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 122], ["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 122], ["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 122 [["delta_id", 122], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 122]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 122]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 122]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 122]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 122]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 122]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 122]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 122]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:24:47 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 121]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 121]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 121]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 121]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 121]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 121]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 121]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 121]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (20.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 122], ["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 122], ["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 122], ["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (17.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 122 [["delta_id", 122], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (10.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '33dbbe437e4072cf2bd38ef74013c35b', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a86c6beafbc1741cc954ece5841c9633', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe0d0ec12533d9ea9c85e90bc45a596b', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3a4288a51e42d3e76c5e3eca678b04b1', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0e56b43a3a8ea09a1f3c03a815243f6c', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b0e5cfb148df4142a7a6804ddd363e9', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '64141ebec308155102705532b0e13eb1', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '585d02b4c7eb1775f8cc2f5511a8b497', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3fd0594c7a9f92f7fb09c6b929449a8d', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7acb65e6a21738858f4528017d83adba', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd03f5462883057a81bdf055f3700cba2', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '36fc41b74273aabe1890a62a7d23716b', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e09445392c095d119a4ca770cc2ffabe', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e8c853aa337666eb043fa191032ecab3', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '79c03c9990a8ac1a04ecbce70990bd90', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:25:49', '2015-03-30 01:25:49', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:25:49', '2015-03-30 01:25:49', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:25:49', '2015-03-30 01:25:49', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b002ec792cd0d74c0785063b30e52efd', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e8a0be829254a6cd43abd82fb14ad62f', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3ae4b491c25f2810039e80ad28272315', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '01b819c387cf604c544f51b9e5323d2a', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b51534b60812ce3fde7d324375f79dd5', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0d8be8d626a1572cf0df1eebd64bc439', '2015-03-30 01:25:49', '2015-03-30 01:25:49', 410780858)  (13.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 123], ["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 123], ["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 123], ["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 123], ["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 123], ["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 123], ["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 123 [["delta_id", 123], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 123]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 123]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 123]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 123]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 123]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 123]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 123]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 123]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:25:49 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 122]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 122]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 122]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 122]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 122]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 122]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 122]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 122]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:26:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:17 UTC +00:00]]  (21.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 123], ["created_at", Mon, 30 Mar 2015 01:26:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:17 UTC +00:00]]  (24.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 123], ["created_at", Mon, 30 Mar 2015 01:26:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:17 UTC +00:00]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 123], ["created_at", Mon, 30 Mar 2015 01:26:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:17 UTC +00:00]]  (21.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 123 [["delta_id", 123], ["updated_at", Mon, 30 Mar 2015 01:26:17 UTC +00:00]]  (19.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9889a1f7829f5b8b4f6ce9fe1a5df46b', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '72d9410c642cdb4fd2bc7262e15bb385', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '72325136fbbf86ae8eefc7c7510d5400', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9fe93762ccc2aaf65a74fd2b07101f45', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1b1fb26373c2b30d899be47de237697e', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e6649cbabb90ed76c30a95887a58f84d', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '92f61a6328dcc467a0696cc9d10aca1d', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a773a1a9ae0570a750f66398e736b54a', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fd55a5cc812302a024a12ec83f8dd58d', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a204a6ec63fbe136d61e05e3f2ec6d67', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'bf41915828044be22f3e76d348facff9', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'de959022a43ee282ce0790fdfb1ea75f', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1522c7c070517afb521b459cf1e16dbc', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a04a2796cd5a6c71b308f7ef8c2998aa', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1a3e2bf7df68da51a397e4de16afa531', '2015-03-30 01:26:17', '2015-03-30 01:26:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:26:18', '2015-03-30 01:26:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:26:18', '2015-03-30 01:26:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:26:18', '2015-03-30 01:26:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:26:18', '2015-03-30 01:26:18', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2461a3e6d6c8c1e793d1b9c4669060f9', '2015-03-30 01:26:18', '2015-03-30 01:26:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8893f468bcafacec093f0640dc36160b', '2015-03-30 01:26:18', '2015-03-30 01:26:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '147b50cdfd810d6f8ad820651985bfc3', '2015-03-30 01:26:18', '2015-03-30 01:26:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e89331133f1b55d52d140b85c133b8fd', '2015-03-30 01:26:18', '2015-03-30 01:26:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '01de5d1e6ebacf657d621b0b8689cbab', '2015-03-30 01:26:18', '2015-03-30 01:26:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5041bc686b969a85e0668eae149c5734', '2015-03-30 01:26:18', '2015-03-30 01:26:18', 410780858)  (30.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 124], ["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 124], ["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 124], ["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 124], ["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 124], ["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 124], ["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 124 [["delta_id", 124], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 124]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 124]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 124]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 124]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 124]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 124]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 124]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 124]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:18 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 123]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 123]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 123]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 123]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 123]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 123]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 123]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 123]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 124], ["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (22.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 124], ["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 124], ["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 124 [["delta_id", 124], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (19.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4bad78cd1ba94e0d87b5cf86d2d70c1e', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '54cae8e244cc352463ff5b5ec3fb5d66', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '88fc4277d9f696771339ed2221c87de2', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2deabfe3bbb49f2db3ba5d81f868151d', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ab4ca24d70fc0f2f0def3976c804dd58', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bbdacfc13e24114df2f90c6b2638b779', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '10753d18fdeeec46b4cc031c514df284', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5162eace5b8938a840c4dc11c19dcfe4', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '66451600a7f855753f2a73185b8ef6f9', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f9605d2487d75aa0c98ca12c019326de', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2ad5d299979538b68b1671950005c48f', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '02abdba1375626d36e3f6a7517f7fb2b', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '017f677c0248b448d72dfee72b459c64', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9b6f604578e194698af47bea0d910380', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '76a6e0a579bf0a64e34ae19671d8ac37', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:26:37', '2015-03-30 01:26:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:26:37', '2015-03-30 01:26:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:26:37', '2015-03-30 01:26:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6616fad44e92f6037f72ae2410fd07ed', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ba6fa6b567db03ceffa80ea1c6b7c9be', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f1e2fc51bed6cb2411df2a9d521a72af', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd449657153a98e3b9e34de75ce92b459', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '75648d3af7d8b8c30d0dc057c7e0dac0', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f08b1ae373661d7e25c372cbbd59604e', '2015-03-30 01:26:37', '2015-03-30 01:26:37', 410780858)  (26.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 125], ["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 125], ["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 125], ["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 125], ["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 125], ["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 125], ["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 125 [["delta_id", 125], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 125]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 125]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 125]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 125]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 125]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 125]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 125]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 125]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:26:37 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 124]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 124]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 124]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 124]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 124]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 124]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 124]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 124]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.7ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (15.5ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 125], ["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (25.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 125], ["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (25.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 125], ["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (12.4ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 125 [["delta_id", 125], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (13.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '354fd523cb36c6ab9c7618be7fa98f63', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0a506d53994e9b7b33b3b0c172c6914f', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3e37832ca7324ba94f0d725da9c2b510', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3e859264a61442bd473361d06e541a32', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5aadd0c04086a9fd47bb0317fd7bd745', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7c22002870afb9710c94e17856b0f896', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '49dfe788b5b72339575b8abae2068efd', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1d6ff385cd8063c9c57d3d7c79121275', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '129ce37000e73c5b80fedd7823d0e5db', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9aa82284e089385445b72ed07d11d028', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '11164617e6a45c74cf5a06ac595c743e', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '422f73bf4dd3273576b16e338e7cc6d5', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1db9c8cd0f44941b2b29558e77336c22', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1ab9f1775707bd94497750f62375cb0d', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '38d5e2e40cffa90da3c78504470d7ea1', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:31:28', '2015-03-30 01:31:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:31:28', '2015-03-30 01:31:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:31:28', '2015-03-30 01:31:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cd173afa8d5cdaa7c16ea6ff83da8ea6', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '29567511b1a9ee512b22135dc7f18de3', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '82b7d8126ebde6264c0d22b8754d013d', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '99aa4f3fd950beb2c6914963e51e479d', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e22a4b3e0df46c7c40eb9d7062196ee4', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7bb3ed7ff7e38461233e4478eb2fba0e', '2015-03-30 01:31:28', '2015-03-30 01:31:28', 410780858)  (17.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 126], ["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 126], ["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 126], ["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 126], ["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 126], ["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 126], ["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 126 [["delta_id", 126], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 126]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 126]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 126]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 126]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 126]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 126]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 126]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 126]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:31:28 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 125]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 125]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 125]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 125]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 125]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 125]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 125]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 125]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.3ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.3ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (15.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 126], ["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (31.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 126], ["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (21.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 126], ["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (21.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 126 [["delta_id", 126], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (28.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 106545386, 'Address', 633598004) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '28f8c7acfaf71480640be1ab42a34664', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'df91fa9c490a64de8035f0176650f468', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd891777d59c978aa776f387052be5726', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b48b62454c7386b51fe26c81bf2d7da', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb2f5f5ef851dfc112db3fad15475942', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '62a26798abbd2c54f7e6ce6c357851d5', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '65c301fb1d25d95eb36acd8fa5ead8f1', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ba4a62337eb7d9146425ff41faa3c638', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0e634c74faf399d782ace0de94e2a49d', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fdec234312d1788b724e9cd9cd59fdf9', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cc7c458cb0d4de2534c6507ffb75b8d7', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dd02eec8e233294101812f8b1f7ca5b4', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cd0997976094c24fe1bfe0f1882c4885', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c187fd6e3b66d921dc02a649be358a72', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '57a7d58758be5b671f8dc57f327068d4', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:32:39', '2015-03-30 01:32:39', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:32:39', '2015-03-30 01:32:39', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:32:39', '2015-03-30 01:32:39', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e1cdc0d935b4e59d65089e2cbd691e97', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b389a6ea7d632e91ae1b104a69107d45', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c53469b1c34614a69b81280590aba5c5', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b6de8273c672ed0dea3e45df1fb772fd', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3e9d206608f8b55fea22bbe3ac7d235d', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4ed91ad77a9a107934465e017809bdaf', '2015-03-30 01:32:39', '2015-03-30 01:32:39', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 127], ["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 127], ["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 127], ["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 127], ["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 127], ["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 127], ["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 127 [["delta_id", 127], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 127]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 127]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 127]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 127]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 127]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 127]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 127]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 127]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:32:39 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 126]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 126]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 126]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 126]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 126]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 126]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 126]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 126]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:33:11 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:11 UTC +00:00]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 127], ["created_at", Mon, 30 Mar 2015 01:33:11 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:11 UTC +00:00]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 127], ["created_at", Mon, 30 Mar 2015 01:33:11 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:11 UTC +00:00]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 127], ["created_at", Mon, 30 Mar 2015 01:33:11 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:11 UTC +00:00]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 127 [["delta_id", 127], ["updated_at", Mon, 30 Mar 2015 01:33:11 UTC +00:00]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd1d11fa0c23080639cca311b6ea58dbd', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e9c3c31236ea239f2ac5fa9ea16f2760', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ffba7f397fdd70189527b67ca59e10a1', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3dc531f451437533a42fe3275ec994fc', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b09502c07a39b7052ba112775ee3832c', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '95aea1ade18155cc2e9ab9f384a07074', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '58e2680b58c02cd4b30523a68b659e83', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '862b82319ca7bd29aa2c09d09a54f5ac', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1d096e8ab572fcc833c1c50cfd0e80b5', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9c64a03c82feaeccda11a97dca422148', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e8c0462d14437ca318c36a76aade1379', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b053c74a218eb4f14b8d41fa8ad78710', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '12c943037564cc123adea543e68dbc9c', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'abc598fc91ae420230b93fa66dc56a89', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7f2228df78c44363721556841c71b47f', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:33:11', '2015-03-30 01:33:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:33:11', '2015-03-30 01:33:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:33:11', '2015-03-30 01:33:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd9280c4dfd47df31f4e8122bfc4d02b4', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3281d8885903c5a00032319d329e9707', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fe31ade912c70dc2e82654c038a3eba7', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9fcb57df06a8a76680068f8e19b7c4ae', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9103f2e2ba968dcaf4940d6a702b48dc', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '08fee9b43e0a17c42c068c5e2dfa3e12', '2015-03-30 01:33:11', '2015-03-30 01:33:11', 410780858)  (18.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.6ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.5ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.6ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 128], ["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 128], ["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 128], ["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 128], ["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 128], ["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 128], ["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 128 [["delta_id", 128], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 128]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 128]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 128]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 128]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 128]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 128]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 128]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 128]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:12 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 127]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 127]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 127]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 127]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 127]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 127]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 127]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 127]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:33:33 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:33 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 128], ["created_at", Mon, 30 Mar 2015 01:33:33 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:33 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 128], ["created_at", Mon, 30 Mar 2015 01:33:33 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:33 UTC +00:00]]  (26.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 128], ["created_at", Mon, 30 Mar 2015 01:33:33 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:33 UTC +00:00]]  (15.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 128 [["delta_id", 128], ["updated_at", Mon, 30 Mar 2015 01:33:33 UTC +00:00]]  (17.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8aca3fa32a1bf9ea8e1e4c2773ff5e60', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ceb8290553f914d21ac1590d25915567', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1726e4413bdbbcb48521868dc49a8d06', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b9fc04b78e17f678e5db929ac842dcb2', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c258e93512a8c83f9448e470b10f22dc', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fc37403d5241524ae25f3d643a011ac9', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3ddca433b523ddf19125bec8a27eaa91', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f882f60a768fe8bc3bde5a6224161eac', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a790f2272694591c29e7794fa70173ab', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0a447bb2bf68fd61bddcab92ab09c1fc', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f91e51f19120ba764fd8eb6ffc8c4ef9', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dfca82e74db0d807d1ad27239c6b3640', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '83f6be1734397852141612fc234454eb', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a0d659f288fed118e484bda251716290', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9030a0aaf0323ff5c1ca59d907e15229', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:33:33', '2015-03-30 01:33:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:33:33', '2015-03-30 01:33:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:33:33', '2015-03-30 01:33:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e66da620c1f75c4ae45008b2c0237048', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '62c33796ee19ab1e7cbff3e5557b7e4a', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5f2c79f6bcea8a8dd398822f715419cd', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a9412a596589524df95c9834e304a516', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f84d02dc10a3a032feca7973e7189778', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd03b295d74d80c9e669c35f4e222ab20', '2015-03-30 01:33:33', '2015-03-30 01:33:33', 410780858)  (18.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.5ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 129], ["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 129], ["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 129], ["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 129], ["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 129], ["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 129], ["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 129 [["delta_id", 129], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 129]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 129]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 129]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 129]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 129]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 129]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 129]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 129]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:34 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 128]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 128]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 128]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 128]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 128]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 128]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 128]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 128]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:33:41 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:41 UTC +00:00]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 129], ["created_at", Mon, 30 Mar 2015 01:33:41 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:41 UTC +00:00]]  (17.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 129], ["created_at", Mon, 30 Mar 2015 01:33:41 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:41 UTC +00:00]]  (26.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 129], ["created_at", Mon, 30 Mar 2015 01:33:41 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:41 UTC +00:00]]  (19.2ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 129 [["delta_id", 129], ["updated_at", Mon, 30 Mar 2015 01:33:41 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a5e3577322529996e8871de9a152be95', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '445d1fcab870d722b12d79808636a6ce', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e05a2096d6a2c6770c41d0b7f2a20907', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '97b9d08cdaa1b732dd6432fcbb67d341', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ee910178a64b823454f68eebd0843e8d', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c5b57e082ed2140b1af2f89f42c6b924', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '108bff4bc935583d1edfd0b7e7a5aa20', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3c2ad883000c3ccf7d7284499fabceff', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '323abdda73212e281a924c963d739608', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4ba2adf8c6c95e49a94c7974e93eb264', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '32d89ca99bec0673e5b8b808d95a268f', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '76760d76071465c3c0a5c01f44104975', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4b1911a926a4b831035c2b6174cc6dfa', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '383e59729f9f4f23e4e2905052c15c24', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '929388049f848f6f462aced200fa3e8b', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:33:42', '2015-03-30 01:33:42', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:33:42', '2015-03-30 01:33:42', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:33:42', '2015-03-30 01:33:42', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '052a7f97bbf4239af0168a67eb53ad98', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '90912fb82d620f8d32830a345404e5c8', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b4c890670459153aa97b50d667e792b6', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ecabbc6ffff16f1ab26d7202d5202d7e', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1e6a930076f360b1e8f2388c12aa57ea', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eb61b245f0f4415e5868cfed05a2483c', '2015-03-30 01:33:42', '2015-03-30 01:33:42', 410780858)  (17.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 130], ["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 130], ["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 130], ["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 130], ["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 130], ["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 130], ["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 130 [["delta_id", 130], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 130]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 130]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 130]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 130]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 130]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 130]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 130]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 130]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:33:42 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 129]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 129]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 129]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 129]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 129]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 129]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 129]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 129]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (25.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 130], ["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (25.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 130], ["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (15.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 130], ["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (27.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 130 [["delta_id", 130], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (26.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dc4b4ba4594f93b846e4d8a04a602aab', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc8cf996fcaa161705b62f6845820dd7', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0d6ebee38284cdce14a2a69f4606b76', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8770578f74a7c897b1d8690033624dc7', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a1d3dbefba9039c3814e35edf1a08113', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b64cec1c94dc4be94aa2bc01c6784ee', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c7b942bd218a3c283b65503440f6214a', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0ccd5ccc10e0d80eaabc7ab49ad2c01a', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '21f7e06b9b729a5818bb861899bd14ab', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0f9390987c1142f63f4f294b3b162533', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2a00a8f173131f7b0af747675bc2bbc7', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4b488fc6fd9576bcdd476351fa97e8af', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '103e2abcdd02a301f5b971fc5fc359ba', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e16b266dbf5ce521c8830fff2c64bd85', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e08291cbfe004271e77178b4254d6a4f', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:34:10', '2015-03-30 01:34:10', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:34:10', '2015-03-30 01:34:10', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:34:10', '2015-03-30 01:34:10', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1f273b7c2596a0f3e6be4974b3045436', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6a7966435db05f6bd77e1dc8fffc7620', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3ea982524d5b02a18f6dccf658d8e96c', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7ffb989bcd404a1a6726864ace916df0', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ddf0c9326fdf4e4019129fac756615b3', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1b38dcce9afa67a1822b6c72f8d33844', '2015-03-30 01:34:10', '2015-03-30 01:34:10', 410780858)  (18.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.4ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.5ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.5ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.3ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.3ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 131], ["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 131], ["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 131], ["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 131], ["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 131], ["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 131], ["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 131 [["delta_id", 131], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 131]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 131]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 131]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 131]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 131]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 131]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 131]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 131]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:34:10 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 130]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 130]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 130]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 130]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 130]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 130]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 130]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 130]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.8ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (34.7ms) commit transaction  (0.4ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 131], ["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (26.0ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 131], ["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (17.6ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 131], ["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (17.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 131 [["delta_id", 131], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (12.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '16abae184e3dcd8a25fc5e12b778b3dc', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0d9115e592a05e8e0c561d575172533a', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7155e30307f4e55a65377d9486229847', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd75b8e871d35ea24fa13667f8e982edf', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 775134066) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eb3307f11a197ef147b0188a506ce1b6', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0adeca1a35ed0f067715cc8bef3517fe', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '69efb2211404f3aa98e58e7d1e59a30c', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '99b064933d1fd4cb1c182eb21c941a72', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '91642c2c54e2cc6a0c4cce718ded57bc', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '71ef673311ff048a65c8035fa18a512b', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f202c578a4de6b5ac13b656f48c39815', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '243ee6a3864b14f6cd524fd55ced9fbd', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fc04ab1b328c8ecc27207c41e69f3e47', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '134eee01e97244f99f8ae87f14f4cd42', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'be69da59256cf3be29ae03636d668c1a', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:36:17', '2015-03-30 01:36:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:36:17', '2015-03-30 01:36:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:36:17', '2015-03-30 01:36:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c65cf45ab39a7032ddd21bf5ef4d85b8', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b15d8924be17a72d0f40d834eb76be04', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '002abf11e1eabd9945cb479f226fdb11', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'afddd23c77e67b70710e5ee2148a640f', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e1a884b3b20d84a06466a760fef95529', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4541fafd7f4cca7265786bc5626e3ec6', '2015-03-30 01:36:17', '2015-03-30 01:36:17', 410780858)  (17.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 132], ["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 132], ["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 132], ["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 132], ["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 132], ["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 132], ["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 132 [["delta_id", 132], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 132]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 132]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 132]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 132]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 132]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 132]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 132]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 132]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:17 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 131]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 131]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 131]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 131]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 131]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 131]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 131]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 131]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (17.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 132], ["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 132], ["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 132], ["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (22.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 132 [["delta_id", 132], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (22.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a6f1485adb0315aeb8eb23693b8138e6', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '52753f2e38ac984121718cfe097d21c2', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a7975cdb23d2391289dd4565830acb43', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a32be70d93f64fd456499f6486064f5e', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '781f69f1809db934b05b6bd2626b3285', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '58074896969912b95deaa17156b8740f', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e5e41c677fab67161e7cbad82baf6cf4', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5da7ff91da8d8efca73cc5210f4c2a4f', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '83abbaec3d6068bb6ff5e76dd8f26e16', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9c105a23849f4ca7f28e01ff90c03a98', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ae54aa845de2de2f0ad807b995d37209', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4312ab9a04337eee76b28fc6189ffebf', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '158253971d958d4ce2d716f429535ab2', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '41bc3df1464e6949c55140009df0740b', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '29f890eb3114a77885ca27bf43cd424a', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:36:26', '2015-03-30 01:36:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:36:26', '2015-03-30 01:36:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:36:26', '2015-03-30 01:36:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '254781fcd20e5207e85bfc450aed67bc', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0c2899d75927a279af2e5ef4c34359ef', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6040a7804c37c2f92bde83338703c1d7', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '67a7cfda7a512ff90493e8295fb7fbe2', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd6c2f46f97c2485b4e92864ed0dd7f9e', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4bad63f44c03aa8c171263b75fc1abca', '2015-03-30 01:36:26', '2015-03-30 01:36:26', 410780858)  (12.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.5ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.5ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 133], ["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 133], ["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 133], ["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 133], ["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 133], ["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 133], ["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 133 [["delta_id", 133], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 133]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 133]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 133]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 133]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 133]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 133]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 133]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 133]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:36:26 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 132]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 132]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 132]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 132]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 132]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 132]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 132]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 132]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction SQL (3.7ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 133], ["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 133], ["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 133], ["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (22.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 133 [["delta_id", 133], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (23.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5dc724ac92e6b37c3588d5980493bf95', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '15d4b4d910bbaeef8973d91ef4bdd239', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6a72e6c4bb9fc3569674edce90c314e9', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a85331d90226e64c0cebdcb4dc41d338', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dd0dcd4fa14c0ae31ceeba5e2b878ff8', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '30f7a97595e49eebda34430f5388d027', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2472605a66326aef553e20d0164e19a6', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ec0a9db4ba55c09c84fb4e831704a172', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a75b328cc9b11091d8b3afd33b8ace0e', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 712317748, 336964236, 849808553) Fixture Delete (0.2ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4efd243d37ae7a4f5bf948dd0dd57aa1', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd4be6d17bfed58a26ae94c376ccfaf9c', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '63603d5977b15d7bab15b2d246dd8fa2', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a856257dd0120ef4d73f4706eaaa62d8', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b7aa0f89ad6886726f955a841a8b484d', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '72c5378202d3b70bf8e39da2f01d481c', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:37:43', '2015-03-30 01:37:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:37:43', '2015-03-30 01:37:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:37:43', '2015-03-30 01:37:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c6678be902dfd9a3a7fe3c71269c77c0', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '480b3fc01255addd3db15fc6ddf88f2c', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '50ad668e8b8379a485437e17758f5704', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd0aab560c8bdee8d12cb676fa2b8edd0', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'de2b50a94aa30d9a83b9516a30a8439a', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1ae4921dfbd82aa9ee9200d55c3d3ea7', '2015-03-30 01:37:43', '2015-03-30 01:37:43', 410780858)  (34.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 134], ["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 134], ["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 134], ["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 134], ["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 134], ["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 134], ["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 134 [["delta_id", 134], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 134]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 134]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 134]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 134]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 134]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 134]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 134]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 134]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:37:43 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 133]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 133]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 133]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 133]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 133]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 133]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 133]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 133]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.6ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:45:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:42 UTC +00:00]]  (17.7ms) commit transaction  (0.4ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 134], ["created_at", Mon, 30 Mar 2015 01:45:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:42 UTC +00:00]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 134], ["created_at", Mon, 30 Mar 2015 01:45:42 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:42 UTC +00:00]]  (27.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 134], ["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (19.5ms) commit transaction  (0.0ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 134 [["delta_id", 134], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (20.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e405985b3d4d4a92a57fcb6beab233dd', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e6f53b797b7ed9a1a7c603c29429ee86', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c5fe381289623991e0370a04abc40504', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5eaf3f0332ec1c7a3ee2c436089efc4d', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b4df983e73cd04c4e94f3830e509a474', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd32a0b7bc1b9d3f692179685445af324', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '458853ffddefd856c8209f457194cefc', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7f364571962cddd4b7a81c4c3d99ccfc', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2a5b4eb96908536e1ca7c7b6a50b506f', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c581ad8fcee3f1598b785f4582542665', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a847e01a468ef548c1024ee5c3bb307f', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e797883507a182df627c34aaf2e9da46', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8e8b0f07cf611440e74df3b6f8b39794', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '361d0b9331b9f7abae7608f87a888b65', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3a3213e5a8a1a6ab611fb056ea34eec3', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:45:43', '2015-03-30 01:45:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:45:43', '2015-03-30 01:45:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:45:43', '2015-03-30 01:45:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0cd225177d5d5f0995090a2fcefb7eab', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6796b9b5e3552bb91de5a075d53d6b33', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '95af8af28e5390916d7ed1dedd0ee322', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '341bff81f471fbb15a37a582871a9d3f', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1db407f985ad52d1dfb7594cafe08a7d', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '01f2a2b754b8850f155905bc0f1120ea', '2015-03-30 01:45:43', '2015-03-30 01:45:43', 410780858)  (13.7ms) commit transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 135], ["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 135], ["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 135], ["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 135], ["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 135], ["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 135], ["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 135 [["delta_id", 135], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 135]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 135]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 135]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 135]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 135]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 135]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 135]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 135]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:45:43 UTC +00:00], ["user_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 134]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 134]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 134]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 134]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 134]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 134]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 134]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 134]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction SQL (2.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 135], ["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (17.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 135], ["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (19.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 135], ["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (18.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 135 [["delta_id", 135], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (30.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b7e77f5b2110349cf083785391339e6', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '895e351ea809dda8e0e81fa11b53c36e', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '87d5c62ed3513784f913cd6829a57806', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b784b4c92423f729896c70cd859538d', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '63b632f9ec459dd57d943ef79d92ab0c', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '127a8e6e6f9c490db65a2d68f1243809', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '02df81148507fcb6e108c01857eb2eb5', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5c8d0433befd61d1b7524707e0c89059', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '52af6cd461b90a13627686f512376c3b', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5c6c02a723dd0cc49c46de280913c867', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cf44fbcd66efacbc495b7681efed30e5', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e4513a6066e3e3c2c1a74a8c86f0f558', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '88d21eb820caa71f578c1713183d26f3', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7cca1ecf850f96247201c28b84d1924f', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5d6982cb8c7c19d6200db847bb624d40', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:46:35', '2015-03-30 01:46:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:46:35', '2015-03-30 01:46:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:46:35', '2015-03-30 01:46:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '241a50d05cc8d0d4e20538fb160645d4', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2371021309b826ebf7fc046e1df05ed5', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '05a1be819322257a1113967fbea213c9', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '25c2d0db3982d1fbcf6499034b08e9f3', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '042d4c3467933bd3981f8c7f4a2947d5', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0916a950721c2b1062755ed552492b68', '2015-03-30 01:46:35', '2015-03-30 01:46:35', 410780858)  (14.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.6ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]] SQL (0.3ms) INSERT INTO "phones" ("created_at", "phoneable_id", "phoneable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["phoneable_id", 966629573], ["phoneable_type", "Profile"], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["profileable_id", 902541635], ["profileable_type", "User"], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 136], ["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 136], ["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 136], ["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 136], ["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 136], ["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 136], ["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = 136 [["delta_id", 136], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["id", 1], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["user_id", 1]] SQL (0.2ms) INSERT INTO "tires" ("car_id", "created_at", "updated_at", "user_id") VALUES (?, ?, ?, ?) [["car_id", 421646739], ["created_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["updated_at", Mon, 30 Mar 2015 01:46:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 135]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 135]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 135]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 135]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 135]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 135]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 135]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 135]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction SQL (3.5ms) 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]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["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]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) 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]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["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]]  (23.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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]]  (18.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) 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', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:52:25', '2015-03-30 01:52:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:52:25', '2015-03-30 01:52:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-03-30 01:52:25', '2015-03-30 01:52:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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)  (14.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["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]] SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("created_at", "profileable_id", "profileable_type", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 137]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 137]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 137]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]] SQL (0.2ms) INSERT INTO "cars" ("created_at", "updated_at", "user_id") 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], ["user_id", 1]] SQL (0.2ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 136]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 136]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 136]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 136]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 136]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 136]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 136]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 136]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction Connecting to database specified by database.yml Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (2.7ms) 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]]  (33.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (21.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) 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]]  (32.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (33.2ms) commit transaction Connecting to database specified by database.yml  (0.0ms) begin transaction SQL (2.6ms) 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]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (12.0ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) 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]]  (11.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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]]  (12.4ms) commit transaction  (0.2ms) begin transaction  (0.5ms) UPDATE "alphas" SET "delta_id" = 138, "updated_at" = '2015-03-30 04:31:47.971236' WHERE "alphas"."id" = 138  (14.9ms) commit transaction Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 18:40:30.966503"], ["updated_at", "2015-04-01 18:40:30.966503"]]  (18.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) 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"]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 139], ["created_at", "2015-04-01 18:40:31.047140"], ["updated_at", "2015-04-01 18:40:31.047140"]]  (27.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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"]]  (21.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 139], ["updated_at", "2015-04-01 18:40:31.133716"], ["id", 139]]  (19.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) 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', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.0ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 18:40:31', '2015-04-01 18:40:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 18:40:31', '2015-04-01 18:40:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 18:40:31', '2015-04-01 18:40:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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)  (18.5ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 18:40:31.336552"], ["updated_at", "2015-04-01 18:40:31.336552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-04-01 18:40:31.369017"], ["updated_at", "2015-04-01 18:40:31.369017"]] SQL (0.1ms) 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"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-04-01 18:40:31.371411"], ["updated_at", "2015-04-01 18:40:31.371411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 18:40:31.394246"], ["updated_at", "2015-04-01 18:40:31.394246"]] SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 18:40:31.408320"], ["updated_at", "2015-04-01 18:40:31.408320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 140], ["created_at", "2015-04-01 18:40:31.412747"], ["updated_at", "2015-04-01 18:40:31.412747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 140], ["created_at", "2015-04-01 18:40:31.423373"], ["updated_at", "2015-04-01 18:40:31.423373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 140], ["created_at", "2015-04-01 18:40:31.427125"], ["updated_at", "2015-04-01 18:40:31.427125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 140], ["updated_at", "2015-04-01 18:40:31.428459"], ["id", 140]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 139]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 139]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 139]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 139]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 139]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 139]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 139]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 139]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:43:55.449524"], ["updated_at", "2015-04-01 19:43:55.449524"]]  (14.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) 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"]]  (11.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 140], ["created_at", "2015-04-01 19:43:55.525666"], ["updated_at", "2015-04-01 19:43:55.525666"]]  (17.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) 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"]]  (23.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 140], ["updated_at", "2015-04-01 19:43:55.594809"], ["id", 140]]  (37.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) 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', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) 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', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:43:55', '2015-04-01 19:43:55', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:43:55', '2015-04-01 19:43:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:43:55', '2015-04-01 19:43:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT 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) Fixture Insert (0.1ms) 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) Fixture Insert (0.1ms) INSERT 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)  (23.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-04-01 19:43:55.872191"], ["updated_at", "2015-04-01 19:43:55.872191"]] SQL (0.1ms) 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"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-04-01 19:43:55.874470"], ["updated_at", "2015-04-01 19:43:55.874470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:43:55.904969"], ["updated_at", "2015-04-01 19:43:55.904969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 141], ["created_at", "2015-04-01 19:43:55.909000"], ["updated_at", "2015-04-01 19:43:55.909000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 141], ["updated_at", "2015-04-01 19:43:55.912283"], ["id", 141]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:43:55.926771"], ["updated_at", "2015-04-01 19:43:55.926771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 141], ["created_at", "2015-04-01 19:43:55.943574"], ["updated_at", "2015-04-01 19:43:55.943574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 141], ["created_at", "2015-04-01 19:43:55.947276"], ["updated_at", "2015-04-01 19:43:55.947276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-04-01 19:43:55.962892"], ["updated_at", "2015-04-01 19:43:55.962892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 140]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 140]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 140]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 140]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 140]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 140]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 140]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 140]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:54:26.328070"], ["updated_at", "2015-04-01 19:54:26.328070"]]  (16.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 141], ["created_at", "2015-04-01 19:54:26.379613"], ["updated_at", "2015-04-01 19:54:26.379613"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 141], ["created_at", "2015-04-01 19:54:26.404730"], ["updated_at", "2015-04-01 19:54:26.404730"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 141], ["created_at", "2015-04-01 19:54:26.430224"], ["updated_at", "2015-04-01 19:54:26.430224"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 141], ["updated_at", "2015-04-01 19:54:26.456858"], ["id", 141]]  (19.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c5e9f696c8c70cf63dcef4c6e8b18620', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c2f078d771c1166fd66a9fe5bd2ca4b5', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4dcf8b7d6b2accabec205af7e6db3daf', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f7ece9e6d3df8176d1b779d0f296f120', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a65c143b21e6f1d853f13d07d944a94b', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7b49930913b925e068c3c71d46bc59e0', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0e605d93497ed0eb1438b4d9ca3a8783', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '395031082fdc40f06f90016dccaad7d4', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b77772419978c91ba11394f1e76425a4', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2f0b765d77307a55818ea86085fc924a', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '809c9f499ea2d5ab4abb2452b5ab2ae5', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c5d2b7edccb7cc692fa9d44b534d85fe', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f405498a705a0656b327739238dd2839', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9a1b5b8654e4b5aa34d4d3236c38a682', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '174c2453f2363ae4aa5cb84c1b9ae1ff', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:54:26', '2015-04-01 19:54:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:54:26', '2015-04-01 19:54:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:54:26', '2015-04-01 19:54:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'af1b5630d4d1823ebbfb66e36895c915', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ef6c1095e205c389c033f0dabc1fdc23', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a4ae198f8dd6d7852bbceedbe0109336', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '33359eeed31c602904f451cb41472d3a', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0a004d8530b8f24fc8a9998922c9e9fa', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e0da7319b8fb5fb6f830ead93f7a345c', '2015-04-01 19:54:26', '2015-04-01 19:54:26', 410780858)  (31.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns FakedCollection when handed garbage. --------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 141]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 141]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 141]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 141]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 141]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 141]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 141]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 141]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:54:26.794037"], ["updated_at", "2015-04-01 19:54:26.794037"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 142], ["created_at", "2015-04-01 19:54:26.795975"], ["updated_at", "2015-04-01 19:54:26.795975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 142], ["created_at", "2015-04-01 19:54:26.797849"], ["updated_at", "2015-04-01 19:54:26.797849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 142], ["created_at", "2015-04-01 19:54:26.799656"], ["updated_at", "2015-04-01 19:54:26.799656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-04-01 19:54:26.815582"], ["updated_at", "2015-04-01 19:54:26.815582"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-04-01 19:54:26.817094"], ["updated_at", "2015-04-01 19:54:26.817094"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-04-01 19:54:26.818211"], ["updated_at", "2015-04-01 19:54:26.818211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 19:54:26.844678"], ["updated_at", "2015-04-01 19:54:26.844678"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-04-01 19:54:26.845781"], ["updated_at", "2015-04-01 19:54:26.845781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:54:26.848728"], ["updated_at", "2015-04-01 19:54:26.848728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 19:54:26.852704"], ["updated_at", "2015-04-01 19:54:26.852704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:54:26.854957"], ["updated_at", "2015-04-01 19:54:26.854957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 142], ["created_at", "2015-04-01 19:54:26.856737"], ["updated_at", "2015-04-01 19:54:26.856737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 142], ["created_at", "2015-04-01 19:54:26.858565"], ["updated_at", "2015-04-01 19:54:26.858565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 142], ["created_at", "2015-04-01 19:54:26.860345"], ["updated_at", "2015-04-01 19:54:26.860345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 142], ["updated_at", "2015-04-01 19:54:26.861601"], ["id", 142]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 142]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 142]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 142]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 142]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 142]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 142]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 142]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 142]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:55:42.365363"], ["updated_at", "2015-04-01 19:55:42.365363"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 142], ["created_at", "2015-04-01 19:55:42.416615"], ["updated_at", "2015-04-01 19:55:42.416615"]]  (12.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 142], ["created_at", "2015-04-01 19:55:42.445687"], ["updated_at", "2015-04-01 19:55:42.445687"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 142], ["created_at", "2015-04-01 19:55:42.472690"], ["updated_at", "2015-04-01 19:55:42.472690"]]  (12.9ms) commit transaction  (11.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 142], ["updated_at", "2015-04-01 19:55:42.499258"], ["id", 142]]  (17.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b64cf2ad9a06f958764839197de40b80', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '044c92c7db98c213a9f62b96b413a6e8', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '75b2105d0e3140676feac845c33f2f29', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '91d413c23f0a7e23f7ff4c60bfeefbba', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f769f2d6a1429ef898a31a62c05b4329', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2976cb46e32a5457aa34df819b115dcd', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '73819e60bf5b3349c135759bbe4af8ca', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '389c6a3e25d19d455493b020f53dbd94', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ccaca67a221000ce7e0bf3cab8e6dbf6', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ad09f969434ab0614e2ed54babb1b692', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7aa833c63fc66f07f6e20cde9d770739', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bb02db806e6e89db19f51f8a066ebc25', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cbed4422e351b9a0066c96c5d69bc5fa', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6c0f0b116c36fe1e36327b8849d11565', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '78ea0c6489a340595f266430aaf82ef9', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:55:42', '2015-04-01 19:55:42', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:55:42', '2015-04-01 19:55:42', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:55:42', '2015-04-01 19:55:42', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6732ea82125823621b98672d8cd34bf6', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e111ec39be4a42f79780b0d5ce98eb96', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '98ee6b714f64dce37e7997eab0603388', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '546e852e26ba68a4f39bf2f2a4a8d768', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '28c15bc8e6e2bdc0bf3d684231e6c6bc', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2e2dfe4eca1c05b395aee275782c3a57', '2015-04-01 19:55:42', '2015-04-01 19:55:42', 410780858)  (23.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:55:42.628243"], ["updated_at", "2015-04-01 19:55:42.628243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 143], ["created_at", "2015-04-01 19:55:42.630299"], ["updated_at", "2015-04-01 19:55:42.630299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 143], ["created_at", "2015-04-01 19:55:42.632204"], ["updated_at", "2015-04-01 19:55:42.632204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 143], ["created_at", "2015-04-01 19:55:42.634073"], ["updated_at", "2015-04-01 19:55:42.634073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:55:42.643927"], ["updated_at", "2015-04-01 19:55:42.643927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 143], ["created_at", "2015-04-01 19:55:42.645762"], ["updated_at", "2015-04-01 19:55:42.645762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 143], ["created_at", "2015-04-01 19:55:42.647557"], ["updated_at", "2015-04-01 19:55:42.647557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 143], ["created_at", "2015-04-01 19:55:42.649204"], ["updated_at", "2015-04-01 19:55:42.649204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 143], ["updated_at", "2015-04-01 19:55:42.650527"], ["id", 143]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 143]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 143]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 143]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 143]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 143]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 143]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 143]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 143]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-04-01 19:55:42.681524"], ["updated_at", "2015-04-01 19:55:42.681524"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-04-01 19:55:42.682861"], ["updated_at", "2015-04-01 19:55:42.682861"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-04-01 19:55:42.683832"], ["updated_at", "2015-04-01 19:55:42.683832"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 19:55:42.708041"], ["updated_at", "2015-04-01 19:55:42.708041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:55:42.723544"], ["updated_at", "2015-04-01 19:55:42.723544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 19:55:42.741592"], ["updated_at", "2015-04-01 19:55:42.741592"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-04-01 19:55:42.742701"], ["updated_at", "2015-04-01 19:55:42.742701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 142]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 142]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 142]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 142]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 142]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 142]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 142]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 142]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:56:14.885430"], ["updated_at", "2015-04-01 19:56:14.885430"]]  (18.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 143], ["created_at", "2015-04-01 19:56:14.942762"], ["updated_at", "2015-04-01 19:56:14.942762"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 143], ["created_at", "2015-04-01 19:56:14.966558"], ["updated_at", "2015-04-01 19:56:14.966558"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 143], ["created_at", "2015-04-01 19:56:14.991790"], ["updated_at", "2015-04-01 19:56:14.991790"]]  (12.5ms) commit transaction  (16.4ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 143], ["updated_at", "2015-04-01 19:56:15.023032"], ["id", 143]]  (17.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '49e6d3efb977880cb806382476281061', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c0c67bde658eab20ec0f4a548cf3da92', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '62f1e48e46db7202465173230eb818f5', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b323d4af0394c809fa7d41608ee20f9d', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b4eb3fb4090dac00adc4a5413be8f58a', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7af9a01e61f3e99deea7ec48cd4919ed', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a918578cb772d870850907e5945904b3', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd468709fa14fe86849ec1bbd4c7d19a1', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ce9e693acba3295f020b79a1146f5d93', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5e403ffa8bda681439a02e5a19d7fc64', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dac2172e810e95665d213635a045c87b', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1a4c165632177e53e2f81fd3a805472d', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f5ad046469f794c15252b3016a72f0d5', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '726de187c549717b66510dc97ee635e0', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0e69c526c90bb6e62f2a8b7a406e9b8', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:56:15', '2015-04-01 19:56:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:56:15', '2015-04-01 19:56:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:56:15', '2015-04-01 19:56:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '012b69e41db0b0216fbb23187fab4647', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9c2edac4e4f4ba98a91372512cace21d', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '95938168a20c7e728f6c1ce2f33dc135', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '43685852cf1d6f925949d9d6e3e55466', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a2dff83988aa2f88d8010ede957f9728', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '733f40004861a20db7aab96cc53da2bd', '2015-04-01 19:56:15', '2015-04-01 19:56:15', 410780858)  (30.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:56:15.309932"], ["updated_at", "2015-04-01 19:56:15.309932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 19:56:15.320931"], ["updated_at", "2015-04-01 19:56:15.320931"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-04-01 19:56:15.322087"], ["updated_at", "2015-04-01 19:56:15.322087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:56:15.324997"], ["updated_at", "2015-04-01 19:56:15.324997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 144], ["created_at", "2015-04-01 19:56:15.326932"], ["updated_at", "2015-04-01 19:56:15.326932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 144], ["created_at", "2015-04-01 19:56:15.328835"], ["updated_at", "2015-04-01 19:56:15.328835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 144], ["created_at", "2015-04-01 19:56:15.330722"], ["updated_at", "2015-04-01 19:56:15.330722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:56:15.336180"], ["updated_at", "2015-04-01 19:56:15.336180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 144], ["created_at", "2015-04-01 19:56:15.337992"], ["updated_at", "2015-04-01 19:56:15.337992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 144], ["created_at", "2015-04-01 19:56:15.339898"], ["updated_at", "2015-04-01 19:56:15.339898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 144], ["created_at", "2015-04-01 19:56:15.341689"], ["updated_at", "2015-04-01 19:56:15.341689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 144], ["updated_at", "2015-04-01 19:56:15.343066"], ["id", 144]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 144]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 144]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 144]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 144]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 144]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 144]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 144]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 144]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-04-01 19:56:15.375812"], ["updated_at", "2015-04-01 19:56:15.375812"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-04-01 19:56:15.377042"], ["updated_at", "2015-04-01 19:56:15.377042"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-04-01 19:56:15.378020"], ["updated_at", "2015-04-01 19:56:15.378020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 19:56:15.398388"], ["updated_at", "2015-04-01 19:56:15.398388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 143]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 143]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 143]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 143]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 143]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 143]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 143]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 143]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:57:20.137208"], ["updated_at", "2015-04-01 19:57:20.137208"]]  (20.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 144], ["created_at", "2015-04-01 19:57:20.191430"], ["updated_at", "2015-04-01 19:57:20.191430"]]  (17.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 144], ["created_at", "2015-04-01 19:57:20.222932"], ["updated_at", "2015-04-01 19:57:20.222932"]]  (35.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 144], ["created_at", "2015-04-01 19:57:20.280514"], ["updated_at", "2015-04-01 19:57:20.280514"]]  (29.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 144], ["updated_at", "2015-04-01 19:57:20.312513"], ["id", 144]]  (22.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5044a7292a8396db0480aec1a53da7c9', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4e6b4100766758ccef1bb49dfb203629', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4249516381a0851ec7d90cdc6df82863', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4861ba7045509d497b3964fb8a8cfcad', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6d5a20dae422dfb456449adf806cb4a2', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eda7f59d46fd52d6c073041aa2a54710', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b280c0c6010ede4993b54d75e86614c7', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '18fdd59144836fd4b8b785c4d0df8911', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1b12cdeb450179cd9b84de68bc14b845', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '10b58950a7e41d4966e68848864b36cb', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fc5d0ad0660364fa6280830177073821', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '975d6f22e37b9fa163ac31db86adc36e', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dd3c05b8a567946aac84c20a5a9b0192', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '00e981345e1af2e84d27d8009cf6ef3f', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '917d139b3ad69e6b9dc99a79cfedec51', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:57:20', '2015-04-01 19:57:20', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:57:20', '2015-04-01 19:57:20', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-01 19:57:20', '2015-04-01 19:57:20', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '947425a636fc2cb87a7558c56ab3ccaf', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0fffcf0208c7cc689513e8456c6c6b39', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6b408f8e36ad4ad4940dc3e907d49b7a', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5f3238459dd5baf0e13c24d22d541bb4', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '894e79f944558bafdc4d793ec0e8e3da', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b0192bf530d58a3fe861f3538351abcd', '2015-04-01 19:57:20', '2015-04-01 19:57:20', 410780858)  (19.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-04-01 19:57:20.551131"], ["updated_at", "2015-04-01 19:57:20.551131"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-04-01 19:57:20.552418"], ["updated_at", "2015-04-01 19:57:20.552418"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-04-01 19:57:20.553391"], ["updated_at", "2015-04-01 19:57:20.553391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:57:20.576246"], ["updated_at", "2015-04-01 19:57:20.576246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:57:20.584245"], ["updated_at", "2015-04-01 19:57:20.584245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 145], ["created_at", "2015-04-01 19:57:20.586161"], ["updated_at", "2015-04-01 19:57:20.586161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 145], ["created_at", "2015-04-01 19:57:20.588044"], ["updated_at", "2015-04-01 19:57:20.588044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 145], ["created_at", "2015-04-01 19:57:20.589829"], ["updated_at", "2015-04-01 19:57:20.589829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 145], ["updated_at", "2015-04-01 19:57:20.591181"], ["id", 145]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 145]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 145]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 145]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 145]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 145]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 145]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 145]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 145]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 19:57:20.614417"], ["updated_at", "2015-04-01 19:57:20.614417"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-04-01 19:57:20.615561"], ["updated_at", "2015-04-01 19:57:20.615561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-01 19:57:20.630578"], ["updated_at", "2015-04-01 19:57:20.630578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-01 19:57:20.639923"], ["updated_at", "2015-04-01 19:57:20.639923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 145], ["created_at", "2015-04-01 19:57:20.641853"], ["updated_at", "2015-04-01 19:57:20.641853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 145], ["created_at", "2015-04-01 19:57:20.643792"], ["updated_at", "2015-04-01 19:57:20.643792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 145], ["created_at", "2015-04-01 19:57:20.645579"], ["updated_at", "2015-04-01 19:57:20.645579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 144]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 144]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 144]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 144]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 144]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 144]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 144]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 144]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-29 05:07:40.113127"], ["updated_at", "2015-04-29 05:07:40.113127"]]  (53.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 145], ["created_at", "2015-04-29 05:07:40.192589"], ["updated_at", "2015-04-29 05:07:40.192589"]]  (30.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 145], ["created_at", "2015-04-29 05:07:40.231958"], ["updated_at", "2015-04-29 05:07:40.231958"]]  (25.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 145], ["created_at", "2015-04-29 05:07:40.270337"], ["updated_at", "2015-04-29 05:07:40.270337"]]  (26.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 145], ["updated_at", "2015-04-29 05:07:40.299445"], ["id", 145]]  (24.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55d5ea1c7853c96e595c34a468c71cb5', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0e0a2084aed7e6c5b1cc1b18dfbcf2f3', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7490750af7acf630b567cf68d164a333', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb46d04c021153835ee0cc7a7401defb', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d083842440ef847405658a62e0ea5d0', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e62d96a6936dcbbd2b1385f4435eb002', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7fcc5f12e6c1097d2339d241614fca14', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6691afb5c8fe5df7811ce4c87b58c7e1', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'eb793a8b9921f8ea322bce69b2aa8352', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd0c28f39d5a492ea101b2d5ca451d11b', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '58c19506f89692aea9dcfbac9a540f86', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd4ed50a8a18ada5c1a6e3cacab2083b8', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '80f039a053910db75eea3aa50a8f2938', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '861bf0e039cd894f4ca8762ebba1d227', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5683db9f1982a3b33c0ec5e374c4f0e3', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-29 05:07:40', '2015-04-29 05:07:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-29 05:07:40', '2015-04-29 05:07:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-29 05:07:40', '2015-04-29 05:07:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '97285f56c6a14063c403bbc1f73e867f', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '231fba928901d334f7d1900d82315943', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f39b499f009574f4a45130a012f8aa8f', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5e1e80bc6c0422e0537c30805b14c03d', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b9143f93ea895bd64907252f8c557b6a', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '827b25a829d5a771b0f56fbe656f8fa8', '2015-04-29 05:07:40', '2015-04-29 05:07:40', 410780858)  (14.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-29 05:07:40.495786"], ["updated_at", "2015-04-29 05:07:40.495786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 146], ["created_at", "2015-04-29 05:07:40.497847"], ["updated_at", "2015-04-29 05:07:40.497847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 146], ["created_at", "2015-04-29 05:07:40.499749"], ["updated_at", "2015-04-29 05:07:40.499749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 146], ["created_at", "2015-04-29 05:07:40.501558"], ["updated_at", "2015-04-29 05:07:40.501558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 146], ["updated_at", "2015-04-29 05:07:40.502878"], ["id", 146]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 146]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 146]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 146]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 146]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 146]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 146]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 146]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 146]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-29 05:07:40.523527"], ["updated_at", "2015-04-29 05:07:40.523527"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-04-29 05:07:40.524774"], ["updated_at", "2015-04-29 05:07:40.524774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-04-29 05:07:40.536820"], ["updated_at", "2015-04-29 05:07:40.536820"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-04-29 05:07:40.538021"], ["updated_at", "2015-04-29 05:07:40.538021"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-04-29 05:07:40.538985"], ["updated_at", "2015-04-29 05:07:40.538985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-29 05:07:40.556543"], ["updated_at", "2015-04-29 05:07:40.556543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-29 05:07:40.561860"], ["updated_at", "2015-04-29 05:07:40.561860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-29 05:07:40.563797"], ["updated_at", "2015-04-29 05:07:40.563797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 146], ["created_at", "2015-04-29 05:07:40.565630"], ["updated_at", "2015-04-29 05:07:40.565630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 146], ["created_at", "2015-04-29 05:07:40.567489"], ["updated_at", "2015-04-29 05:07:40.567489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 146], ["created_at", "2015-04-29 05:07:40.569219"], ["updated_at", "2015-04-29 05:07:40.569219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 145]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 145]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 145]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 145]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 145]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 145]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-29 05:07:58.497986"], ["updated_at", "2015-04-29 05:07:58.497986"]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 146], ["created_at", "2015-04-29 05:07:58.540564"], ["updated_at", "2015-04-29 05:07:58.540564"]]  (30.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 146], ["created_at", "2015-04-29 05:07:58.581417"], ["updated_at", "2015-04-29 05:07:58.581417"]]  (20.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 146], ["created_at", "2015-04-29 05:07:58.617131"], ["updated_at", "2015-04-29 05:07:58.617131"]]  (20.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 146], ["updated_at", "2015-04-29 05:07:58.640231"], ["id", 146]]  (25.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bcf9515a9998687ab77c68599ba3c219', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7764c61c9b7f9907381d76a60f279f44', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a1f81b6f90cd52c8dadc8047d8072c1', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7f81a4505e1e3d6482f959ff7456777f', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3f04e2e49ff788ce2eb27da8dccfe73e', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dfcc10b9a80dc17df37c6008b395137e', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '24ccd26736e37f705b51b2e183273895', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a0232b0505b8cc00862aa7cf2b012f57', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '80161aad3d056ad2bf1d58b371e10e8e', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4a40eb65eb8093ad7b490c3e38742140', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '95048b9f491029d153ae5b8fc5a09aa7', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4de890f8b888de229f8aa2a64df09416', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd405935efac39b4da050f26f94fc70ed', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ccfc65db15511fa4f29b3015e666ce70', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '25766b88a7acdfef28196459c198c0b3', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-29 05:07:58', '2015-04-29 05:07:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-29 05:07:58', '2015-04-29 05:07:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-04-29 05:07:58', '2015-04-29 05:07:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '976c550a898cfb3875b0cffdb17e47c0', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd8e49330fb80b5d0ab5dc460a8a7b145', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '117162f4c4aa700598f4987c90fa156a', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e806bfc6fc84f7e66223cdde9baa5697', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9db07b5841951f21c1b3b9ca8d5c34e2', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bd2d6bc3930499adf9aa234e30e41c4d', '2015-04-29 05:07:58', '2015-04-29 05:07:58', 410780858)  (29.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-29 05:07:58.979574"], ["updated_at", "2015-04-29 05:07:58.979574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-29 05:07:58.981666"], ["updated_at", "2015-04-29 05:07:58.981666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 147], ["created_at", "2015-04-29 05:07:58.983612"], ["updated_at", "2015-04-29 05:07:58.983612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 147], ["created_at", "2015-04-29 05:07:58.985521"], ["updated_at", "2015-04-29 05:07:58.985521"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 147], ["created_at", "2015-04-29 05:07:58.987909"], ["updated_at", "2015-04-29 05:07:58.987909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 147], ["updated_at", "2015-04-29 05:07:58.989787"], ["id", 147]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 147]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 147]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 147]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 147]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 147]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 147]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 147]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 147]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-04-29 05:07:59.014483"], ["updated_at", "2015-04-29 05:07:59.014483"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-04-29 05:07:59.015755"], ["updated_at", "2015-04-29 05:07:59.015755"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-04-29 05:07:59.016704"], ["updated_at", "2015-04-29 05:07:59.016704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-29 05:07:59.033079"], ["updated_at", "2015-04-29 05:07:59.033079"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-04-29 05:07:59.034205"], ["updated_at", "2015-04-29 05:07:59.034205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-04-29 05:07:59.037709"], ["updated_at", "2015-04-29 05:07:59.037709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-04-29 05:07:59.049780"], ["updated_at", "2015-04-29 05:07:59.049780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 147], ["created_at", "2015-04-29 05:07:59.051722"], ["updated_at", "2015-04-29 05:07:59.051722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 147], ["created_at", "2015-04-29 05:07:59.053546"], ["updated_at", "2015-04-29 05:07:59.053546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 147], ["created_at", "2015-04-29 05:07:59.055357"], ["updated_at", "2015-04-29 05:07:59.055357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 146]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 146]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 146]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 146]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 146]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 146]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 146]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 146]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd738fa9a651a882b9e19188083343064', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a5c08cf8ad651ababc51d65c0606fc71', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '99e3ba59217109e3a2ea0cb555d46f39', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0770f455384106f86a0c35cdab360206', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f127bf388c1d2fa71788baa89fb35cc3', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f44f028f8a437a9a13119b2fce69be5', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0951ed4f505e6cdd80e1274c6b61197e', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '65fc601a32813de8f9c3dfb3f413129c', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'dd4601b4fb476148639696f0a82812a1', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f3314968b7a033af3c0bbc97564e84c3', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '75944dedd20a8cf0b5436e8c0352e3a3', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4ea3770533c36ac64bcf8b1d39e4e123', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4eef61645d58f65a4b40f30077e1b346', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb1959e115616790e77380bb792d4f96', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5a7b5f13b1a68ddb6a7884d7909f2304', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:45:31', '2015-05-02 00:45:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:45:31', '2015-05-02 00:45:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:45:31', '2015-05-02 00:45:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'aaace5d9d06889fdb13fa1bb3b86a206', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '310835e650dac2a357a80f891c10652c', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4b3fad4265d9aba53acb4f0897e27cfd', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e777926d0e579381ab279e06a3acad05', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6e1aafc2a57ab0efdb28ce81e56736d7', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '95ed8ef20712d51445673b711f750c68', '2015-05-02 00:45:31', '2015-05-02 00:45:31', 410780858)  (44.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- CoreTest: test_0001_#pbt_orphans returns all parentless records for current Object ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 00:45:31.400359"], ["updated_at", "2015-05-02 00:45:31.400359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '73e31d7855acf6d40232f8ca05552066', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3279df83ae6e958098740bee825dfb77', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '58b7c9e763a7c7be9813d892abe5f2c9', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '91659bd2fc2a74634272dd45747e06c2', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '521fce4ecb05740722e796936c992ba9', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'be2d091392caed46582cb6adf7d1e0cc', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '81286887d7ef1055318129a39208d083', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5da88369c4666bd865b6b4148a3f6692', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '384ddc29311181aea2067d2e7756477e', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'edf5ec72eab2c47f71e6ec790de78002', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f31a0cd5a6baec91027a1a583ac3f97b', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'de37dff3beaaa6a2b1a9990649e503f1', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8458447c235f42bf368257a85708d0b0', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fac3474d33812aa920bb5d8b9909c19b', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6a15f10058420341afe191df139f9fc3', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:46:50', '2015-05-02 00:46:50', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:46:50', '2015-05-02 00:46:50', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:46:50', '2015-05-02 00:46:50', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '03e7f367e0373faf6f71fdbe09315c0e', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6762264ecd4b7a06b871c82fa9d807f5', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7f4c8c5bd95eac7f907e7fb22da287a1', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '106625b276fc5888e13da9b4eabc79bf', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '014cbbe4a24caf213d3bfda137667705', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1a86ac5dc62375e2cd1e0644421a4361', '2015-05-02 00:46:50', '2015-05-02 00:46:50', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- CoreTest: test_0001_#pbt_orphans returns all parentless records for current Object ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 00:46:50.673938"], ["updated_at", "2015-05-02 00:46:50.673938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 00:46:50.680153"], ["updated_at", "2015-05-02 00:46:50.680153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '905c98883f6349cec1a0048d92749be6', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ffd07905711fab29f09e96edf9dfe823', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '30a0954f04935655ac56f5ef42f15118', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '357f25b9bb843b18383e890f232280f2', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '976625ce4eb95f2aa1ab1bcbd7df8de6', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fff46fd067f3a53405dac725ee072c7b', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9713568fd7e336e230004329cee925de', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'aeda321c4f6fc05cffa352fde3402ec9', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9c54f471a9dc8ebdca64a0ea40eb7b7d', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ce30611d04f954dbd6c27391b6990917', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0a98b4e4a3035dd6e58c471ac9a47fb1', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4dfa63db03beb3a424d08180aeca96de', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '24773fa226a47795b3db3705d767e295', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a4f1debf0695fd49bd72ce96d529beb5', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ca5dbfddf96d98225b83dbf833b4a857', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:48:37', '2015-05-02 00:48:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:48:37', '2015-05-02 00:48:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:48:37', '2015-05-02 00:48:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a8ae5cd8b286f81eaa0211526c0c69b9', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ee5187a2407977be8b5646b4c15e0acc', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a9dbedf3041511b03a6332e35e8f6aa4', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ce8c8e5746e60c6372fe3ad136622e7b', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'aab16d1bf976c8f0e3f3a9afe2399748', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3c521308106cd82266c0f1ae1fbaed86', '2015-05-02 00:48:37', '2015-05-02 00:48:37', 410780858)  (18.7ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------- CoreTest: test_0001_#pbt_orphans returns all parentless records for current Object ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 00:48:37.167747"], ["updated_at", "2015-05-02 00:48:37.167747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 00:48:37.174900"], ["updated_at", "2015-05-02 00:48:37.174900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 00:48:37.183930"], ["updated_at", "2015-05-02 00:48:37.183930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146))  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 00:50:28.147131"], ["updated_at", "2015-05-02 00:50:28.147131"]]  (14.1ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 147], ["created_at", "2015-05-02 00:50:28.198392"], ["updated_at", "2015-05-02 00:50:28.198392"]]  (18.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 147], ["created_at", "2015-05-02 00:50:28.242928"], ["updated_at", "2015-05-02 00:50:28.242928"]]  (11.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 147], ["created_at", "2015-05-02 00:50:28.269774"], ["updated_at", "2015-05-02 00:50:28.269774"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 147], ["updated_at", "2015-05-02 00:50:28.284294"], ["id", 147]]  (23.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '35bf0db3abb96ff2bb4fad7124851d88', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '155e9c5823b59b98f586d91f368822ad', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '723f887c14c4914f0e26006a63f3fb6a', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0ad7f3baa9a53086037e1b1344576d08', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9ce2769ae68e1261401f8983f386e0f8', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6b196730cffcb96930dd615ea556f6c2', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9489e8b23610554c4d3e99d1c1ab23e5', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd18af1c0cee338fda0b60fdf6cf9c6be', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c28fa79ff31b67cfddad5360f28cbacf', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b4c282fa9a12486350e6b99f84f5aeaa', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1249851dbda7d2ce785dd85c5484714e', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '43ea9a6c6ffe59869b2b54b17052fe79', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fa5e53d47b9898db1f417c5e75bc1f2e', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd78f3a5795ba44835a12269016357115', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9721c49cdd43964bf3ab67e2b21f8853', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:50:28', '2015-05-02 00:50:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:50:28', '2015-05-02 00:50:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:50:28', '2015-05-02 00:50:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ece7bd17f699361727900bea3c697766', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5bb18559f83c95cb799b985e61d9cd7f', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fa4e5ae903bbcff046eea2a5f17fd5cd', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '26d0c75eee95753f29a4d84742f90958', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ad5f33174b0cdd217c7557e566ba251d', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '486a6f93c2b21825a06eddb0b8b7f95f', '2015-05-02 00:50:28', '2015-05-02 00:50:28', 410780858)  (14.0ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------- CoreTest: test_0001_#pbt_orphans returns all parentless records for current Object ----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 00:50:28.414350"], ["updated_at", "2015-05-02 00:50:28.414350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) SELECT "phones"."id" FROM "phones"  (0.3ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 00:50:28.425117"], ["updated_at", "2015-05-02 00:50:28.425117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 00:50:28.428804"], ["updated_at", "2015-05-02 00:50:28.428804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147))  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ CoreTest: test_0002_#pbt_orphans returns nil for non parent type records ------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 00:50:28.435167"], ["updated_at", "2015-05-02 00:50:28.435167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.0ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 00:50:28.564834"], ["updated_at", "2015-05-02 00:50:28.564834"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 00:50:28.568819"], ["updated_at", "2015-05-02 00:50:28.568819"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 00:50:28.569921"], ["updated_at", "2015-05-02 00:50:28.569921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 00:50:28.583408"], ["updated_at", "2015-05-02 00:50:28.583408"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 00:50:28.584593"], ["updated_at", "2015-05-02 00:50:28.584593"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 00:50:28.585604"], ["updated_at", "2015-05-02 00:50:28.585604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 00:50:28.608030"], ["updated_at", "2015-05-02 00:50:28.608030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 148], ["created_at", "2015-05-02 00:50:28.610032"], ["updated_at", "2015-05-02 00:50:28.610032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 148], ["created_at", "2015-05-02 00:50:28.612069"], ["updated_at", "2015-05-02 00:50:28.612069"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 148], ["created_at", "2015-05-02 00:50:28.614018"], ["updated_at", "2015-05-02 00:50:28.614018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 148], ["updated_at", "2015-05-02 00:50:28.615412"], ["id", 148]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 148]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 148]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 148]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 148]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 148]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 148]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Delta Load (0.3ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 148]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 148]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 00:50:28.641631"], ["updated_at", "2015-05-02 00:50:28.641631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 148], ["created_at", "2015-05-02 00:50:28.643614"], ["updated_at", "2015-05-02 00:50:28.643614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 148], ["created_at", "2015-05-02 00:50:28.645660"], ["updated_at", "2015-05-02 00:50:28.645660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 148], ["created_at", "2015-05-02 00:50:28.647477"], ["updated_at", "2015-05-02 00:50:28.647477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 00:50:28.660424"], ["updated_at", "2015-05-02 00:50:28.660424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 147]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 147]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 147]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 147]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 147]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 147]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 147]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 147]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dabb4efc1c47f183203978e4e77b7e84', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7135a9f463316e10cdcb645b48576a70', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b1f73731134bcd84c5ef7ffe1fcff5ad', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3d0aaffd3125903d2fa9a12c027b4fd2', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ddf2cd5db0179fcdea94d5b3f8d2f603', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2495e046c1900114e7c11a66a53fdefd', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c5261fbf3a032b5421e0a7714907e97a', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd7bb7a3f9d4d912678d3ac31f249bc8c', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '732c3980584433aab10da5e9fe82696c', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5c5794ec67402fe3f4454021142a7c66', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5a6d34063b924c3b87c5d4d2d37b9e54', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '11d8b4ab1240b7b26de6b87cc04db344', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f17e462d463adc83c7f90a7c842d982d', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0ebfebd3ecb5feb597d9edf4e9f11e79', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8d5ab9d7e53d0b454421268108e64ba9', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:52:05', '2015-05-02 00:52:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:52:05', '2015-05-02 00:52:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:52:05', '2015-05-02 00:52:05', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ab8f3043011c8625ec12625ad15c2d3a', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd18960d53756e50adf19895a1717c2d4', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c92c72323ca51228b9517f6768455b41', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ea9b0f8cc9d442331e2658d191f11e25', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '50dba154def3a8d24fc496570a8c9fd7', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e823265a7e3f92c47e4158e3c6564217', '2015-05-02 00:52:05', '2015-05-02 00:52:05', 410780858)  (32.7ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 00:52:05.583622"], ["updated_at", "2015-05-02 00:52:05.583622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '72cd46d92cf028d669fa59055a2db8b7', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a681e428e56944cc2ed9c79959600abb', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5ec5283fa99e7c92146a7aaacb30fb52', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b9ebc350e0880117126b1188e2896455', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '921719d5a695f7b43abaf2e48cb5894e', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '19042c33b5bdccfa8e4c4a4eaf680e3c', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e9108b49e70d6f1a1d44bbbc222004d7', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '87933a1772333e639f765db38a55b558', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8f8b6e8b3785314d0b92c6a1b7881e53', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '460dcb36fbe42a710c3ce0a038984bd7', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4197c983ff63747e403411aa40993c7e', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '35387ebc3f236f93f155bff04891a53f', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '403f2451235b1432da185f60c20e674d', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ca36bed91fb1f0883f2633b762a644b4', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0833e2e1ecc781dee3b3582e7a8b6837', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:52:15', '2015-05-02 00:52:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:52:15', '2015-05-02 00:52:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:52:15', '2015-05-02 00:52:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5845cd6bc7f05905878b4ec4fdda768b', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6e6587caa19c2802e137123c78284489', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5eb38efe62b787b0872fb2522ffcd0a9', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2fa87ba67249decf7499fe7f8349caaf', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7c48f9e3f5b5ed9d643a8847403cfc97', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7344bea330132a27af9f600e122cba3f', '2015-05-02 00:52:15', '2015-05-02 00:52:15', 410780858)  (26.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 00:52:15.993721"], ["updated_at", "2015-05-02 00:52:15.993721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 00:52:15.999434"], ["updated_at", "2015-05-02 00:52:15.999434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 00:52:16.008471"], ["updated_at", "2015-05-02 00:52:16.008471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147))  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 00:59:16.003838"], ["updated_at", "2015-05-02 00:59:16.003838"]]  (14.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 148], ["created_at", "2015-05-02 00:59:16.047676"], ["updated_at", "2015-05-02 00:59:16.047676"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 148], ["created_at", "2015-05-02 00:59:16.079239"], ["updated_at", "2015-05-02 00:59:16.079239"]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 148], ["created_at", "2015-05-02 00:59:16.112479"], ["updated_at", "2015-05-02 00:59:16.112479"]]  (12.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 148], ["updated_at", "2015-05-02 00:59:16.126327"], ["id", 148]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '328fb78a890f95f1765e651e873412f9', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ade1b49c4621a86e619d1677c0310a67', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '98c09c6c088c4e9cf4a0e30e5517001f', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '78c97f4722af835e3c1fb6ccd77e4142', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a4b31ad65018f1008cd26803e5228263', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe9581401de9881e9076022ff842e9dd', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e44cf98edab6b3ced855003332d9b932', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1beb79679fe4dce959efc4bd86d7da70', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0712a4d55aa14466f2913d3151fba91d', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7b737ebedb7fcddb42a5c67025d9298b', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd19dcceec08ec3e0839d609c427e84fd', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2369513690a65d8278892709bb97571e', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f20a24c902eb96190970cb276052feed', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a493d92eac23e59e11d083d4b0dbfd30', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '471bfa9ba78245eca8aaea9e4981126b', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:59:16', '2015-05-02 00:59:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:59:16', '2015-05-02 00:59:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 00:59:16', '2015-05-02 00:59:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '542807c84efe185186e3e44abf530d21', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fa8ee52f355212029bbdfcc5c12fbde5', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '05e5bba7dda2168f55950f87b2ef246f', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b27dd7d6f81b933c2e5ec5a09707c427', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '06ee3f93de15340ce7e1fa7eda225604', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7a6b739f520eadc352263ebeeda33a45', '2015-05-02 00:59:16', '2015-05-02 00:59:16', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 00:59:16.295177"], ["updated_at", "2015-05-02 00:59:16.295177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 149], ["created_at", "2015-05-02 00:59:16.297250"], ["updated_at", "2015-05-02 00:59:16.297250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 149], ["created_at", "2015-05-02 00:59:16.299367"], ["updated_at", "2015-05-02 00:59:16.299367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 149], ["created_at", "2015-05-02 00:59:16.301115"], ["updated_at", "2015-05-02 00:59:16.301115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 00:59:16.327923"], ["updated_at", "2015-05-02 00:59:16.327923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 00:59:16.339716"], ["updated_at", "2015-05-02 00:59:16.339716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 00:59:16.348465"], ["updated_at", "2015-05-02 00:59:16.348465"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 00:59:16.349582"], ["updated_at", "2015-05-02 00:59:16.349582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 00:59:16.353340"], ["updated_at", "2015-05-02 00:59:16.353340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 149], ["created_at", "2015-05-02 00:59:16.355351"], ["updated_at", "2015-05-02 00:59:16.355351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 149], ["created_at", "2015-05-02 00:59:16.357269"], ["updated_at", "2015-05-02 00:59:16.357269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 149], ["created_at", "2015-05-02 00:59:16.359096"], ["updated_at", "2015-05-02 00:59:16.359096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 149], ["updated_at", "2015-05-02 00:59:16.360343"], ["id", 149]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 00:59:16.380541"], ["updated_at", "2015-05-02 00:59:16.380541"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 00:59:16.381724"], ["updated_at", "2015-05-02 00:59:16.381724"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 00:59:16.382778"], ["updated_at", "2015-05-02 00:59:16.382778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 00:59:16.408417"], ["updated_at", "2015-05-02 00:59:16.408417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 00:59:16.415320"], ["updated_at", "2015-05-02 00:59:16.415320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 00:59:16.419937"], ["updated_at", "2015-05-02 00:59:16.419937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148))  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 00:59:16.434889"], ["updated_at", "2015-05-02 00:59:16.434889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 148]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 148]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 148]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 148]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 148]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 148]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 148]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 148]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:17:37.423172"], ["updated_at", "2015-05-02 01:17:37.423172"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 149], ["created_at", "2015-05-02 01:17:37.460917"], ["updated_at", "2015-05-02 01:17:37.460917"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 149], ["created_at", "2015-05-02 01:17:37.486147"], ["updated_at", "2015-05-02 01:17:37.486147"]]  (16.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 149], ["created_at", "2015-05-02 01:17:37.517179"], ["updated_at", "2015-05-02 01:17:37.517179"]]  (19.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 149], ["updated_at", "2015-05-02 01:17:37.539480"], ["id", 149]]  (17.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55c1300cb8a8a12f321415db414414c1', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f89b971027a8e6dbd3eceda335c4f0e6', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'af1b2bc19f17526b6e14fcbd876428c1', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0aad7c950452588908cf95debf1ae1d3', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1f2ff771587d1f89111c4a49e75c9978', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0c17926000a57c88e90af7d6e1dc052a', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9d038875705ccd6088ca63ff78c416c2', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c0b0e117721b3c21e2d476edabc55411', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '06357749810fd96fedbf69cc32fac097', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '489b95d95ab53d210e93bf687675060b', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '32588c127dd563ca22d56e75c13fdb96', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '692bd0545c98ff5e61cbc4c792209de2', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6f321cd4c65dd44c0157357e36cfc53a', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fcbbed9e0f7f0ca4e4bf475e541bb9c5', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bbeb6590fc22dc550e73e64be9489719', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:17:37', '2015-05-02 01:17:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:17:37', '2015-05-02 01:17:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:17:37', '2015-05-02 01:17:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '933152273e688763802c374495daf1cc', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5cac8491edafcdf4a0838c67c08307a3', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ec0016e686cc79d820c2bcf61f171a04', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a1183fdfa36e930d629925e8c748468e', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ad991eb30b5f954c0db721181086faa2', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c5046475230c6ef38c7735c2e09404a3', '2015-05-02 01:17:37', '2015-05-02 01:17:37', 410780858)  (18.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.3ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 149]] Alpha Load (0.3ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 149]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 149]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 149]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 149]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 149]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 149]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 149]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:17:37.853704"], ["updated_at", "2015-05-02 01:17:37.853704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:17:37.857442"], ["updated_at", "2015-05-02 01:17:37.857442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 150], ["created_at", "2015-05-02 01:17:37.859360"], ["updated_at", "2015-05-02 01:17:37.859360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 150], ["created_at", "2015-05-02 01:17:37.861296"], ["updated_at", "2015-05-02 01:17:37.861296"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 150], ["created_at", "2015-05-02 01:17:37.863256"], ["updated_at", "2015-05-02 01:17:37.863256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:17:37.867755"], ["updated_at", "2015-05-02 01:17:37.867755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 01:17:37.879736"], ["updated_at", "2015-05-02 01:17:37.879736"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 01:17:37.880924"], ["updated_at", "2015-05-02 01:17:37.880924"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 01:17:37.881870"], ["updated_at", "2015-05-02 01:17:37.881870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 01:17:37.900306"], ["updated_at", "2015-05-02 01:17:37.900306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 01:17:37.905435"], ["updated_at", "2015-05-02 01:17:37.905435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 01:17:37.909063"], ["updated_at", "2015-05-02 01:17:37.909063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:17:37.916149"], ["updated_at", "2015-05-02 01:17:37.916149"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 01:17:37.917235"], ["updated_at", "2015-05-02 01:17:37.917235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:17:37.933225"], ["updated_at", "2015-05-02 01:17:37.933225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:17:37.936628"], ["updated_at", "2015-05-02 01:17:37.936628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 150], ["created_at", "2015-05-02 01:17:37.938582"], ["updated_at", "2015-05-02 01:17:37.938582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 150], ["created_at", "2015-05-02 01:17:37.940643"], ["updated_at", "2015-05-02 01:17:37.940643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 150], ["created_at", "2015-05-02 01:17:37.942553"], ["updated_at", "2015-05-02 01:17:37.942553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 150], ["updated_at", "2015-05-02 01:17:37.943825"], ["id", 150]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '12ca50dc6126ad72ec9b38eaa541d0b6', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e266be6d04fbb59cf706699ceb5f211a', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '929282368de42e65b3238b364f563125', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f397d6405ea71b328d5264d8f9e008dc', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7933209eea4f2bf1a3cb748afe16e396', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b754bb9a5237298b749da401167b0919', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b33f1e104650be6b7ae0077b7a60f2f9', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b0ead4a53af53f2f1537d3a4d6b0a9fb', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5703e389506ff8346baacb3242372563', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'eb7b446047cbf70bf591ae437dd62ffa', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '613556a59cff1c537173ddde4460ee76', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3d7bbd82ac613911548199ecb9fc7c77', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aa4a6a89197649fbb5514203ff353e7f', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c14e0f18b31a3d966a8cf1eb03383ee4', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4e30a3a52eed25131a635e0cb9c93f23', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:37:36', '2015-05-02 01:37:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:37:36', '2015-05-02 01:37:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:37:36', '2015-05-02 01:37:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ce1a124a430311fb596be0852828de0b', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '04269591644b1ae969bc180c79e9d90d', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'accac5590b671f3740bd84db43f68581', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9ae4cf061fbeb7bb901e8a2b447f8d4e', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '495a87b6e75e27a1e3158d7e12f72064', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fdf285ba9fc00b0b1af535100c1aa6d1', '2015-05-02 01:37:36', '2015-05-02 01:37:36', 410780858)  (31.9ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 01:37:36.762173"], ["updated_at", "2015-05-02 01:37:36.762173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 01:37:36.764077"], ["updated_at", "2015-05-02 01:37:36.764077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b2f76589aabf9abad1366556a7196417', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9220ec05fc2eba98710f9a8c6cb831aa', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '286fdac1c40c460d8c2d97aa04ae1db6', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '59982caeb2fb217b4f5801cc6efe1997', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8633a5dd591389e944cb1b205233d96f', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0fed66d5be3979a07108b73568ca5d03', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4e404bbaab784a32907967ec3fea31ca', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3332b51574949e9387548d111dd49861', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2b3d557bcf72406b6090f9ef1499879f', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '01fba7a4a9b6f46dbccb35e345a00948', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1c99e079b5590721b67929d439a23c64', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e9973b3fcac0561d4530cbcff543116d', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1fdc59cb06422e47a90b13e801196c81', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f741158574af5785c51c365fdb4ed39c', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '13f0583bd7cd480ab98df5c4b0210593', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:38:00', '2015-05-02 01:38:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:38:00', '2015-05-02 01:38:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:38:00', '2015-05-02 01:38:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'df069b06ec254952e2d6d052c1b8ccd0', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ca2f5bfead446505d11dad36380439c7', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cfed698616085900424599f999a05c5c', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '074e895f8afa14201b7790cbfe68ffce', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4d9c16dfb1ef90b75ba7b3ac9fe9af7a', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5bd15d41775f532f54e4666e7d631a36', '2015-05-02 01:38:00', '2015-05-02 01:38:00', 410780858)  (13.8ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishyable"], ["created_at", "2015-05-02 01:38:00.261058"], ["updated_at", "2015-05-02 01:38:00.261058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 01:38:00.263122"], ["updated_at", "2015-05-02 01:38:00.263122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9ff03e436eaff2f24bfbca1acfcb05e6', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '537e43d0b891e174c3a661d858555b8c', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '78e9e5bec6e0eac3fafa1e3d06adc115', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a81892a4081c36e7d77407f16f4a9091', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f6ad2f49a7b07fbf2c91e2f635718c02', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '847ee028b485b27d2c45e34fb46bd0ef', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b44f2f39df53318074acc220c264905d', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3f3714de36d105f6e9e20abdaedff9d8', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd3b995c8e1436e900e8807cc12a67b63', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 51822084, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a1320685821d59efe95585859129a727', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '77f1d7cbc78fe27c0ad6004c33c53ff1', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4be5441182607d58ecbb856db6b14144', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '01c0c03bab346a751f28f8f5c0c7c637', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4d8cfe6f5df58afe7de21411bf562743', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b4aee90f3a99f7724ccc1e3ffd5e9b35', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:38:38', '2015-05-02 01:38:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:38:38', '2015-05-02 01:38:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:38:38', '2015-05-02 01:38:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '56c37523bdb5e53e39ebe0ee44bff6c4', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '59b37440dc1d170211941e86dac9849c', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd44394252274c0272af0bc2366eb8db2', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd1e2559b2866a0cd7eaf92240f3dce44', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ee29fbfafed704dff70bed2d324c9e21', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '450b300820c893d22091f5c1c2745d43', '2015-05-02 01:38:38', '2015-05-02 01:38:38', 410780858)  (26.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 01:38:38.184235"], ["updated_at", "2015-05-02 01:38:38.184235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 01:38:38.187899"], ["updated_at", "2015-05-02 01:38:38.187899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:38:53.370919"], ["updated_at", "2015-05-02 01:38:53.370919"]]  (29.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 150], ["created_at", "2015-05-02 01:38:53.422883"], ["updated_at", "2015-05-02 01:38:53.422883"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 150], ["created_at", "2015-05-02 01:38:53.445032"], ["updated_at", "2015-05-02 01:38:53.445032"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 150], ["created_at", "2015-05-02 01:38:53.473213"], ["updated_at", "2015-05-02 01:38:53.473213"]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 150], ["updated_at", "2015-05-02 01:38:53.486979"], ["id", 150]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fef975b4d81e0a88d83fe7a72cc780f0', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c129ec6cd7dce864862512e985d89aca', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '45971967e557fe15296e79bd78bda0d8', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a974ac8ad5d8e9f544b2b6501dbf0607', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c8b8f48b2a34b06e69b9b3bc6fc1c91a', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b1dc4207a50d13f7e1316512998430aa', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'cc33b6894f3a965c294a21689b8768c6', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b7a7e4529c5ad481ed2534b7006af09e', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c64fa3cdb47383372e75da025e596fae', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e98ec48723d2a129cc123483e75f2736', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0377f697ca39194bf23d42726616ec02', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5c9a4186d9c3acbde1d66993b0b3d604', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a15800755f92f68cee92df70595fcaa7', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e71ef21bc8e4cc6094e7254a01cc862', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b012f746bc319bdf8b21c5586aec58ee', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:38:53', '2015-05-02 01:38:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:38:53', '2015-05-02 01:38:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:38:53', '2015-05-02 01:38:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '41b7bbfe35e99238b54ce4b5fbad85f7', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '702106f730fb42a2b427af94dfa500da', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ffad26f087d0f0eed5a13960e370e135', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3b1b51eb4ac4600f2930fd1663471889', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'beeea766294e8b6466a644542a977c63', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '93cf2202e65283fd3545e4cb26cce65a', '2015-05-02 01:38:53', '2015-05-02 01:38:53', 410780858)  (18.0ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 150]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 150]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 150]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 150]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 150]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 150]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 150]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 150]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:38:53.798201"], ["updated_at", "2015-05-02 01:38:53.798201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 01:38:53.818967"], ["updated_at", "2015-05-02 01:38:53.818967"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 01:38:53.820184"], ["updated_at", "2015-05-02 01:38:53.820184"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 01:38:53.821145"], ["updated_at", "2015-05-02 01:38:53.821145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:38:53.838992"], ["updated_at", "2015-05-02 01:38:53.838992"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 01:38:53.840081"], ["updated_at", "2015-05-02 01:38:53.840081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:38:53.842912"], ["updated_at", "2015-05-02 01:38:53.842912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 151], ["created_at", "2015-05-02 01:38:53.844747"], ["updated_at", "2015-05-02 01:38:53.844747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 151], ["created_at", "2015-05-02 01:38:53.846613"], ["updated_at", "2015-05-02 01:38:53.846613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 151], ["created_at", "2015-05-02 01:38:53.848363"], ["updated_at", "2015-05-02 01:38:53.848363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:38:53.863615"], ["updated_at", "2015-05-02 01:38:53.863615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 01:38:53.869897"], ["updated_at", "2015-05-02 01:38:53.869897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 01:38:53.871363"], ["updated_at", "2015-05-02 01:38:53.871363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:38:53.879343"], ["updated_at", "2015-05-02 01:38:53.879343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:38:53.881763"], ["updated_at", "2015-05-02 01:38:53.881763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 151], ["created_at", "2015-05-02 01:38:53.883687"], ["updated_at", "2015-05-02 01:38:53.883687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 151], ["created_at", "2015-05-02 01:38:53.885484"], ["updated_at", "2015-05-02 01:38:53.885484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 151], ["created_at", "2015-05-02 01:38:53.887233"], ["updated_at", "2015-05-02 01:38:53.887233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 151], ["updated_at", "2015-05-02 01:38:53.888479"], ["id", 151]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 151]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 151]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 151]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 151]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 151]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 151]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 151]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 151]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 01:38:53.900284"], ["updated_at", "2015-05-02 01:38:53.900284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 01:38:53.903897"], ["updated_at", "2015-05-02 01:38:53.903897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 01:38:53.907589"], ["updated_at", "2015-05-02 01:38:53.907589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150))  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '620bc2daf47bbc97899e13d928e65314', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '250ffaf7496a2015f20ecb8aaee4335a', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '57e28e18f3a1053c59e0b1cebea822cd', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f6cde63eba31c439b5314e694fa8c998', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9b791467077280d1f1b5f5d8855ac760', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cd81ed13cd7a611fbef9b115f742498b', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b878c05d379cf84d571c5438c17e94f9', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b57aad4eed451de6aa1706438ca694c5', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0e4c6f68f20c2c8df05a95235ca846a6', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '815dec2c3b8b0007ceb59f23ebbb98db', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b3581d2604bb6fa935705c2b1afc3c74', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b5a1bb53146d2bad0ac05f00e8b505f1', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c53390b07b3a40bb7ee4c30f856623d3', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '998a4b1ec009d36723604f833a583f52', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ab9e2c05292743a369c2482ae4caecf6', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:39:24', '2015-05-02 01:39:24', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:39:24', '2015-05-02 01:39:24', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:39:24', '2015-05-02 01:39:24', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8f61cebc481d3dc0057ede0433231330', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1b111982a4641aac9ea9a474dd2ed999', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0930733da4aee0a5aa57d12bae5c395b', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '43830745d0fe902e814880b142c85fe1', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e0422323aa815991f6fe67fd3810a240', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd9f80d99d0d2cfc2a4a51d7d30693de4', '2015-05-02 01:39:24', '2015-05-02 01:39:24', 410780858)  (27.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 01:39:24.715193"], ["updated_at", "2015-05-02 01:39:24.715193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 01:39:24.717057"], ["updated_at", "2015-05-02 01:39:24.717057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:43:04.481350"], ["updated_at", "2015-05-02 01:43:04.481350"]]  (67.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 151], ["created_at", "2015-05-02 01:43:04.577374"], ["updated_at", "2015-05-02 01:43:04.577374"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 151], ["created_at", "2015-05-02 01:43:04.604457"], ["updated_at", "2015-05-02 01:43:04.604457"]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 151], ["created_at", "2015-05-02 01:43:04.639221"], ["updated_at", "2015-05-02 01:43:04.639221"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 151], ["updated_at", "2015-05-02 01:43:04.653862"], ["id", 151]]  (28.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8be46155c54913ada8af85ea6a762fdd', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ced3f854dca495876ffc905b8646013e', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'abd7d25c46eff8e17e36a616c83dbd4a', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '429b2694c6aec4d5f5af30f4be3c2815', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '27dd67d8820094a5d7c60d39ffb96820', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c0a375a1e7719cc33eecb2e417ab1884', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '017b343c53602bcf80b4bef4dbc4f8b5', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '28e759f5188b88688a5549c965f28ad2', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b1fd3b4d7bd8163979ac47b4b2a70ae4', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '126031a0c0773031dd63e3b766746ae7', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '952ffd72200349b35b64cae3acd9ed39', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9958f69697c917035c309923aef81c8d', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b01d365b54506a9f3df5b9fcfd1323e1', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3eb21663ed8bf87ab08d729fa1163599', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '46212edd850952fb6eb24a1373c4cf52', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:43:04', '2015-05-02 01:43:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:43:04', '2015-05-02 01:43:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:43:04', '2015-05-02 01:43:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '68d4ac9dd2eba449b2866f8c74be1f3d', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ac88ee4ec9be11ceed51b325ff16aeed', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2e56c8c9bcec3f6b6c9fdd087fbeb1ef', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '153aceb62c3f66e5cd0e116c4b4ef6b0', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '52b8da78eed23921423e0907eb5c14c2', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ee0200c3793838c9cdf856c6585e3936', '2015-05-02 01:43:04', '2015-05-02 01:43:04', 410780858)  (17.6ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 151]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 151]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 151]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 151]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 151]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 151]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 151]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 151]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:43:04.932279"], ["updated_at", "2015-05-02 01:43:04.932279"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 152], ["created_at", "2015-05-02 01:43:04.934445"], ["updated_at", "2015-05-02 01:43:04.934445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 152], ["created_at", "2015-05-02 01:43:04.936334"], ["updated_at", "2015-05-02 01:43:04.936334"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 152], ["created_at", "2015-05-02 01:43:04.938082"], ["updated_at", "2015-05-02 01:43:04.938082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 152], ["updated_at", "2015-05-02 01:43:04.939456"], ["id", 152]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 152]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 152]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 152]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 152]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 152]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 152]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 152]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 152]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 01:43:04.958771"], ["updated_at", "2015-05-02 01:43:04.958771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 01:43:04.960452"], ["updated_at", "2015-05-02 01:43:04.960452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 01:43:04.981691"], ["updated_at", "2015-05-02 01:43:04.981691"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 01:43:04.982995"], ["updated_at", "2015-05-02 01:43:04.982995"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 01:43:04.983993"], ["updated_at", "2015-05-02 01:43:04.983993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:43:05.003412"], ["updated_at", "2015-05-02 01:43:05.003412"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 01:43:05.004522"], ["updated_at", "2015-05-02 01:43:05.004522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:43:05.009392"], ["updated_at", "2015-05-02 01:43:05.009392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:43:05.016539"], ["updated_at", "2015-05-02 01:43:05.016539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:43:05.021458"], ["updated_at", "2015-05-02 01:43:05.021458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:43:05.027339"], ["updated_at", "2015-05-02 01:43:05.027339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 152], ["created_at", "2015-05-02 01:43:05.029204"], ["updated_at", "2015-05-02 01:43:05.029204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 152], ["created_at", "2015-05-02 01:43:05.031018"], ["updated_at", "2015-05-02 01:43:05.031018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 152], ["created_at", "2015-05-02 01:43:05.032815"], ["updated_at", "2015-05-02 01:43:05.032815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 01:43:05.041009"], ["updated_at", "2015-05-02 01:43:05.041009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:44:02.525610"], ["updated_at", "2015-05-02 01:44:02.525610"]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 152], ["created_at", "2015-05-02 01:44:02.567307"], ["updated_at", "2015-05-02 01:44:02.567307"]]  (18.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 152], ["created_at", "2015-05-02 01:44:02.601326"], ["updated_at", "2015-05-02 01:44:02.601326"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 152], ["created_at", "2015-05-02 01:44:02.626600"], ["updated_at", "2015-05-02 01:44:02.626600"]]  (20.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 152], ["updated_at", "2015-05-02 01:44:02.649072"], ["id", 152]]  (19.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f7b6e5a7ed49faa42eb2781d0e645ebd', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e1d9b06b855456c071de71467d8dc4a4', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a3e59ac3adf17758e1d930f6b1d92eaf', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2b17f831c1933f4d4a7d44f86c4cd798', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '41116f5194c15e88df1941e86e891e34', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0a469da13a3ef9b4bb488fc89c9459a2', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4ad0ba63d3158a8f701f9fd23fd9e506', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7b91e355c997111fa9f198c8370aaaf3', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c2cdf451a1c360ec2f9346ab517a77d5', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '535d8a44dd71084b6fd7506e0e4ee684', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'bd9c847025c827b557207be73422a92d', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '43d49df9a8ddf27546907dcdb6898eac', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7584a45e79884da7b3eb72781c676d39', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6c964d4a3974255c5861eca37435f4c1', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c0e8d923bfffb30d5e53372e2f4cf769', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:44:02', '2015-05-02 01:44:02', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:44:02', '2015-05-02 01:44:02', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:44:02', '2015-05-02 01:44:02', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '19e837b5da55a31dfada3124f24dfcfd', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2a8caa53f597f2835796efcb1cdb26ad', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6a32697b223d21e054b156e485645f69', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '50fee5fbd9f4077173a2a0a991d8b64f', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '904b69f8270e1c70ec89363453916dd8', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '971b2b7928f9d6880719c0a1f5303899', '2015-05-02 01:44:02', '2015-05-02 01:44:02', 410780858)  (18.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:44:02.878759"], ["updated_at", "2015-05-02 01:44:02.878759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 153], ["created_at", "2015-05-02 01:44:02.880760"], ["updated_at", "2015-05-02 01:44:02.880760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 153], ["created_at", "2015-05-02 01:44:02.882937"], ["updated_at", "2015-05-02 01:44:02.882937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 153], ["created_at", "2015-05-02 01:44:02.884764"], ["updated_at", "2015-05-02 01:44:02.884764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 01:44:02.890769"], ["updated_at", "2015-05-02 01:44:02.890769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 01:44:02.892211"], ["updated_at", "2015-05-02 01:44:02.892211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:44:02.900890"], ["updated_at", "2015-05-02 01:44:02.900890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:44:02.917739"], ["updated_at", "2015-05-02 01:44:02.917739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 153], ["created_at", "2015-05-02 01:44:02.919798"], ["updated_at", "2015-05-02 01:44:02.919798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 153], ["created_at", "2015-05-02 01:44:02.921708"], ["updated_at", "2015-05-02 01:44:02.921708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 153], ["created_at", "2015-05-02 01:44:02.923625"], ["updated_at", "2015-05-02 01:44:02.923625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 153], ["updated_at", "2015-05-02 01:44:02.924909"], ["id", 153]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 153]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 153]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 153]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 153]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 153]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 153]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 153]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 153]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:44:02.940717"], ["updated_at", "2015-05-02 01:44:02.940717"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 01:44:02.955932"], ["updated_at", "2015-05-02 01:44:02.955932"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 01:44:02.957098"], ["updated_at", "2015-05-02 01:44:02.957098"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 01:44:02.958037"], ["updated_at", "2015-05-02 01:44:02.958037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 01:44:02.978178"], ["updated_at", "2015-05-02 01:44:02.978178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 01:44:02.982041"], ["updated_at", "2015-05-02 01:44:02.982041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 01:44:02.985826"], ["updated_at", "2015-05-02 01:44:02.985826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152))  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:44:02.997702"], ["updated_at", "2015-05-02 01:44:02.997702"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 01:44:02.998809"], ["updated_at", "2015-05-02 01:44:02.998809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:44:03.001617"], ["updated_at", "2015-05-02 01:44:03.001617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 152]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 152]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 152]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 152]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 152]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 152]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 152]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 152]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3bbdfa9ebe657fe4add0e139228be00d', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9f1357c89a98c9e178e0c950a3b8e78b', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e6deaa71302bd46c4248d6791ff06f4e', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aa0a44866c445305e252f96d411dfdd8', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a486d9c5ae55f82a31427da52c3e3556', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '45f14c16964ee2808f4830958a0da60f', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2b361a8a26e608ac0ca3fbe2ca33a33c', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'dbef6ca0c17970db350ce8a31adb3e74', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b22e8024d056825a3c5b23d10013ee48', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e1873ef51b329735c389c591e041726b', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1577e59a5da3d619d832758b93ac7112', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '51d6c03f2510a1b80700572b50257d92', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '869a6086a1145570804ea52db6a49911', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eca6f195aa39843f24cd5f9309293e10', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd1a5b375c701396a49b5a6b2ed81fe6d', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:48:53', '2015-05-02 01:48:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:48:53', '2015-05-02 01:48:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:48:53', '2015-05-02 01:48:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a0a078ca76de540972f49293245fb786', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '36bf4d4f857c6f6c3fae8d82f8f9bef8', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dfb903121a23da3a7583e4d662e9f6c3', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5d2bc325ed29342d8755998317986a67', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '60502929b3a9e6e66e6b64082e24df75', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '84126efbb453a11117faa16a730697e0', '2015-05-02 01:48:53', '2015-05-02 01:48:53', 410780858)  (26.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 01:48:53.600722"], ["updated_at", "2015-05-02 01:48:53.600722"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 01:48:53.602603"], ["updated_at", "2015-05-02 01:48:53.602603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 01:48:53.603991"], ["updated_at", "2015-05-02 01:48:53.603991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:52:37.470534"], ["updated_at", "2015-05-02 01:52:37.470534"]]  (18.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 153], ["created_at", "2015-05-02 01:52:37.521878"], ["updated_at", "2015-05-02 01:52:37.521878"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 153], ["created_at", "2015-05-02 01:52:37.559378"], ["updated_at", "2015-05-02 01:52:37.559378"]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 153], ["created_at", "2015-05-02 01:52:37.583553"], ["updated_at", "2015-05-02 01:52:37.583553"]]  (22.9ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 153], ["updated_at", "2015-05-02 01:52:37.609383"], ["id", 153]]  (30.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '728f632375ce990fdd79fe28a498365c', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f8c144e589110244e8340cc64a0c1fe6', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd73e8395a316324a3e6dc69854aaa135', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aa1912367c37cc3fec2cbb6a96f221aa', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '083ed9b87b9ef0179501a7d859a737c1', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f579efa21b15cb4d38e227f41f21050a', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f10d184b0820f2cae54272b13106086c', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bc9ac639ffb4ebe0b94320570e3ff3f4', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5d9694267ab38c0b3b1df344d905dd04', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bdabb1bfdb1a3ef7f9dbd01fedc061c7', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3aafb917001a430c024fc56856602d20', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4dc017876ae20d2080026330615770af', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ee8bd0c320b0a3d0ca3f12a68618cfff', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '547a8d86c1ca3fd25d33b2b399d3dfb2', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c9a1b055b76b70df3065f4fe33554d1c', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:52:37', '2015-05-02 01:52:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:52:37', '2015-05-02 01:52:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:52:37', '2015-05-02 01:52:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '53377d9c2b21229b9bc9d14d93871986', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '238994d0ecd009b57182b41303abcf0d', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '270de5e0151b6c9b570a66314a88a241', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '24d5f8ba375e8ce2eb6a99dfe04f6861', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '581ba30a973a1ff1f7da1a171e760b17', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f3fb5c165b5664e59d87f5f61175121b', '2015-05-02 01:52:37', '2015-05-02 01:52:37', 410780858)  (28.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:52:37.937029"], ["updated_at", "2015-05-02 01:52:37.937029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 154], ["created_at", "2015-05-02 01:52:37.939093"], ["updated_at", "2015-05-02 01:52:37.939093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 154], ["created_at", "2015-05-02 01:52:37.941154"], ["updated_at", "2015-05-02 01:52:37.941154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 154], ["created_at", "2015-05-02 01:52:37.942989"], ["updated_at", "2015-05-02 01:52:37.942989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 154], ["updated_at", "2015-05-02 01:52:37.944329"], ["id", 154]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 154]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 154]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 154]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 154]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 154]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 154]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 154]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 154]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:52:37.965111"], ["updated_at", "2015-05-02 01:52:37.965111"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 01:52:37.966326"], ["updated_at", "2015-05-02 01:52:37.966326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 01:52:37.983586"], ["updated_at", "2015-05-02 01:52:37.983586"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 01:52:37.984797"], ["updated_at", "2015-05-02 01:52:37.984797"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 01:52:37.985774"], ["updated_at", "2015-05-02 01:52:37.985774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 01:52:37.998820"], ["updated_at", "2015-05-02 01:52:37.998820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 01:52:38.000304"], ["updated_at", "2015-05-02 01:52:38.000304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 01:52:38.001628"], ["updated_at", "2015-05-02 01:52:38.001628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:52:38.017229"], ["updated_at", "2015-05-02 01:52:38.017229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:52:38.020726"], ["updated_at", "2015-05-02 01:52:38.020726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:52:38.024073"], ["updated_at", "2015-05-02 01:52:38.024073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:52:38.025985"], ["updated_at", "2015-05-02 01:52:38.025985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 154], ["created_at", "2015-05-02 01:52:38.027887"], ["updated_at", "2015-05-02 01:52:38.027887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 154], ["created_at", "2015-05-02 01:52:38.029831"], ["updated_at", "2015-05-02 01:52:38.029831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 154], ["created_at", "2015-05-02 01:52:38.031646"], ["updated_at", "2015-05-02 01:52:38.031646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 01:52:38.038693"], ["updated_at", "2015-05-02 01:52:38.038693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 01:52:38.042261"], ["updated_at", "2015-05-02 01:52:38.042261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 01:52:38.046035"], ["updated_at", "2015-05-02 01:52:38.046035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153))  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 153]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 153]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 153]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 153]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 153]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 153]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 153]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 153]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:53:14.242501"], ["updated_at", "2015-05-02 01:53:14.242501"]]  (14.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 154], ["created_at", "2015-05-02 01:53:14.292030"], ["updated_at", "2015-05-02 01:53:14.292030"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 154], ["created_at", "2015-05-02 01:53:14.323539"], ["updated_at", "2015-05-02 01:53:14.323539"]]  (18.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 154], ["created_at", "2015-05-02 01:53:14.350302"], ["updated_at", "2015-05-02 01:53:14.350302"]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 154], ["updated_at", "2015-05-02 01:53:14.370537"], ["id", 154]]  (17.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3c129e68de0082b834a076af545b29b4', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fcef8563b6c4601a60ca47889503496a', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dffc0c686c4b81514de9d894ac05c58c', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8cb5e210707f5065450668b38cb70480', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '393bdf3e2b16511ea902800e0b076497', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '510bc30b051cf4265a470dc9b85fea3f', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '40e6322d9b25984c06232e9c0fb54e32', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5fd5fc317dec16de2bacfed3f1635ded', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '394dd3ac23f2010b03e5402af8ff4802', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ac266a9953006abb42c5162f38cfdb7c', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ba59b0a7821d41c0e0f8e0cb08f845ae', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7fc5528bf295783b42207af3e022e45e', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '82dc529a3ee7bf072001df6daa84c155', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f61dd5d11ba08562f3533fb98a415761', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5f91c4f582f585541ad28aeaf972f1c3', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:53:14', '2015-05-02 01:53:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:53:14', '2015-05-02 01:53:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:53:14', '2015-05-02 01:53:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3a69b5165711eaecca925d297ec0c309', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '809c38ce300a539289d5d4ba027d5671', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '62f42aac798b426451b16eb7e4eb72aa', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '53f94049d768f10e64f241f434907e11', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '09eeaf8604b9bac0a0329267d1565c2c', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '38ab4b9b084d4f43b48e7056273b34cf', '2015-05-02 01:53:14', '2015-05-02 01:53:14', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.3ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 154]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 154]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 154]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 154]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 154]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 154]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 154]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 154]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:53:14.689232"], ["updated_at", "2015-05-02 01:53:14.689232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:53:14.695114"], ["updated_at", "2015-05-02 01:53:14.695114"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 155], ["created_at", "2015-05-02 01:53:14.697631"], ["updated_at", "2015-05-02 01:53:14.697631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 155], ["created_at", "2015-05-02 01:53:14.699890"], ["updated_at", "2015-05-02 01:53:14.699890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 155], ["created_at", "2015-05-02 01:53:14.701728"], ["updated_at", "2015-05-02 01:53:14.701728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 155], ["updated_at", "2015-05-02 01:53:14.703067"], ["id", 155]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 155]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 155]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 155]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 155]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 155]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 155]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 155]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 155]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 01:53:14.732756"], ["updated_at", "2015-05-02 01:53:14.732756"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 01:53:14.734049"], ["updated_at", "2015-05-02 01:53:14.734049"]] SQL (0.3ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 01:53:14.735102"], ["updated_at", "2015-05-02 01:53:14.735102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 01:53:14.754526"], ["updated_at", "2015-05-02 01:53:14.754526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 01:53:14.756024"], ["updated_at", "2015-05-02 01:53:14.756024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 01:53:14.757649"], ["updated_at", "2015-05-02 01:53:14.757649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:53:14.766968"], ["updated_at", "2015-05-02 01:53:14.766968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:53:14.772075"], ["updated_at", "2015-05-02 01:53:14.772075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:53:14.778540"], ["updated_at", "2015-05-02 01:53:14.778540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 155], ["created_at", "2015-05-02 01:53:14.780397"], ["updated_at", "2015-05-02 01:53:14.780397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 155], ["created_at", "2015-05-02 01:53:14.782235"], ["updated_at", "2015-05-02 01:53:14.782235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 155], ["created_at", "2015-05-02 01:53:14.784114"], ["updated_at", "2015-05-02 01:53:14.784114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 01:53:14.789988"], ["updated_at", "2015-05-02 01:53:14.789988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 01:53:14.793841"], ["updated_at", "2015-05-02 01:53:14.793841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 01:53:14.797305"], ["updated_at", "2015-05-02 01:53:14.797305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154))  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:53:14.807407"], ["updated_at", "2015-05-02 01:53:14.807407"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 01:53:14.808899"], ["updated_at", "2015-05-02 01:53:14.808899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:53:57.698655"], ["updated_at", "2015-05-02 01:53:57.698655"]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 155], ["created_at", "2015-05-02 01:53:57.744548"], ["updated_at", "2015-05-02 01:53:57.744548"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 155], ["created_at", "2015-05-02 01:53:57.784189"], ["updated_at", "2015-05-02 01:53:57.784189"]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 155], ["created_at", "2015-05-02 01:53:57.805172"], ["updated_at", "2015-05-02 01:53:57.805172"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 155], ["updated_at", "2015-05-02 01:53:57.819761"], ["id", 155]]  (13.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '14f0e9ceeafc835c5144517fc9b868e6', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9f338869ae1ed9ce82bf0eb51aeddb54', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c92de20cf07741becab563f81fb1892d', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0310fe0d8003d29a0d2d11266b0aa647', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cb0ec70cc43c83b65a819bfd271b3d2a', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3f6334c2baec578a61f53e2bafb88490', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '583aeeca66ea357bcb7552bef7e81540', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '559a2140b16be259aafb9813b23b2faa', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '65984334980d087477f633fe2651798d', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e1c6d46d89fc41c2cc740607a8d8b3b5', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '92b2563ea855c870f38049698f2283e3', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fa206db5ca183fb5b343432da948daba', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ac028aa9e5d5989ac06800165375d8b1', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '753e6d95e7d89e97b49637edcb080a18', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cfbccc6924f9dd644cbb982274c11022', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:53:57', '2015-05-02 01:53:57', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:53:57', '2015-05-02 01:53:57', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 01:53:57', '2015-05-02 01:53:57', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9be59fef79c35f487cafb8a26c69579c', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '53116f9160ffd31609e77062f7d82f44', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4b1fa7be13fe28044fceaf0fb75e67fc', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7a58ada60bd9e2a72e7e8f481e13ba4f', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ee8cfbefa9e32809611d9441de8657ed', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3602c0293f85121a0b7ab0704b4a5fa9', '2015-05-02 01:53:57', '2015-05-02 01:53:57', 410780858)  (20.7ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:53:57.969062"], ["updated_at", "2015-05-02 01:53:57.969062"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 01:53:57.970613"], ["updated_at", "2015-05-02 01:53:57.970613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 01:53:57.979890"], ["updated_at", "2015-05-02 01:53:57.979890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 01:53:57.985379"], ["updated_at", "2015-05-02 01:53:57.985379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 01:53:57.989026"], ["updated_at", "2015-05-02 01:53:57.989026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:53:57.995486"], ["updated_at", "2015-05-02 01:53:57.995486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:53:57.998875"], ["updated_at", "2015-05-02 01:53:57.998875"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:53:58.006824"], ["updated_at", "2015-05-02 01:53:58.006824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 156], ["created_at", "2015-05-02 01:53:58.008767"], ["updated_at", "2015-05-02 01:53:58.008767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 156], ["created_at", "2015-05-02 01:53:58.010709"], ["updated_at", "2015-05-02 01:53:58.010709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 156], ["created_at", "2015-05-02 01:53:58.012576"], ["updated_at", "2015-05-02 01:53:58.012576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 01:53:58.028111"], ["updated_at", "2015-05-02 01:53:58.028111"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 01:53:58.029359"], ["updated_at", "2015-05-02 01:53:58.029359"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 01:53:58.030376"], ["updated_at", "2015-05-02 01:53:58.030376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 01:53:58.066624"], ["updated_at", "2015-05-02 01:53:58.066624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 01:53:58.069089"], ["updated_at", "2015-05-02 01:53:58.069089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 156], ["created_at", "2015-05-02 01:53:58.070974"], ["updated_at", "2015-05-02 01:53:58.070974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 156], ["created_at", "2015-05-02 01:53:58.072803"], ["updated_at", "2015-05-02 01:53:58.072803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 156], ["created_at", "2015-05-02 01:53:58.074596"], ["updated_at", "2015-05-02 01:53:58.074596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 156], ["updated_at", "2015-05-02 01:53:58.075911"], ["id", 156]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 156]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 156]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 156]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 156]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 156]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 156]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 156]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 156]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 01:53:58.088450"], ["updated_at", "2015-05-02 01:53:58.088450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 01:53:58.089939"], ["updated_at", "2015-05-02 01:53:58.089939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 01:53:58.091287"], ["updated_at", "2015-05-02 01:53:58.091287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 155]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 155]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 155]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 155]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 155]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 155]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 155]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 155]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:38:33.472742"], ["updated_at", "2015-05-02 02:38:33.472742"]]  (33.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 156], ["created_at", "2015-05-02 02:38:33.542334"], ["updated_at", "2015-05-02 02:38:33.542334"]]  (11.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 156], ["created_at", "2015-05-02 02:38:33.575288"], ["updated_at", "2015-05-02 02:38:33.575288"]]  (24.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 156], ["created_at", "2015-05-02 02:38:33.609401"], ["updated_at", "2015-05-02 02:38:33.609401"]]  (34.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 156], ["updated_at", "2015-05-02 02:38:33.646253"], ["id", 156]]  (22.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ad1c6158bd648c1abf5407fe09afac96', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '09c5cbae62a3b34e92420e15aa20e516', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '20d68a0be20b5e7ed6b3ad53e7dd9ffa', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5e0b5b0e701c0b2a3d32caa683c9ec47', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7e4d7020f64d80212f25bcc211d52e12', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '55ed5a5cfbc4f5013d2f678d1d9c849e', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5848855a803a3da605562c3b1547d8ec', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8874abcaa11d5b45ca024c188b4bc5ca', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c70e6427f44a85282d036cf19a36fd0a', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4615199a1c9f2e7fd53125b99fd898a8', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1e98da74b752f507fd68e17843f13174', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f99f458f37889ac14e0dfd85bf2c9c0a', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b8ab930180625c9c3045068f9a363ee8', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b2e11297efcd5b4b28a8a7ad865f82df', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '92c26aaa1e7beb42039f2e3ee7737d31', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:38:33', '2015-05-02 02:38:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:38:33', '2015-05-02 02:38:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:38:33', '2015-05-02 02:38:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c94cf738d5248173c00e7fde800cc07b', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '822eaef62af8df93fcffb6a204f69098', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3e0dbbdd638ee9e662c5049ecda052b5', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '648d8c7eb8568ed2b738243bfa47014b', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0b00905c1ca2193b5d7a8a394441c40d', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c1b0663fe5ff4b42f37ceec194fab6a9', '2015-05-02 02:38:33', '2015-05-02 02:38:33', 410780858)  (19.1ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.4ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 02:38:33.854679"], ["updated_at", "2015-05-02 02:38:33.854679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:38:33.873339"], ["updated_at", "2015-05-02 02:38:33.873339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 157], ["created_at", "2015-05-02 02:38:33.875632"], ["updated_at", "2015-05-02 02:38:33.875632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 157], ["created_at", "2015-05-02 02:38:33.877530"], ["updated_at", "2015-05-02 02:38:33.877530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 157], ["created_at", "2015-05-02 02:38:33.879389"], ["updated_at", "2015-05-02 02:38:33.879389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 02:38:33.894912"], ["updated_at", "2015-05-02 02:38:33.894912"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 02:38:33.896150"], ["updated_at", "2015-05-02 02:38:33.896150"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 02:38:33.897092"], ["updated_at", "2015-05-02 02:38:33.897092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:38:33.917445"], ["updated_at", "2015-05-02 02:38:33.917445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:38:33.921633"], ["updated_at", "2015-05-02 02:38:33.921633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistyped returns mislabled record types ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:38:33.933872"], ["updated_at", "2015-05-02 02:38:33.933872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:38:33.935678"], ["updated_at", "2015-05-02 02:38:33.935678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:38:33.937053"], ["updated_at", "2015-05-02 02:38:33.937053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:38:33.942639"], ["updated_at", "2015-05-02 02:38:33.942639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:38:33.944035"], ["updated_at", "2015-05-02 02:38:33.944035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:38:33.945323"], ["updated_at", "2015-05-02 02:38:33.945323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 02:38:33.955106"], ["updated_at", "2015-05-02 02:38:33.955106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 02:38:33.959055"], ["updated_at", "2015-05-02 02:38:33.959055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 02:38:33.962883"], ["updated_at", "2015-05-02 02:38:33.962883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:38:33.967322"], ["updated_at", "2015-05-02 02:38:33.967322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 157], ["created_at", "2015-05-02 02:38:33.969559"], ["updated_at", "2015-05-02 02:38:33.969559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 157], ["created_at", "2015-05-02 02:38:33.971755"], ["updated_at", "2015-05-02 02:38:33.971755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 157], ["created_at", "2015-05-02 02:38:33.973860"], ["updated_at", "2015-05-02 02:38:33.973860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 157], ["updated_at", "2015-05-02 02:38:33.975414"], ["id", 157]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 157]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 157]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 157]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 157]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 157]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 157]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 157]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 157]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 02:38:33.999931"], ["updated_at", "2015-05-02 02:38:33.999931"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 02:38:34.001095"], ["updated_at", "2015-05-02 02:38:34.001095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 156]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 156]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 156]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 156]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 156]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 156]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 156]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 156]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '19ed2f5b5f0d6902720f9646b1499699', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b23ff114780b4ebab5e4629a7955c30a', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '27182be1ed97bb4cc96fa2bacfc9c728', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5c50891707404f59dbcdcf87969e7ce0', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '24fb323cfefb2ec1c6838742efec1fca', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b9cab2513bf755d6fe054153e665e47c', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '87f45eba57bf7e05e3ea61192184770f', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0a9b9a344f6594495f91add6203d5673', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ba7f2fb2842316b7a6a6506b23be625a', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6b8534e7ad55157e83b295a2362dfb93', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3b0899b736181e772ab2a9dbe99d6b20', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4700a99325849f4a5309e3d84a237f24', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98b2221d35884ef32ef0a445bcfce14b', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bfe3cdabd03d7b0ef1353e332a24b956', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cf7eac223302ebec8e86c4d20507909f', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:38:41', '2015-05-02 02:38:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:38:41', '2015-05-02 02:38:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:38:41', '2015-05-02 02:38:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '87db2671c4035c0342505b6fc368f936', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '48c8c4040ed50f6bc1c5791656d315c9', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5e6d268a0e9d32ce6233259bd74d5b2d', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '72fa117c5a6604639a7fbf320b6283fe', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '77ffd599e5dca267f5d3099330b077f3', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '910ef882f5adb0e9f378ae79afb16bbc', '2015-05-02 02:38:41', '2015-05-02 02:38:41', 410780858)  (14.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistyped returns mislabled record types ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:38:41.586253"], ["updated_at", "2015-05-02 02:38:41.586253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:38:41.588129"], ["updated_at", "2015-05-02 02:38:41.588129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:38:41.589455"], ["updated_at", "2015-05-02 02:38:41.589455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '25a1681067f80f134935a7fc77155672', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '77142b247db621956fae68a228c82ad7', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '60fc9d0f04746a1796f4660a3e5978ee', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd1119a86902e724d7ce9f7165bb83286', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fa14d8ac3fb6ee37496309e0af2aaa84', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '03694297a3313cf498271137079cc33b', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b5346299c621f320faef0f90b21c7722', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1324e86aa0f6948d80c6cb09d30b96b2', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '24559df9330dba443044bac4b036ac69', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '17d549b8a4ab7043eb169f66ae572cbe', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a48b9dc5bc34149977c436c250fe2f40', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '36baa083a7c35384299157b33e9ec022', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e5bb5b34954f4dd1754aa348a997c979', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '22a0a329e3f80c480b5b5a63a4ec09a2', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '417109dc172eefda62516818aed5604d', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:39:11', '2015-05-02 02:39:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:39:11', '2015-05-02 02:39:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:39:11', '2015-05-02 02:39:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'da604cb1a68ee060a5b66504e4304b5f', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e065c6fd2daf1de0a503e0a7fee4f9b3', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cf8bfd7a7b060bce1e7648ec30184553', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0685ae6a1acbdf70a55ffd1d5024625d', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '677e9a2915d9a27db3392700a8b61234', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a8803ce090979352b52511df6b229d3c', '2015-05-02 02:39:11', '2015-05-02 02:39:11', 410780858)  (18.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistyped returns mislabled record types ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:39:11.169392"], ["updated_at", "2015-05-02 02:39:11.169392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:39:11.171245"], ["updated_at", "2015-05-02 02:39:11.171245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:39:11.172552"], ["updated_at", "2015-05-02 02:39:11.172552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '14740f3b14e85bf3e07244cae5ae3d45', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6e02e2c92a1afdf1a8879758394d7aa2', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '30bf757e3e3042e1ec3838483fed6ef0', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '94e94c755ae8f0a3a5f03b513d12dbaf', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '25b0aad2c0e7f159bfadb62946def53f', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f4b8c28b3ca6492956eec31eb211c9de', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c509f8e801acf46365995daa02dd3139', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5080ff81cf900b0ddf1d2bd8e7d15bfa', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fbf0d2f2126ead76bf5fc020c43c2959', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '326faf0b8e9a01b4a5c8e3722737bb56', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b53231de02a8435678b3cddcba68d444', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a0d2a12b50076b044f5f7c14d5997b52', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '93acfd8b3baa5eb2f870e2bf9e14402d', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '09ab0466c1a1cc3793d929ad4189affa', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '92730c0d17abacb9975f17cc8ce7137d', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:39:32', '2015-05-02 02:39:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:39:32', '2015-05-02 02:39:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:39:32', '2015-05-02 02:39:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fdfb46f46633f2db49485e87e071f78c', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4fa14eb4c502ce463ce625fd7dfed599', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9584a127e6336c6eaa4a9be6eb1036b8', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '827ff3f31569857638a2adfa494e567a', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '51174b964fdfd2c3fe1b3551a0a90571', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0bafb220d8fd45b52c4581662c9db509', '2015-05-02 02:39:32', '2015-05-02 02:39:32', 410780858)  (15.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistyped returns mislabled record types ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:39:32.481973"], ["updated_at", "2015-05-02 02:39:32.481973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:39:32.483873"], ["updated_at", "2015-05-02 02:39:32.483873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:39:32.485196"], ["updated_at", "2015-05-02 02:39:32.485196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2d67afe19f783baa651d0bb04cf0b762', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '561a894a90e8a4cdc1f6df344a032d10', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd8d7229c40139149dbb7a80e28cb7ab7', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '546bb1cf24836909bb8f22053daf18d9', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '73bfc25f2bf073e01023728a3f9db82d', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '16614df96d7b4d1bc78d663572cfc3e8', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3e5d225dfb94f4da372e6f7f3853f933', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'be670ffbbe4ebb1b45d15760cb6914b9', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'dd74592de4e0adaebf7c0654a01904b9', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '08a8e97388e6c10f04f66a8de3db8815', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '65458f442ccc8382fe3f5f72cf7b424b', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'afc8889236c6486f8a2dfb52489db73c', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '32772ef27513a240e82b2fce15b65f2c', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0345c7d64ab8d0acaec46d96ae729d5d', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '860a1888e924b4a083676b0f9fd79211', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:41:12', '2015-05-02 02:41:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:41:12', '2015-05-02 02:41:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:41:12', '2015-05-02 02:41:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'de607e2dc98e0df59e613d72c72a03b3', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b5cf2ef700b7a7ae485857159e00334f', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '57e7c901e66935e5677c3603cf61cdf7', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b186ff32fe0fa20db0348d91efe3514e', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '838338b505a83119c50cc37dc30d97fb', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b5ba2d5a7d2dbdb6d558bb5cd418b206', '2015-05-02 02:41:12', '2015-05-02 02:41:12', 410780858)  (22.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:41:12.356480"], ["updated_at", "2015-05-02 02:41:12.356480"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:41:12.358367"], ["updated_at", "2015-05-02 02:41:12.358367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:41:12.359694"], ["updated_at", "2015-05-02 02:41:12.359694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '07df2a1822f45cb7fd55974bf60a5243', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9142b9389efe77fb4804cd9eb0eb4f76', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '78be8d5541a3b05af94dfd56d429696b', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a2a2689155e1e42fb85acf47a57b9391', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '64625c088d95073a146045e4454b2087', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b0275c129a659cc38d9dcd2d40d102f0', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '175ac7e2eca88994486aa1ea8f2a3bb6', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f34b6012c90a332fec5f6ce1c5585cc2', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7baa84a9cde7e1ce8958dbd44cfd700e', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '12a0696e1948f279cc3c607cff4c5567', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd2dedd72c38f3a0c26dce437747f05af', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f3152bbf221ecc0304260fb09779eb52', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e5ff6dad46ae7bd77d016702df04d61c', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '89d398671c4c3148c88e8f89e8b631bf', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '07af496eac7b2a289cac7f7711a1efde', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:41:51', '2015-05-02 02:41:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:41:51', '2015-05-02 02:41:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:41:51', '2015-05-02 02:41:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2ecec912f04974e869cd6ddb9beb73cc', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a54d1c394b7d55987da99af4fe6fcc8e', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8c1fd02ae7598ae5af127375a3a58edf', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ea0650ea5346a3e225e07dd50efa032a', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8a491d80bccd9130ff8a159760a089f4', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a2bc24195e826020892be6b6404859d2', '2015-05-02 02:41:51', '2015-05-02 02:41:51', 410780858)  (14.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:41:51.762413"], ["updated_at", "2015-05-02 02:41:51.762413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:41:51.764223"], ["updated_at", "2015-05-02 02:41:51.764223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:41:51.765520"], ["updated_at", "2015-05-02 02:41:51.765520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:43:15.557832"], ["updated_at", "2015-05-02 02:43:15.557832"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 157], ["created_at", "2015-05-02 02:43:15.603764"], ["updated_at", "2015-05-02 02:43:15.603764"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 157], ["created_at", "2015-05-02 02:43:15.642548"], ["updated_at", "2015-05-02 02:43:15.642548"]]  (17.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 157], ["created_at", "2015-05-02 02:43:15.677149"], ["updated_at", "2015-05-02 02:43:15.677149"]]  (32.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 157], ["updated_at", "2015-05-02 02:43:15.713016"], ["id", 157]]  (36.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '61f98b90be1969a40ae91d9ca5018692', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '518933acba0c28830051eaa20d6df2a3', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd4f40da07118342d4a0c56772da6802a', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd3d478cd7d9f8980b0d3f083ae466986', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '582aaa560eab0e65c12ea750dde41737', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '846f3ee17d269f954f8c866e6b60cbe0', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1431bdb29a15aec040f8eed9d598ed98', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1803d36b22d8a3b38776189c42bdf245', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0b06b975f0873ec0cd6ccb68db0d2065', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c332f208305363d9e66b2afb2558f1a1', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3d000c77181a783703927a8d2df219e8', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fb076f774bc366d21cd9e4c5559794cf', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '92fe8216c449853a724ba69ea07ee935', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7604ca6c258f3a7c98744874556cd0d6', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b98f013b24dc9e32ebb9367a0ff333d3', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:43:15', '2015-05-02 02:43:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:43:15', '2015-05-02 02:43:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:43:15', '2015-05-02 02:43:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b6c623d3705d855b3a549a3663cf0fac', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2eb41725d67cf993173ae69e7b06081b', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bd2d44f6ec215c89f874671b1768e4ae', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '41eafbfdfceaf42ca6fa7d9de45eed7b', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '55a054abc43a512a3352ac8a20a8bf22', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '69ec7ea6690b7cca46a8916ba617b8f4', '2015-05-02 02:43:15', '2015-05-02 02:43:15', 410780858)  (30.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:43:16.043652"], ["updated_at", "2015-05-02 02:43:16.043652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 158], ["created_at", "2015-05-02 02:43:16.045649"], ["updated_at", "2015-05-02 02:43:16.045649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 158], ["created_at", "2015-05-02 02:43:16.047588"], ["updated_at", "2015-05-02 02:43:16.047588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 158], ["created_at", "2015-05-02 02:43:16.049459"], ["updated_at", "2015-05-02 02:43:16.049459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 158], ["updated_at", "2015-05-02 02:43:16.050821"], ["id", 158]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 158]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 158]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 158]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 158]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 158]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 158]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 158]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 158]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:43:16.065865"], ["updated_at", "2015-05-02 02:43:16.065865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:43:16.070170"], ["updated_at", "2015-05-02 02:43:16.070170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:43:16.071649"], ["updated_at", "2015-05-02 02:43:16.071649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:43:16.073042"], ["updated_at", "2015-05-02 02:43:16.073042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:43:16.083054"], ["updated_at", "2015-05-02 02:43:16.083054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:43:16.084532"], ["updated_at", "2015-05-02 02:43:16.084532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:43:16.085840"], ["updated_at", "2015-05-02 02:43:16.085840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 02:43:16.110094"], ["updated_at", "2015-05-02 02:43:16.110094"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 02:43:16.111260"], ["updated_at", "2015-05-02 02:43:16.111260"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 02:43:16.112343"], ["updated_at", "2015-05-02 02:43:16.112343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:43:16.126682"], ["updated_at", "2015-05-02 02:43:16.126682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 02:43:16.131546"], ["updated_at", "2015-05-02 02:43:16.131546"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 02:43:16.132672"], ["updated_at", "2015-05-02 02:43:16.132672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 02:43:16.137446"], ["updated_at", "2015-05-02 02:43:16.137446"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:43:16.144871"], ["updated_at", "2015-05-02 02:43:16.144871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 158], ["created_at", "2015-05-02 02:43:16.146825"], ["updated_at", "2015-05-02 02:43:16.146825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 158], ["created_at", "2015-05-02 02:43:16.148703"], ["updated_at", "2015-05-02 02:43:16.148703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 158], ["created_at", "2015-05-02 02:43:16.150501"], ["updated_at", "2015-05-02 02:43:16.150501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 158]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 02:43:16.155256"], ["updated_at", "2015-05-02 02:43:16.155256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 02:43:16.160337"], ["updated_at", "2015-05-02 02:43:16.160337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 02:43:16.163821"], ["updated_at", "2015-05-02 02:43:16.163821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157))  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:43:16.168075"], ["updated_at", "2015-05-02 02:43:16.168075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:43:16.169453"], ["updated_at", "2015-05-02 02:43:16.169453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:43:16.170743"], ["updated_at", "2015-05-02 02:43:16.170743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 157]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 157]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 157]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 157]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 157]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 157]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 157]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 157]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:46:52.161200"], ["updated_at", "2015-05-02 02:46:52.161200"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 158], ["created_at", "2015-05-02 02:46:52.208160"], ["updated_at", "2015-05-02 02:46:52.208160"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 158], ["created_at", "2015-05-02 02:46:52.235608"], ["updated_at", "2015-05-02 02:46:52.235608"]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 158], ["created_at", "2015-05-02 02:46:52.277157"], ["updated_at", "2015-05-02 02:46:52.277157"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 158], ["updated_at", "2015-05-02 02:46:52.291482"], ["id", 158]]  (20.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '854b950f2c435d25ade5d4f2fa150091', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3a68fc8632c287537dda29adb55dc3bc', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '01548ef754820bd1df01d1d7f6553de4', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '80df1bcbae776e4820f266aed60e2df3', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a1fdb1400ac90edc8f98bd0bbeb4635d', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b2c3f88b4d041f2df19cff103c4cff1', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f6213deecdbba1a5d5982d7753f13f5f', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6cdc97fa7eabf3349677891377cd1c92', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e8f11d62a7f13fcf0afdaf9028d6434d', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fdb3bfa5eda75eeb622a65cd019ad435', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c8dcd83505f9d34511746ac524d51e8d', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1815e36558fac03e92b7abb905bf182a', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9792d3e06710aece8405f3a380696f26', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7c704dbcfde4325b838b64b4c5d2d661', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c60277dfaa1b9c12205c81237143aa7e', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:46:52', '2015-05-02 02:46:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:46:52', '2015-05-02 02:46:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:46:52', '2015-05-02 02:46:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '22ffcd7df67282df0ee18055586c2a1b', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f953794fb18e7bb49ae884ca335e7027', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a29ab83ac2c7ee12e4d82f679b9d3cb1', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bd1718ba791f36b2d952dd470ad9709c', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3e18617473f937279812d46749fb51a2', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cfbef79048418b62b0ae81224b657419', '2015-05-02 02:46:52', '2015-05-02 02:46:52', 410780858)  (13.0ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0003_can take a block with records to skip ---------------------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:47:32.450981"], ["updated_at", "2015-05-02 02:47:32.450981"]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 159], ["created_at", "2015-05-02 02:47:32.498490"], ["updated_at", "2015-05-02 02:47:32.498490"]]  (17.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 159], ["created_at", "2015-05-02 02:47:32.531420"], ["updated_at", "2015-05-02 02:47:32.531420"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 159], ["created_at", "2015-05-02 02:47:32.561790"], ["updated_at", "2015-05-02 02:47:32.561790"]]  (12.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 159], ["updated_at", "2015-05-02 02:47:32.577244"], ["id", 159]]  (10.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cac048abfb81711819779ca6c46f8872', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ff8709199da823d86bda60dcc6b7a8c6', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '226de6abf855350e8235e6528e8904cd', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '82bee9945ac7d28ef6de9055c2112696', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f81b399e6d0dd2b515edc8c0add0e016', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '49bb4f53e6b4151d4c1614c935ada756', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0241b053bf5aa826866e5dd895a7e092', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f30a215a9223b3619b866290b2018120', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'af4d3e4dc12d0ec929e1784b0bf75d14', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b673a83c0964af6be4bf16c79fb9c06f', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cc79f2cbe9b1c264a96924f1c1d53279', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'cd8dd613f1df52784c161ac486dcda62', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fa54a3b1bf6bb76a6b266f80087888cc', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b419963234381c975d56b207bec1d608', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '320ca5176f847667342429ce0ade3706', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:47:32', '2015-05-02 02:47:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:47:32', '2015-05-02 02:47:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:47:32', '2015-05-02 02:47:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bfca77c61c65689305aaad0e69ab97f4', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b536d6450bb4d958b606c93ad6f3c724', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dd4ae83a766bb645863628795d298aeb', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '286bbfa8fe085eab19cd141e5bfff8e5', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2782d4726c9f5207d3a339897fbcb98d', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'aea76abbd393b4d029df68e269b16fae', '2015-05-02 02:47:32', '2015-05-02 02:47:32', 410780858)  (29.5ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0003_can take a block with records to skip --------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.4ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 159]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 159]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 159]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 159]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:47:59.543905"], ["updated_at", "2015-05-02 02:47:59.543905"]]  (26.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 160], ["created_at", "2015-05-02 02:47:59.604406"], ["updated_at", "2015-05-02 02:47:59.604406"]]  (24.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 160], ["created_at", "2015-05-02 02:47:59.648509"], ["updated_at", "2015-05-02 02:47:59.648509"]]  (26.3ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 160], ["created_at", "2015-05-02 02:47:59.697090"], ["updated_at", "2015-05-02 02:47:59.697090"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 160], ["updated_at", "2015-05-02 02:47:59.712217"], ["id", 160]]  (12.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd406d3f439d7fc99b51f683a2d729b98', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7116338e506bdea81cf899ec221b1fa6', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a6b4a53baa4ba703172655ea316f0426', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aea1cc842c84077519cf2e76897fa9b8', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c30442172a6a3f2f9ac86ae81f3c0d94', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6b062fb2975149adb3da7a7b7f31fdc9', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2e9ef7dfc65c48ac06bcf72bb2b603fc', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '39d5f194413a673d139057338b9a990d', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '11cde7b75151b9c663b5e58672c894f6', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '680bdb65b3557b733a877df206e2586c', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b0c03f3b151c3dceb84449ec5de96d4e', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '61140d794796a0d037fd695827281840', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a5494d7ea41de51881edca0292a7b98', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f454d0f25486f6c26978f1782f30d17c', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9af314637618323cc6f67fd2a7110287', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:47:59', '2015-05-02 02:47:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:47:59', '2015-05-02 02:47:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:47:59', '2015-05-02 02:47:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '76095e93eaf8292b7fc0222fafa9fc7b', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b3de0af6b2254cfd01308b420853956c', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'efb6934712f541d23b908c1553c9a088', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3f9c35a7ffc5a6b100a93fca2bfba188', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'aaae9b25d16b8fc9bb989994988b9164', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '66f1706a457ccbac67341bb26dcd4d3a', '2015-05-02 02:47:59', '2015-05-02 02:47:59', 410780858)  (18.6ms) commit transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0003_can take a block with records to skip --------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 160]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 160]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 160]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 160]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:48:45.479748"], ["updated_at", "2015-05-02 02:48:45.479748"]]  (15.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 161], ["created_at", "2015-05-02 02:48:45.527039"], ["updated_at", "2015-05-02 02:48:45.527039"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 161], ["created_at", "2015-05-02 02:48:45.564448"], ["updated_at", "2015-05-02 02:48:45.564448"]]  (11.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 161], ["created_at", "2015-05-02 02:48:45.586012"], ["updated_at", "2015-05-02 02:48:45.586012"]]  (22.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 161], ["updated_at", "2015-05-02 02:48:45.610578"], ["id", 161]]  (25.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e59f55adcfc607d8eab39a9a012b2e29', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c26ea866a140422de86dc3e3e12e30a6', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '718e4d15cae7effd120c0ac75963aee7', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'abc5181abd1c2afccb675e774b398fd0', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd8caeb7aec2671b9c82f012dba9c2b32', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd38f05252ae3f9c49f15ddcac1e0f96e', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '82b3dda1e75252bfed0e8ce5cc95caa5', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'dd6ce7fcb3001c9982ba08323c8f4548', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '460d00ba8578ee81a696ea8b6d94a2a1', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0b8ed03ee38ffe31e284094f7f041d95', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cd195a0b4eb64adb0776bbad7c876ee4', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f3c2ed458182bdf6d1da8d2fc125bcef', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'defa2d97fe1b3f1b85051c322986853d', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ddded27a8374f549e140276548997d48', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f9e764047f2bd4b6799831637009eb6', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:48:45', '2015-05-02 02:48:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:48:45', '2015-05-02 02:48:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:48:45', '2015-05-02 02:48:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6bcb40c805dd62f309d2b70fc85ba2e7', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5227d99441005ed80135e91d8bb24466', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9f528a6420c7785f952ce4e5373bd9db', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '73f4928745267ce0f61422e2d9d4923d', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fa05329040cc357f1d769834c7fc4543', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0a5365abb28f90fd82b05abbc9b49ca0', '2015-05-02 02:48:45', '2015-05-02 02:48:45', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:48:45.759448"], ["updated_at", "2015-05-02 02:48:45.759448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 02:48:45.773352"], ["updated_at", "2015-05-02 02:48:45.773352"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 02:48:45.774779"], ["updated_at", "2015-05-02 02:48:45.774779"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 02:48:45.775791"], ["updated_at", "2015-05-02 02:48:45.775791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 02:48:45.801716"], ["updated_at", "2015-05-02 02:48:45.801716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 02:48:45.807190"], ["updated_at", "2015-05-02 02:48:45.807190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 02:48:45.811365"], ["updated_at", "2015-05-02 02:48:45.811365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161))  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:48:45.822282"], ["updated_at", "2015-05-02 02:48:45.822282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:48:45.829393"], ["updated_at", "2015-05-02 02:48:45.829393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:48:45.830937"], ["updated_at", "2015-05-02 02:48:45.830937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:48:45.839821"], ["updated_at", "2015-05-02 02:48:45.839821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 162], ["created_at", "2015-05-02 02:48:45.841947"], ["updated_at", "2015-05-02 02:48:45.841947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 162], ["created_at", "2015-05-02 02:48:45.843998"], ["updated_at", "2015-05-02 02:48:45.843998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 162], ["created_at", "2015-05-02 02:48:45.845811"], ["updated_at", "2015-05-02 02:48:45.845811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:48:45.860468"], ["updated_at", "2015-05-02 02:48:45.860468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:48:45.862752"], ["updated_at", "2015-05-02 02:48:45.862752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:48:45.864209"], ["updated_at", "2015-05-02 02:48:45.864209"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:48:45.865489"], ["updated_at", "2015-05-02 02:48:45.865489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:48:45.868745"], ["updated_at", "2015-05-02 02:48:45.868745"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 162], ["created_at", "2015-05-02 02:48:45.871006"], ["updated_at", "2015-05-02 02:48:45.871006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 162], ["created_at", "2015-05-02 02:48:45.873007"], ["updated_at", "2015-05-02 02:48:45.873007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 162], ["created_at", "2015-05-02 02:48:45.874971"], ["updated_at", "2015-05-02 02:48:45.874971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 162], ["updated_at", "2015-05-02 02:48:45.876309"], ["id", 162]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 162]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 162]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 162]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 162]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 162]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 162]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 162]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 162]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 162]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 162]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 162]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:48:45.889516"], ["updated_at", "2015-05-02 02:48:45.889516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:48:45.891022"], ["updated_at", "2015-05-02 02:48:45.891022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:48:45.892352"], ["updated_at", "2015-05-02 02:48:45.892352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 02:48:45.897950"], ["updated_at", "2015-05-02 02:48:45.897950"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 02:48:45.899154"], ["updated_at", "2015-05-02 02:48:45.899154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 02:48:45.906271"], ["updated_at", "2015-05-02 02:48:45.906271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 161]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 161]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 161]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 161]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0003_can take a block with records to skip ---------------------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 161]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 161]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 161]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 161]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.0ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:49:36.934375"], ["updated_at", "2015-05-02 02:49:36.934375"]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 162], ["created_at", "2015-05-02 02:49:36.985433"], ["updated_at", "2015-05-02 02:49:36.985433"]]  (41.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 162], ["created_at", "2015-05-02 02:49:37.043672"], ["updated_at", "2015-05-02 02:49:37.043672"]]  (28.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 162], ["created_at", "2015-05-02 02:49:37.097462"], ["updated_at", "2015-05-02 02:49:37.097462"]]  (33.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 162], ["updated_at", "2015-05-02 02:49:37.133367"], ["id", 162]]  (21.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eed250f043e098504fa75e5a4dd735e9', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e824f09759e19d51c14f60d7e770824', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7264c793edc5e3c230983084aa0deb8b', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e01db69eb9a85f78ef7cedcd4345d502', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '45f2f4f93e0df02efdb1386b8a939ada', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e1b0666c902b26b3dae64e18cdc8d6a8', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ea0107cf83b59f915aff25ab4bab2a2f', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bce00c0416d6261824ba28b799963ce8', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '746dcd4dcffe7ff72c9c8b04dc2f37c5', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4489b60da0992a7fb741698e94f8718f', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e09f7d2d2135845897482ca3469dcbc9', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '200d1cb6c36416cf3ce3f6db75a98c8b', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '41af9556db983dc75f3d5d76c352e076', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c657d954d5fc36228d8230ea917b5744', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f69c3145527a9259778387973f6f2c1c', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:49:37', '2015-05-02 02:49:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:49:37', '2015-05-02 02:49:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:49:37', '2015-05-02 02:49:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '12492032aa86c02f9b566c03c9ad22a5', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '615a4da788ad1223c083e0e4a724f7f1', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a049b770cbf8adfd16d0d91b2ac47f03', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'caab1ef869a55619204fd98000490cec', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9f171932cc8386677dc2518e8b7e6a72', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f4de33112c2ad9fff827d309dd3ea447', '2015-05-02 02:49:37', '2015-05-02 02:49:37', 410780858)  (19.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0003_can take a block with records to skip --------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 162]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 162]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 162]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 162]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:50:25.659287"], ["updated_at", "2015-05-02 02:50:25.659287"]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 163], ["created_at", "2015-05-02 02:50:25.706436"], ["updated_at", "2015-05-02 02:50:25.706436"]]  (22.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 163], ["created_at", "2015-05-02 02:50:25.748347"], ["updated_at", "2015-05-02 02:50:25.748347"]]  (25.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 163], ["created_at", "2015-05-02 02:50:25.795894"], ["updated_at", "2015-05-02 02:50:25.795894"]]  (27.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 163], ["updated_at", "2015-05-02 02:50:25.825822"], ["id", 163]]  (23.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3f0b257824e6c55e26167b04393bb847', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aee4a6b7d01b28df14da7cb403f23d79', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a26356041031eb75d698e9affc5568bb', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ce6be0614ecf7c142b5cb3a0a68c5f43', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '42d1b0872c7468b7c87292e4a455adc8', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a4268ea8cefc6cc56407d1c7c6645d55', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd9b558552ebbf364bc716ab3ad24d943', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1a73277a5e54842386f660e14ead67f8', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'bc92a9f48d901533cc688e34b19f7d6c', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '50c7a49beefe37157aadb7919d5b9725', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f7b74ca818f8b5247de582092b480bf8', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd890c240c3ff02ee465172fd5f5cd4b8', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '53106ef5cf75c2786c9be8caa86cb666', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd043280087043a6ebf3df6bea7a78467', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1ee8e355025ae2acc431eb1fd98274fb', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:50:25', '2015-05-02 02:50:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:50:25', '2015-05-02 02:50:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:50:25', '2015-05-02 02:50:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f598c9b1767e09a4da175c59626f7606', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f31ece7c1fc5ce35af9734d2af40f91e', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e96590ce6842d4a7f18c8d1095844194', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a1c49eb90e351d4875c4f160de14f0a4', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7c4e9dab3c6f25da2a79334d85df2959', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2dbf0fdb6077b4e37eed144c3dabdacc', '2015-05-02 02:50:25', '2015-05-02 02:50:25', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0003_can take a block with records to skip --------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 163]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 163]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 163]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 163]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:51:21.293059"], ["updated_at", "2015-05-02 02:51:21.293059"]]  (20.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 164], ["created_at", "2015-05-02 02:51:21.340141"], ["updated_at", "2015-05-02 02:51:21.340141"]]  (20.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 164], ["created_at", "2015-05-02 02:51:21.385871"], ["updated_at", "2015-05-02 02:51:21.385871"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 164], ["created_at", "2015-05-02 02:51:21.416467"], ["updated_at", "2015-05-02 02:51:21.416467"]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 164], ["updated_at", "2015-05-02 02:51:21.436226"], ["id", 164]]  (12.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fa7809c198e89212ff53b41426c91cfc', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1dcc47779a22b166736f1230944f58d1', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c0da3b77b5bd7259ed00a9f9b2226833', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dfa3f97bad2882ae70be797c602518c5', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be6f912cf77d767c6e2b32afc589e874', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ace410f83ac87b4d255604d96b73df55', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '038f2756ca6890c561c72f3a38a30c64', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'aa378aaf8f6d6c630297d9dbb5a0c66b', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '209b6de6c7b85988f05c1e3635a0539e', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ac5ddb0faaca9f4191adc91673993488', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'de00f1d0349fccd67838de3ab6536288', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9d204e419a7e86384833b54a01c76e18', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd3ac37f56d2758dcddc5d2f62696a735', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0d80c47d34c32b26454a37710c527f0b', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4e9555286223a59820d50141c8d5665d', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:51:21', '2015-05-02 02:51:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:51:21', '2015-05-02 02:51:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 02:51:21', '2015-05-02 02:51:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '75045572e90625c32b1fdf68a0798dfa', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2a8c27b1407dd3d1d6a26044550bbcc8', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6fa7525e9d2d4885814e0dc009ca5c80', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '646442ac1abc431b2cf88d6996e3485f', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4e79a980a51c89bd6e109ae907bb4e57', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '10013c74fb246d0fa5ea5ba1088f0d23', '2015-05-02 02:51:21', '2015-05-02 02:51:21', 410780858)  (19.1ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 02:51:21.577309"], ["updated_at", "2015-05-02 02:51:21.577309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 02:51:21.583096"], ["updated_at", "2015-05-02 02:51:21.583096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 02:51:21.587164"], ["updated_at", "2015-05-02 02:51:21.587164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:51:21.591638"], ["updated_at", "2015-05-02 02:51:21.591638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 165], ["created_at", "2015-05-02 02:51:21.593522"], ["updated_at", "2015-05-02 02:51:21.593522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 165], ["created_at", "2015-05-02 02:51:21.595423"], ["updated_at", "2015-05-02 02:51:21.595423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 165], ["created_at", "2015-05-02 02:51:21.597251"], ["updated_at", "2015-05-02 02:51:21.597251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 165], ["updated_at", "2015-05-02 02:51:21.598627"], ["id", 165]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 165]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 165]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 165]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 165]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 165]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 165]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 165]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 165]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 02:51:21.630351"], ["updated_at", "2015-05-02 02:51:21.630351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:51:21.634269"], ["updated_at", "2015-05-02 02:51:21.634269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 165], ["created_at", "2015-05-02 02:51:21.636136"], ["updated_at", "2015-05-02 02:51:21.636136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 165], ["created_at", "2015-05-02 02:51:21.637956"], ["updated_at", "2015-05-02 02:51:21.637956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 165], ["created_at", "2015-05-02 02:51:21.640233"], ["updated_at", "2015-05-02 02:51:21.640233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 02:51:21.654185"], ["updated_at", "2015-05-02 02:51:21.654185"]] SQL (0.3ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 02:51:21.656632"], ["updated_at", "2015-05-02 02:51:21.656632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:51:21.661886"], ["updated_at", "2015-05-02 02:51:21.661886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:51:21.665046"], ["updated_at", "2015-05-02 02:51:21.665046"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:51:21.666552"], ["updated_at", "2015-05-02 02:51:21.666552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:51:21.667903"], ["updated_at", "2015-05-02 02:51:21.667903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:51:21.670536"], ["updated_at", "2015-05-02 02:51:21.670536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:51:21.671976"], ["updated_at", "2015-05-02 02:51:21.671976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:51:21.673466"], ["updated_at", "2015-05-02 02:51:21.673466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 02:51:21.680966"], ["updated_at", "2015-05-02 02:51:21.680966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 02:51:21.689759"], ["updated_at", "2015-05-02 02:51:21.689759"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 02:51:21.690951"], ["updated_at", "2015-05-02 02:51:21.690951"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 02:51:21.691898"], ["updated_at", "2015-05-02 02:51:21.691898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 02:51:21.713629"], ["updated_at", "2015-05-02 02:51:21.713629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 02:51:21.715553"], ["updated_at", "2015-05-02 02:51:21.715553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 02:51:21.716886"], ["updated_at", "2015-05-02 02:51:21.716886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 164]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 164]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 164]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 164]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 164]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 164]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 164]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 164]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:09:59.917989"], ["updated_at", "2015-05-02 13:09:59.917989"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 165], ["created_at", "2015-05-02 13:09:59.962193"], ["updated_at", "2015-05-02 13:09:59.962193"]]  (30.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 165], ["created_at", "2015-05-02 13:10:00.016648"], ["updated_at", "2015-05-02 13:10:00.016648"]]  (25.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 165], ["created_at", "2015-05-02 13:10:00.057185"], ["updated_at", "2015-05-02 13:10:00.057185"]]  (21.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 165], ["updated_at", "2015-05-02 13:10:00.081492"], ["id", 165]]  (25.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f09321789fc182da08a793f9792ac530', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b788e32f2ec3dbce8cf7cd112b8e0164', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0ff5dff526bcda75bff059fdd96cbbd', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '709bfb6ba49202ebd68e5e4961ac9878', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a338b062e2a301a8e24cff83be31a222', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '92de8974ecd7553629e0fc7fcc354cb7', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd20de61f59ec460538c585dabd3b09ce', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '92d7b4a812db970ba1c4b1c3bff1a308', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e79b1594b5afed4a4fc2e46f6340f66d', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '38e1e2afdf3d5fa7d56fdf07fbb0ceb5', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd482df01ce5e973d12ab74761c51e99c', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '59b5b5ca75893d34183408c669d3922f', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b3cb128341a26c09f92e0f8d2516054a', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '92a769fd26a261d147447e3ccfaa21c7', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f8a9ae839bde1bcd3bae214bface3bb', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:10:00', '2015-05-02 13:10:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:10:00', '2015-05-02 13:10:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:10:00', '2015-05-02 13:10:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '378e45c8ffde06ce8e77fc1c242aa78b', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '48488ce77ba8dccef74f2896c3e3e7a1', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '559395cb4f083b5d6578f780e4d1db5b', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9a3b4022aee72a0561c07b48ad573194', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fbf7b879e7103e33141fe1c42e45178d', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3643bc772487d206928b068ad34f7cea', '2015-05-02 13:10:00', '2015-05-02 13:10:00', 410780858)  (12.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 165]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 165]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 165]] Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 165]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 165]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 165]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 165]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 165]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:10:00.351363"], ["updated_at", "2015-05-02 13:10:00.351363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:10:00.352948"], ["updated_at", "2015-05-02 13:10:00.352948"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:10:00.354542"], ["updated_at", "2015-05-02 13:10:00.354542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:00.363256"], ["updated_at", "2015-05-02 13:10:00.363256"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:10:00.388041"], ["updated_at", "2015-05-02 13:10:00.388041"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:10:00.389315"], ["updated_at", "2015-05-02 13:10:00.389315"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:10:00.390318"], ["updated_at", "2015-05-02 13:10:00.390318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:00.416245"], ["updated_at", "2015-05-02 13:10:00.416245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 166], ["created_at", "2015-05-02 13:10:00.418296"], ["updated_at", "2015-05-02 13:10:00.418296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 166], ["created_at", "2015-05-02 13:10:00.420184"], ["updated_at", "2015-05-02 13:10:00.420184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 166], ["created_at", "2015-05-02 13:10:00.421995"], ["updated_at", "2015-05-02 13:10:00.421995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:00.426796"], ["updated_at", "2015-05-02 13:10:00.426796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 166], ["created_at", "2015-05-02 13:10:00.428674"], ["updated_at", "2015-05-02 13:10:00.428674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 166], ["created_at", "2015-05-02 13:10:00.430550"], ["updated_at", "2015-05-02 13:10:00.430550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 166], ["created_at", "2015-05-02 13:10:00.432290"], ["updated_at", "2015-05-02 13:10:00.432290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 166], ["updated_at", "2015-05-02 13:10:00.433594"], ["id", 166]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 166]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 166]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 166]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 166]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 166]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 166]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 166]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 166]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:00.445877"], ["updated_at", "2015-05-02 13:10:00.445877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:10:00.449928"], ["updated_at", "2015-05-02 13:10:00.449928"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:10:00.451097"], ["updated_at", "2015-05-02 13:10:00.451097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:10:00.453952"], ["updated_at", "2015-05-02 13:10:00.453952"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:10:00.455447"], ["updated_at", "2015-05-02 13:10:00.455447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:10:00.462333"], ["updated_at", "2015-05-02 13:10:00.462333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:10:00.467831"], ["updated_at", "2015-05-02 13:10:00.467831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:10:00.469183"], ["updated_at", "2015-05-02 13:10:00.469183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:10:00.470472"], ["updated_at", "2015-05-02 13:10:00.470472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:10:00.480250"], ["updated_at", "2015-05-02 13:10:00.480250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:10:00.483728"], ["updated_at", "2015-05-02 13:10:00.483728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:10:00.487343"], ["updated_at", "2015-05-02 13:10:00.487343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:10:00.490863"], ["updated_at", "2015-05-02 13:10:00.490863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:11.392843"], ["updated_at", "2015-05-02 13:10:11.392843"]]  (29.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 166], ["created_at", "2015-05-02 13:10:11.459280"], ["updated_at", "2015-05-02 13:10:11.459280"]]  (27.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 166], ["created_at", "2015-05-02 13:10:11.514183"], ["updated_at", "2015-05-02 13:10:11.514183"]]  (24.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 166], ["created_at", "2015-05-02 13:10:11.553643"], ["updated_at", "2015-05-02 13:10:11.553643"]]  (18.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 166], ["updated_at", "2015-05-02 13:10:11.574655"], ["id", 166]]  (20.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b207bcf62540c5f7f76067f06e10bcdc', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '218d65c2e1968521cb4c62cb4b4a390e', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '61f0f11c5a3cc511d6ca5db20024e398', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '40f0c05ba06e7b350be427914c23044e', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1a1c29cb668871a1c377e0bbdf861821', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ab5ba6b376b020b4739517bdb58b4339', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '608fdf243e1845dc302cfc2cd9b021a3', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '131cf695b9751ad472a693f75efdc889', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9f1d37582f27814a7c7867b9aae83ea7', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '03161fb5cd38192ff4c274620b8573c8', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '86243779b9b37635246d308fb6a119f1', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '44edb53ff01477cb787274984f7b3bb8', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5fdffa57f2d825cf0edf5e0cfd8773f9', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2a770ffe4923e6014f3c7454f3647b9f', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a200cce2c5b56058098b8bf1a2aa7112', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:10:11', '2015-05-02 13:10:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:10:11', '2015-05-02 13:10:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:10:11', '2015-05-02 13:10:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ab3bc4848c9041bd2e1580f770c64617', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c55085960d4973be340476606a5679ff', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '31b91c23fdeffa06d92e3d0db62fd477', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7a80a051dad6c781c19bf879167fdd49', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '79dc93238f250593e547b161b513f897', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '19bc37d3df2e32838f480c00702c2556', '2015-05-02 13:10:11', '2015-05-02 13:10:11', 410780858)  (21.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.4ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 166]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 166]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 166]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 166]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 166]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 166]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 166]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 166]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:11.848086"], ["updated_at", "2015-05-02 13:10:11.848086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:10:11.853651"], ["updated_at", "2015-05-02 13:10:11.853651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:10:11.855224"], ["updated_at", "2015-05-02 13:10:11.855224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:10:11.856548"], ["updated_at", "2015-05-02 13:10:11.856548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:10:11.862821"], ["updated_at", "2015-05-02 13:10:11.862821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:10:11.867664"], ["updated_at", "2015-05-02 13:10:11.867664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:10:11.871365"], ["updated_at", "2015-05-02 13:10:11.871365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:11.876741"], ["updated_at", "2015-05-02 13:10:11.876741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 167], ["created_at", "2015-05-02 13:10:11.878640"], ["updated_at", "2015-05-02 13:10:11.878640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 167], ["created_at", "2015-05-02 13:10:11.880516"], ["updated_at", "2015-05-02 13:10:11.880516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 167], ["created_at", "2015-05-02 13:10:11.882355"], ["updated_at", "2015-05-02 13:10:11.882355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:10:11.896728"], ["updated_at", "2015-05-02 13:10:11.896728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:10:11.898246"], ["updated_at", "2015-05-02 13:10:11.898246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:10:11.899572"], ["updated_at", "2015-05-02 13:10:11.899572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:11.903884"], ["updated_at", "2015-05-02 13:10:11.903884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:10:11.911071"], ["updated_at", "2015-05-02 13:10:11.911071"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:10:11.912259"], ["updated_at", "2015-05-02 13:10:11.912259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:10:11.926223"], ["updated_at", "2015-05-02 13:10:11.926223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:10:11.935412"], ["updated_at", "2015-05-02 13:10:11.935412"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:10:11.936540"], ["updated_at", "2015-05-02 13:10:11.936540"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:10:11.937498"], ["updated_at", "2015-05-02 13:10:11.937498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:11.958043"], ["updated_at", "2015-05-02 13:10:11.958043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 167], ["created_at", "2015-05-02 13:10:11.959989"], ["updated_at", "2015-05-02 13:10:11.959989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 167], ["created_at", "2015-05-02 13:10:11.961787"], ["updated_at", "2015-05-02 13:10:11.961787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 167], ["created_at", "2015-05-02 13:10:11.963568"], ["updated_at", "2015-05-02 13:10:11.963568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 167], ["updated_at", "2015-05-02 13:10:11.964893"], ["id", 167]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 167]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 167]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 167]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 167]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 167]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 167]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 167]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 167]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:10:11.981517"], ["updated_at", "2015-05-02 13:10:11.981517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:10:11.982994"], ["updated_at", "2015-05-02 13:10:11.982994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:10:11.984259"], ["updated_at", "2015-05-02 13:10:11.984259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.0ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:22.728710"], ["updated_at", "2015-05-02 13:10:22.728710"]]  (18.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 167], ["created_at", "2015-05-02 13:10:22.777249"], ["updated_at", "2015-05-02 13:10:22.777249"]]  (16.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 167], ["created_at", "2015-05-02 13:10:22.815024"], ["updated_at", "2015-05-02 13:10:22.815024"]]  (22.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 167], ["created_at", "2015-05-02 13:10:22.847027"], ["updated_at", "2015-05-02 13:10:22.847027"]]  (19.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 167], ["updated_at", "2015-05-02 13:10:22.869067"], ["id", 167]]  (18.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5db51cb29441805ddca0ef9c0543b700', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'daf65ca60c6452294a23436a0bc70eda', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4af37591b6b58fe170a1760a9bb3223b', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ce29c7d21b9cbcbbdcf3692930112d9a', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bbdd7633b93f111a346e8771c0139d41', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd2ca22c03bf29842a19b370dbd99fb2f', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd3e60284bdcb393388768667a242e34d', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6274d85d75add93e83d6cf3b8fb87594', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9a7841e623f1b3b23375beea9aa5651c', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '35a2694b2e5dd8ad9d41afa962ae174d', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0bbdc1d196152e4e4345acd4deeec9cc', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bf7608eee2ac6e07c38f482c250abd19', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b0b9fde96ae44f7b5f8c97e0109f2334', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5afc2d0a2d2f8538540bbfc09996339a', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e19b57582fb5bd35beb23dc2744ae2f2', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:10:22', '2015-05-02 13:10:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:10:22', '2015-05-02 13:10:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:10:22', '2015-05-02 13:10:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd153687fa4c344bb9b10e9e487666a89', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8b3722146dd24ce08a62125eb737b146', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '46dd6c7cda9a51e9d11a11e0bf828012', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5b0ebca42b194a7bddf91ae2a4c6daf6', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fd7b8c1d0fe99154d1245accdffb9f9b', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fa01b82d9c5f44d436cd237528e7fcee', '2015-05-02 13:10:22', '2015-05-02 13:10:22', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:10:23.001754"], ["updated_at", "2015-05-02 13:10:23.001754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:10:23.009016"], ["updated_at", "2015-05-02 13:10:23.009016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:10:23.014303"], ["updated_at", "2015-05-02 13:10:23.014303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:10:23.018471"], ["updated_at", "2015-05-02 13:10:23.018471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167))  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:10:23.022901"], ["updated_at", "2015-05-02 13:10:23.022901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:10:23.024277"], ["updated_at", "2015-05-02 13:10:23.024277"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:10:23.025651"], ["updated_at", "2015-05-02 13:10:23.025651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:10:23.047921"], ["updated_at", "2015-05-02 13:10:23.047921"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:10:23.049204"], ["updated_at", "2015-05-02 13:10:23.049204"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:10:23.050211"], ["updated_at", "2015-05-02 13:10:23.050211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:10:23.077897"], ["updated_at", "2015-05-02 13:10:23.077897"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:10:23.079139"], ["updated_at", "2015-05-02 13:10:23.079139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:23.099184"], ["updated_at", "2015-05-02 13:10:23.099184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 168], ["created_at", "2015-05-02 13:10:23.101253"], ["updated_at", "2015-05-02 13:10:23.101253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 168], ["created_at", "2015-05-02 13:10:23.103197"], ["updated_at", "2015-05-02 13:10:23.103197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 168], ["created_at", "2015-05-02 13:10:23.105012"], ["updated_at", "2015-05-02 13:10:23.105012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:10:23.115894"], ["updated_at", "2015-05-02 13:10:23.115894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:10:23.117285"], ["updated_at", "2015-05-02 13:10:23.117285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:10:23.118598"], ["updated_at", "2015-05-02 13:10:23.118598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:23.125005"], ["updated_at", "2015-05-02 13:10:23.125005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 168], ["created_at", "2015-05-02 13:10:23.127092"], ["updated_at", "2015-05-02 13:10:23.127092"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 168], ["created_at", "2015-05-02 13:10:23.129391"], ["updated_at", "2015-05-02 13:10:23.129391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 168], ["created_at", "2015-05-02 13:10:23.131340"], ["updated_at", "2015-05-02 13:10:23.131340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 168], ["updated_at", "2015-05-02 13:10:23.132718"], ["id", 168]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 168]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 168]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 168]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 168]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 168]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 168]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 168]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 168]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:10:23.145849"], ["updated_at", "2015-05-02 13:10:23.145849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:10:23.147389"], ["updated_at", "2015-05-02 13:10:23.147389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:10:23.148727"], ["updated_at", "2015-05-02 13:10:23.148727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:23.153305"], ["updated_at", "2015-05-02 13:10:23.153305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:10:23.159535"], ["updated_at", "2015-05-02 13:10:23.159535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 167]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 167]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 167]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 167]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 167]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 167]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 167]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 167]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:11:00.163546"], ["updated_at", "2015-05-02 13:11:00.163546"]]  (23.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 168], ["created_at", "2015-05-02 13:11:00.218378"], ["updated_at", "2015-05-02 13:11:00.218378"]]  (28.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 168], ["created_at", "2015-05-02 13:11:00.268156"], ["updated_at", "2015-05-02 13:11:00.268156"]]  (24.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 168], ["created_at", "2015-05-02 13:11:00.303083"], ["updated_at", "2015-05-02 13:11:00.303083"]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 168], ["updated_at", "2015-05-02 13:11:00.323011"], ["id", 168]]  (17.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c05fb0216b5d151bb0ae3221197ede9f', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0273e3f6721be9a37a5d23a06b657ff8', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eb20d6ff270f12ce951992b2c0e96d4a', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '645377652d6377ca8682bfb892657a40', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '39004b6a442ce00f9b6232cf79226784', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '82da8d84df2b2070ef1ceb123dcb13e8', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd4d6ac599d0c0c7df868ddceb806c75a', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1e6de8ca535e12398e27c1c76fc6176a', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '34a90b7a0a0de874bea83103f85d001b', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '876d1a6437b6cefd53359b2f9fc7a435', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'de3643729640c2a4d414818742bb2ba8', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '054371e88f7d746971af5e96dfa9248c', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '43cbd4a6603bedb1f3c5b3d0ffb067f9', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '52f4ac9bbcaf2085f30c87ee2a1f2d5e', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b26ad06c442c16511fb771a9191f5a80', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:11:00', '2015-05-02 13:11:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:11:00', '2015-05-02 13:11:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:11:00', '2015-05-02 13:11:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'efa13fbb4f87e61b9bdba12efb7d9451', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8e1a9eec56adb330a3c8906d6f96ef25', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1c60331fc433c0f1809315428e209779', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '852924ee8759b3dc36ed572c17d96ea9', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ca0e7b0d2b494be59b8cc6e767d208cd', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '189b89b413ab32526666ace0f45bd0d1', '2015-05-02 13:11:00', '2015-05-02 13:11:00', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:11:00.454229"], ["updated_at", "2015-05-02 13:11:00.454229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:11:00.455880"], ["updated_at", "2015-05-02 13:11:00.455880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:11:00.457182"], ["updated_at", "2015-05-02 13:11:00.457182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:11:00.462743"], ["updated_at", "2015-05-02 13:11:00.462743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 169], ["created_at", "2015-05-02 13:11:00.464754"], ["updated_at", "2015-05-02 13:11:00.464754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 169], ["created_at", "2015-05-02 13:11:00.466689"], ["updated_at", "2015-05-02 13:11:00.466689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 169], ["created_at", "2015-05-02 13:11:00.468543"], ["updated_at", "2015-05-02 13:11:00.468543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 169], ["updated_at", "2015-05-02 13:11:00.469850"], ["id", 169]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 169]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 169]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 169]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 169]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 169]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 169]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 169]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 169]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:11:00.484709"], ["updated_at", "2015-05-02 13:11:00.484709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:11:00.486254"], ["updated_at", "2015-05-02 13:11:00.486254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:11:00.487609"], ["updated_at", "2015-05-02 13:11:00.487609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:11:00.494891"], ["updated_at", "2015-05-02 13:11:00.494891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 169], ["created_at", "2015-05-02 13:11:00.496920"], ["updated_at", "2015-05-02 13:11:00.496920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 169], ["created_at", "2015-05-02 13:11:00.498836"], ["updated_at", "2015-05-02 13:11:00.498836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 169], ["created_at", "2015-05-02 13:11:00.500627"], ["updated_at", "2015-05-02 13:11:00.500627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:11:00.508707"], ["updated_at", "2015-05-02 13:11:00.508707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:11:00.512581"], ["updated_at", "2015-05-02 13:11:00.512581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:11:00.516196"], ["updated_at", "2015-05-02 13:11:00.516196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168))  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:11:00.520663"], ["updated_at", "2015-05-02 13:11:00.520663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:11:00.522148"], ["updated_at", "2015-05-02 13:11:00.522148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:11:00.523493"], ["updated_at", "2015-05-02 13:11:00.523493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:11:00.543626"], ["updated_at", "2015-05-02 13:11:00.543626"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:11:00.544869"], ["updated_at", "2015-05-02 13:11:00.544869"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:11:00.550548"], ["updated_at", "2015-05-02 13:11:00.550548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:11:00.556005"], ["updated_at", "2015-05-02 13:11:00.556005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:11:00.562298"], ["updated_at", "2015-05-02 13:11:00.562298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:11:00.592751"], ["updated_at", "2015-05-02 13:11:00.592751"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:11:00.593923"], ["updated_at", "2015-05-02 13:11:00.593923"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:11:00.594929"], ["updated_at", "2015-05-02 13:11:00.594929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 168]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 168]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 168]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 168]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 168]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 168]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 168]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 168]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:17:52.536402"], ["updated_at", "2015-05-02 13:17:52.536402"]]  (19.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 169], ["created_at", "2015-05-02 13:17:52.585427"], ["updated_at", "2015-05-02 13:17:52.585427"]]  (33.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 169], ["created_at", "2015-05-02 13:17:52.639839"], ["updated_at", "2015-05-02 13:17:52.639839"]]  (27.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 169], ["created_at", "2015-05-02 13:17:52.681074"], ["updated_at", "2015-05-02 13:17:52.681074"]]  (26.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 169], ["updated_at", "2015-05-02 13:17:52.709601"], ["id", 169]]  (19.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '25b03aaeb50d54f4cb4cd6cd0d1397a9', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '05c97fe329ecca5246acb03d980b15b3', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4f250bbd793d06e8273a7e4e5fa51737', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7d2d74b3cdf9d705ca80e7546744f50b', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '846679bf5a706063edc115f3c855a08b', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a8f2f0a538df953dab35333ea61122f1', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '630068486e7e757ac14823364af8d5a5', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0e109aaddddb4982f643c34b1690534e', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '04a5fc9e36895b2e3dc1b2471ec2e355', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f2cbb8dc7e8f354dc28cb4afaa13c200', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7bc5a34944ae6a09ed2141a24d084d13', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4b8f590b6596bdb7474c74035fcc8c1d', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1f4d3cc4af1671d91084db6e44ba388f', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2d1088c237b626604a72014516b0e918', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '35abf8dbe31aa4afed2d8f9a32a613b0', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:17:52', '2015-05-02 13:17:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:17:52', '2015-05-02 13:17:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:17:52', '2015-05-02 13:17:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0a36e508fdd86a858d88829e415ea68c', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b6189d0c680cba5f7033d9e5197ce721', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '476e608ad9ef5af6b8eba596d5914d95', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dc26e3c5836d6b16c81bf3cc45629804', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0a936d6252e5a168b8bb1f9ccb50ca52', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9ec7f50cd52271af4dff6f7c027f1568', '2015-05-02 13:17:52', '2015-05-02 13:17:52', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:17:52.847756"], ["updated_at", "2015-05-02 13:17:52.847756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:17:52.849332"], ["updated_at", "2015-05-02 13:17:52.849332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:17:52.850698"], ["updated_at", "2015-05-02 13:17:52.850698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:17:52.863326"], ["updated_at", "2015-05-02 13:17:52.863326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:17:52.874030"], ["updated_at", "2015-05-02 13:17:52.874030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:17:52.889303"], ["updated_at", "2015-05-02 13:17:52.889303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.3ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:17:52.893911"], ["updated_at", "2015-05-02 13:17:52.893911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 170], ["created_at", "2015-05-02 13:17:52.896524"], ["updated_at", "2015-05-02 13:17:52.896524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 170], ["created_at", "2015-05-02 13:17:52.899088"], ["updated_at", "2015-05-02 13:17:52.899088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 170], ["created_at", "2015-05-02 13:17:52.901737"], ["updated_at", "2015-05-02 13:17:52.901737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:17:52.909200"], ["updated_at", "2015-05-02 13:17:52.909200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 170], ["created_at", "2015-05-02 13:17:52.911113"], ["updated_at", "2015-05-02 13:17:52.911113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 170], ["created_at", "2015-05-02 13:17:52.912924"], ["updated_at", "2015-05-02 13:17:52.912924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 170], ["created_at", "2015-05-02 13:17:52.914775"], ["updated_at", "2015-05-02 13:17:52.914775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 170], ["updated_at", "2015-05-02 13:17:52.916167"], ["id", 170]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (5.4ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 170]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 170]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 170]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 170]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 170]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 170]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 170]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 170]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:17:52.936479"], ["updated_at", "2015-05-02 13:17:52.936479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:17:52.940395"], ["updated_at", "2015-05-02 13:17:52.940395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:17:52.943846"], ["updated_at", "2015-05-02 13:17:52.943846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:17:52.951783"], ["updated_at", "2015-05-02 13:17:52.951783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:17:52.953157"], ["updated_at", "2015-05-02 13:17:52.953157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:17:52.954426"], ["updated_at", "2015-05-02 13:17:52.954426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:17:52.966003"], ["updated_at", "2015-05-02 13:17:52.966003"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:17:52.967229"], ["updated_at", "2015-05-02 13:17:52.967229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:17:52.976567"], ["updated_at", "2015-05-02 13:17:52.976567"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:17:52.977671"], ["updated_at", "2015-05-02 13:17:52.977671"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:17:52.978626"], ["updated_at", "2015-05-02 13:17:52.978626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:17:52.996977"], ["updated_at", "2015-05-02 13:17:52.996977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:17:52.998439"], ["updated_at", "2015-05-02 13:17:52.998439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:17:52.999725"], ["updated_at", "2015-05-02 13:17:52.999725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 169]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 169]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 169]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 169]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 169]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 169]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 169]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 169]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:18:28.893342"], ["updated_at", "2015-05-02 13:18:28.893342"]]  (14.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 170], ["created_at", "2015-05-02 13:18:28.941486"], ["updated_at", "2015-05-02 13:18:28.941486"]]  (24.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 170], ["created_at", "2015-05-02 13:18:28.987677"], ["updated_at", "2015-05-02 13:18:28.987677"]]  (17.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 170], ["created_at", "2015-05-02 13:18:29.023345"], ["updated_at", "2015-05-02 13:18:29.023345"]]  (19.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 170], ["updated_at", "2015-05-02 13:18:29.045466"], ["id", 170]]  (20.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '090f89bf90e9cd375cfe929335b96b63', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '93efe1e36cfef2b9d766b5beee5dfc4e', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9136ebda54ef5f92ad5d2eae648e14b9', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0b0fb560dc563e00dcdf6c57ba97c72f', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b04ee4e8117cebf920c69c3335db749', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4589584fe3da01327acfea234242fbea', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'da8c960e319efbd443f98f0b04922423', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'da3ee289ab37684fd275efe9d9e8e8d4', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3568d57d40e98ffcb0b8f31855d68828', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bc3890da9e3c7cb51490cfc21d99da3d', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'aaaf8eab13b8ddf1e00617102a931356', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fb72bf337323e0295d99b6cc905a82ab', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c6c3cb638a611ec9bb88f5094378ea75', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '48d66496b0da7dc41156eab7449b8aac', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '12e8207c968813e7688c313156f68052', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:18:29', '2015-05-02 13:18:29', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:18:29', '2015-05-02 13:18:29', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:18:29', '2015-05-02 13:18:29', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '85cdbdc0f6607892c4ebf109dbf3cb19', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1117dd025436b589d043741c0d2c10bd', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c2333f0d717d61e10cee1f8ba7afa9eb', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '12df6b25c65dff6d1414ede88690ad4a', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bdfd58089b7278177f18b6629f290cde', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a37763153520631795420186b76a585e', '2015-05-02 13:18:29', '2015-05-02 13:18:29', 410780858)  (19.2ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:18:29.337813"], ["updated_at", "2015-05-02 13:18:29.337813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:18:29.348561"], ["updated_at", "2015-05-02 13:18:29.348561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:18:29.351598"], ["updated_at", "2015-05-02 13:18:29.351598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:18:29.353032"], ["updated_at", "2015-05-02 13:18:29.353032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:18:29.354347"], ["updated_at", "2015-05-02 13:18:29.354347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:18:29.359884"], ["updated_at", "2015-05-02 13:18:29.359884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:18:29.363628"], ["updated_at", "2015-05-02 13:18:29.363628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:18:29.367305"], ["updated_at", "2015-05-02 13:18:29.367305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170))  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:18:29.387630"], ["updated_at", "2015-05-02 13:18:29.387630"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:18:29.388877"], ["updated_at", "2015-05-02 13:18:29.388877"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:18:29.389845"], ["updated_at", "2015-05-02 13:18:29.389845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:18:29.411969"], ["updated_at", "2015-05-02 13:18:29.411969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:18:29.413363"], ["updated_at", "2015-05-02 13:18:29.413363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:18:29.414659"], ["updated_at", "2015-05-02 13:18:29.414659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:18:29.420151"], ["updated_at", "2015-05-02 13:18:29.420151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 171], ["created_at", "2015-05-02 13:18:29.422015"], ["updated_at", "2015-05-02 13:18:29.422015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 171], ["created_at", "2015-05-02 13:18:29.423908"], ["updated_at", "2015-05-02 13:18:29.423908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 171], ["created_at", "2015-05-02 13:18:29.425676"], ["updated_at", "2015-05-02 13:18:29.425676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 171], ["updated_at", "2015-05-02 13:18:29.427091"], ["id", 171]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 171]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 171]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 171]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 171]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 171]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 171]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 171]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 171]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:18:29.443227"], ["updated_at", "2015-05-02 13:18:29.443227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 171], ["created_at", "2015-05-02 13:18:29.445138"], ["updated_at", "2015-05-02 13:18:29.445138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 171], ["created_at", "2015-05-02 13:18:29.446966"], ["updated_at", "2015-05-02 13:18:29.446966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 171], ["created_at", "2015-05-02 13:18:29.448660"], ["updated_at", "2015-05-02 13:18:29.448660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:18:29.453192"], ["updated_at", "2015-05-02 13:18:29.453192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:18:29.454599"], ["updated_at", "2015-05-02 13:18:29.454599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:18:29.455867"], ["updated_at", "2015-05-02 13:18:29.455867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:18:29.464300"], ["updated_at", "2015-05-02 13:18:29.464300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:18:29.470007"], ["updated_at", "2015-05-02 13:18:29.470007"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:18:29.471084"], ["updated_at", "2015-05-02 13:18:29.471084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 170]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 170]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 170]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 170]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 170]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 170]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 170]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 170]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '32b78cbc686d1c5a87a5df176f15a757', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '71fc340cff54f00b0995f5667f47cf30', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a10086872ebfadb7e0b1ad3ea1fdbb17', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1c19c1fc5993ca2fd8412633179a8d4a', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2e82b8be39b383d25efc1800d580f1a7', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0d4ad02c46cf008e9a2aa67b42d68580', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '114fb03a4c50b83bd3232e592fdb4df7', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f808e02709a5a0288025b84ea0099698', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c5414cc20ed767323650055858f68991', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '243b87ded5625279ac5d46c773105cb1', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '90d5781a7bd39989a6a2e40baea7caae', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1a7c8d1a86c4566ea1fc56ea0e367aa6', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ccbc36ab46db7f7cdd589e14dd5f043d', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dc378fee0bac76be3fcf072d540c02ca', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1c51c9b94c83f9a888f5601fe2cc071c', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:21:40', '2015-05-02 13:21:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:21:40', '2015-05-02 13:21:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:21:40', '2015-05-02 13:21:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b9d9045203e6ed1674164f8560a061c6', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c89aa3be4fba18afa9462312f6e2d32a', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1c1dca534c73d3857d47a53d85d1732b', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5b14455b936821995e99297369d5c542', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f45bd36a48857b839b443e4e769c6e1b', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cd480e2c92aab7d2013a698e73635a9d', '2015-05-02 13:21:40', '2015-05-02 13:21:40', 410780858)  (19.5ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:21:40.917742"], ["updated_at", "2015-05-02 13:21:40.917742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:21:40.919606"], ["updated_at", "2015-05-02 13:21:40.919606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:21:40.920910"], ["updated_at", "2015-05-02 13:21:40.920910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:21:40.922175"], ["updated_at", "2015-05-02 13:21:40.922175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:21:40.923437"], ["updated_at", "2015-05-02 13:21:40.923437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:21:40.933903"], ["updated_at", "2015-05-02 13:21:40.933903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:21:40.935376"], ["updated_at", "2015-05-02 13:21:40.935376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:21:40.936674"], ["updated_at", "2015-05-02 13:21:40.936674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1d5ea3d137817cf985f4ca394a43747b', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6e5cd15f163bfaa679666d4336af96f8', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'db3c7ea26f189ac6d66bb47ca8203e3a', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '138c06002d4cc81ef2b66d4edc40cebb', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '77d228adbdacb5ec8426536cc86f7825', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5542fad457cd4650f9555c0bc18f972e', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f41ed194189910031a888b4b0ef02832', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7303d9b6b94f0a21083f56d6c7a82b8f', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4be5009aabeefd45a0b1b7b7998cd114', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd5803f2cdc138014c047fd05034dfa9f', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3ff0285d8bac3991ed460ccf50989c64', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'eacd5dd1ea6bfc060851f710a6f3a2d5', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2b31ea0fb5e4ca706ce318446aefaef2', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '02ad9d174d531cbac388e6b36a2abec9', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b63ca117839d08cbd2ecf2e7bfee29c', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:23:01', '2015-05-02 13:23:01', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:23:01', '2015-05-02 13:23:01', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:23:01', '2015-05-02 13:23:01', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cead49755978f71f7006f71d6b02aafa', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3b5d1a2b21ff632e23e197bb5df40026', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2978ab4ae9ef7ea3685abdd3d21de912', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '948856dcb7f6ee14894919e7e199241f', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '56c420234ebc65f83511b094221fc6b0', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '06c3b19883327dd4bd774146ee742738', '2015-05-02 13:23:01', '2015-05-02 13:23:01', 410780858)  (21.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strinfs of polymorphic record types -------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:23:01.618172"], ["updated_at", "2015-05-02 13:23:01.618172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:23:01.620313"], ["updated_at", "2015-05-02 13:23:01.620313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:23:01.621610"], ["updated_at", "2015-05-02 13:23:01.621610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:23:01.622943"], ["updated_at", "2015-05-02 13:23:01.622943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:23:01.624177"], ["updated_at", "2015-05-02 13:23:01.624177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.4ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:23:26.300286"], ["updated_at", "2015-05-02 13:23:26.300286"]]  (13.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 171], ["created_at", "2015-05-02 13:23:26.347999"], ["updated_at", "2015-05-02 13:23:26.347999"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 171], ["created_at", "2015-05-02 13:23:26.385401"], ["updated_at", "2015-05-02 13:23:26.385401"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 171], ["created_at", "2015-05-02 13:23:26.410021"], ["updated_at", "2015-05-02 13:23:26.410021"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 171], ["updated_at", "2015-05-02 13:23:26.425174"], ["id", 171]]  (12.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fe6a6992189ad06fc1bb71041550bcdc', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1f7ac29d6fd3b1e120d847b90573ac36', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '922d1cac6efa68bf9105c2de517c4bbb', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c9d6d3526fe78ec589d73fa1b5db7db3', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6687c981abcf03a40db51b60a35ad004', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '72ed8c61718bf249948e057af231edc6', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'baf2b50a661cc20f72325e523d6ca694', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2da04a92f324a55d49b677d7dcd32235', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '232e96e9e5f8e40d640a79b7242fc10e', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6573b8300a38656376b474cb9e2af6e1', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cc24a2014357c8ade8bfe5952ba03291', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e942d5d676486dd48be633a0a1921dec', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a25be987ac4aa72914c827a5b5a9164f', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '275430ea7c986118e9b62a6f67333545', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b7059878dd33d6c187d9624e2e718de3', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:23:26', '2015-05-02 13:23:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:23:26', '2015-05-02 13:23:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:23:26', '2015-05-02 13:23:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1deac09fb2f9655147b034d764fc3890', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c7f593f14a42dbbc4f03c4acc33de43d', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '32b270f8f74b5e5ff89ba1ac2e480da7', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '852fe47c7006985113b88f0f34e0abd8', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0e3dbadeae8c0d240abe84f5d752250e', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '67d412a0fd873bfcbb13784b9c68c29e', '2015-05-02 13:23:26', '2015-05-02 13:23:26', 410780858)  (18.7ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.6ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:23:26.639303"], ["updated_at", "2015-05-02 13:23:26.639303"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:23:26.640537"], ["updated_at", "2015-05-02 13:23:26.640537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:23:26.647532"], ["updated_at", "2015-05-02 13:23:26.647532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:23:26.649737"], ["updated_at", "2015-05-02 13:23:26.649737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:23:26.651443"], ["updated_at", "2015-05-02 13:23:26.651443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:23:26.667108"], ["updated_at", "2015-05-02 13:23:26.667108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 172], ["created_at", "2015-05-02 13:23:26.669333"], ["updated_at", "2015-05-02 13:23:26.669333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 172], ["created_at", "2015-05-02 13:23:26.671323"], ["updated_at", "2015-05-02 13:23:26.671323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 172], ["created_at", "2015-05-02 13:23:26.673145"], ["updated_at", "2015-05-02 13:23:26.673145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:23:26.678963"], ["updated_at", "2015-05-02 13:23:26.678963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) [1mINSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 172], ["created_at", "2015-05-02 13:23:26.680777"], ["updated_at", "2015-05-02 13:23:26.680777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 172], ["created_at", "2015-05-02 13:23:26.682751"], ["updated_at", "2015-05-02 13:23:26.682751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 172], ["created_at", "2015-05-02 13:23:26.684523"], ["updated_at", "2015-05-02 13:23:26.684523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 172], ["updated_at", "2015-05-02 13:23:26.685817"], ["id", 172]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 172]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 172]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 172]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 172]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 172]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 172]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 172]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 172]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:23:26.704763"], ["updated_at", "2015-05-02 13:23:26.704763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:23:26.709041"], ["updated_at", "2015-05-02 13:23:26.709041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:23:26.713873"], ["updated_at", "2015-05-02 13:23:26.713873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:23:26.715307"], ["updated_at", "2015-05-02 13:23:26.715307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:23:26.716574"], ["updated_at", "2015-05-02 13:23:26.716574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of polymorphic record types -------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:23:26.722206"], ["updated_at", "2015-05-02 13:23:26.722206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:23:26.723600"], ["updated_at", "2015-05-02 13:23:26.723600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:23:26.725000"], ["updated_at", "2015-05-02 13:23:26.725000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:23:26.726310"], ["updated_at", "2015-05-02 13:23:26.726310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:23:26.746516"], ["updated_at", "2015-05-02 13:23:26.746516"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:23:26.747799"], ["updated_at", "2015-05-02 13:23:26.747799"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:23:26.748737"], ["updated_at", "2015-05-02 13:23:26.748737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:23:26.765512"], ["updated_at", "2015-05-02 13:23:26.765512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:23:26.767057"], ["updated_at", "2015-05-02 13:23:26.767057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:23:26.768375"], ["updated_at", "2015-05-02 13:23:26.768375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:23:26.779827"], ["updated_at", "2015-05-02 13:23:26.779827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:23:26.783557"], ["updated_at", "2015-05-02 13:23:26.783557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:23:26.787280"], ["updated_at", "2015-05-02 13:23:26.787280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171))  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:23:26.791683"], ["updated_at", "2015-05-02 13:23:26.791683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 171]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 171]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 171]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 171]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 171]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 171]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 171]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 171]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.0ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '44f994ce24236546898b3109c4b69a19', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '74d04cdf7d67b277e4a70956177167f2', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0cd1c8e1f34b7b9e4ff94ebed451f1d', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8926c08419204ed0a05f02aae2a65c91', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3357eb4919d347eb49f849c84a2127f0', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5db77b33f0d91dbaa712965f1187a08d', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9cdc7f98aaf2381c7c6c2598f26b2f4e', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '30ff340e6bc2fd0bdbc49da9b2692de8', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1485f4bfa8732a649ea95e67bad23ae8', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '41d9e1b041cfd1a498400fc8f6e361b9', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'cb217e8c47c321e267e51854254b94fd', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '194440f00070e7a5faf7c21d00f72310', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f5eb9c2929d2cb0cfc5f34785ce70c71', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b80b94e4f4ffeebb3c747aafd194c344', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2804a55f1d9af74a42e9b50ee765cad5', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 762608046) Fixture Delete (0.0ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:23:33', '2015-05-02 13:23:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:23:33', '2015-05-02 13:23:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:23:33', '2015-05-02 13:23:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fe0b4bc128436d62d91eeeb17f64138a', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '53fcf080d3120668549a19dcf98c5509', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9204f536abd722ab82c07a74eb2974fd', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8e9929941f2639fb20419b8a05c2c14f', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4daeb0c2dba1d31239b7fc4cbf0e0264', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '893cf73b78889248ae03cb1192b6abca', '2015-05-02 13:23:33', '2015-05-02 13:23:33', 410780858)  (20.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of polymorphic record types -------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:23:33.521330"], ["updated_at", "2015-05-02 13:23:33.521330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:23:33.523856"], ["updated_at", "2015-05-02 13:23:33.523856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:23:33.525330"], ["updated_at", "2015-05-02 13:23:33.525330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:23:33.526737"], ["updated_at", "2015-05-02 13:23:33.526737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1ea5e001e52ce10cb328ad33ec377001', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8e633bb6c6af4decae8dc5836a164b7b', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e5af8998c6f0ea675148b911ab700f0c', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c63461dd2a9055f57d8f5160193e5b4d', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '563f41037d13748ca0be36ee0844f716', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7485bcb50c7545d5eb282a461fdaa598', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1ee7a451ec9b6bcfae4a9d00d2ee5b56', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c0035f25e8f8f224e9c0a2397a35d6a9', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7f11de5a7d99aa02603374969ca6bffa', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7de418992e2a40d8479ec6e142e33349', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'adf16b0994b6ee670106768e7a3f8777', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7bc452146f193497ab6f4a24c66da852', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e14d1c8a2b70c41601e14693d0f45b0d', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '938aede204f6ebf5ff055d646205aab8', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8e3f96bff7ebdc9bc2bf459f337afd0b', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:24:22', '2015-05-02 13:24:22', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:24:22', '2015-05-02 13:24:22', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:24:22', '2015-05-02 13:24:22', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd0193f304d5c0d312fd34b45c1532afd', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1fab1870c1fc46c34f463f4347fe1db9', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '95ea807ab45aa7558a96aa56f6970360', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '858fdfab52e67b52c5bc61af8af2d370', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd4a4b61f473bb2aba6f41994d5d0a212', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fbca42f0190c6ea844659e2415cb3680', '2015-05-02 13:24:22', '2015-05-02 13:24:22', 410780858)  (26.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of polymorphic record types -------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:24:22.496632"], ["updated_at", "2015-05-02 13:24:22.496632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:24:22.498698"], ["updated_at", "2015-05-02 13:24:22.498698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:24:22.500064"], ["updated_at", "2015-05-02 13:24:22.500064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:24:22.501377"], ["updated_at", "2015-05-02 13:24:22.501377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:24:22.502656"], ["updated_at", "2015-05-02 13:24:22.502656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:24:22.503927"], ["updated_at", "2015-05-02 13:24:22.503927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:27:42.400599"], ["updated_at", "2015-05-02 13:27:42.400599"]]  (19.1ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 172], ["created_at", "2015-05-02 13:27:42.449288"], ["updated_at", "2015-05-02 13:27:42.449288"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 172], ["created_at", "2015-05-02 13:27:42.477139"], ["updated_at", "2015-05-02 13:27:42.477139"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 172], ["created_at", "2015-05-02 13:27:42.501637"], ["updated_at", "2015-05-02 13:27:42.501637"]]  (27.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 172], ["updated_at", "2015-05-02 13:27:42.531487"], ["id", 172]]  (23.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '19a1203c3e44e89863589981079e7bd0', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c3039d3ad61a4326d968a3cdb15cd627', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fb1dc3f52b3d617b7723b94cd46caf5b', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1c4aca0aa6ed1931b2a2d1e182f8d99a', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3909e876662357c62816a2fcc7d4c473', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '96eb841384badc952887f0316c120b15', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '29118066097791fed89b6082dd7c45a5', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '207d9251cfbf05250b8e1ca449fca0a9', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '04d6fabed21956f4e7b51e0feec178ab', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5a78ec56c4473f5ff5da9e3068489b7f', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '84180a1a7b24da1e3ada7d78dfefdb98', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'faf8bbbfd3ba38e5dfb915d0e2bf837b', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a532bb55bd5d475dabc13937a1299d1b', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '03a58fc2018fe099b1e6e066be75eb61', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4abec5c7012ff7b113e64b606233a923', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:27:42', '2015-05-02 13:27:42', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:27:42', '2015-05-02 13:27:42', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:27:42', '2015-05-02 13:27:42', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7e3d3f9d6c761f856b79744120f4c377', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6a8a400b132e45856a3a79dee269ed5e', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '29d4b0be8bdea003e553b84ff852d7fe', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cb3a66ad43d918cda58f5363b5f6a6f6', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'afc78e5f03d60d8615cfd647835eea39', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '35330f7048898108ab47adc6d579f358', '2015-05-02 13:27:42', '2015-05-02 13:27:42', 410780858)  (13.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.3ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:27:42.804766"], ["updated_at", "2015-05-02 13:27:42.804766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:27:42.817525"], ["updated_at", "2015-05-02 13:27:42.817525"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:27:42.818876"], ["updated_at", "2015-05-02 13:27:42.818876"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:27:42.819886"], ["updated_at", "2015-05-02 13:27:42.819886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of polymorphic record types -------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:27:42.833374"], ["updated_at", "2015-05-02 13:27:42.833374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:27:42.834961"], ["updated_at", "2015-05-02 13:27:42.834961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:27:42.836201"], ["updated_at", "2015-05-02 13:27:42.836201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:27:42.837450"], ["updated_at", "2015-05-02 13:27:42.837450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:27:42.838827"], ["updated_at", "2015-05-02 13:27:42.838827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:27:42.840149"], ["updated_at", "2015-05-02 13:27:42.840149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:27:42.852075"], ["updated_at", "2015-05-02 13:27:42.852075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:27:42.858442"], ["updated_at", "2015-05-02 13:27:42.858442"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:27:42.859435"], ["updated_at", "2015-05-02 13:27:42.859435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:27:42.862338"], ["updated_at", "2015-05-02 13:27:42.862338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 173], ["created_at", "2015-05-02 13:27:42.864309"], ["updated_at", "2015-05-02 13:27:42.864309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 173], ["created_at", "2015-05-02 13:27:42.866548"], ["updated_at", "2015-05-02 13:27:42.866548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 173], ["created_at", "2015-05-02 13:27:42.868367"], ["updated_at", "2015-05-02 13:27:42.868367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:27:42.875281"], ["updated_at", "2015-05-02 13:27:42.875281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:27:42.879970"], ["updated_at", "2015-05-02 13:27:42.879970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:27:42.883612"], ["updated_at", "2015-05-02 13:27:42.883612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:27:42.889270"], ["updated_at", "2015-05-02 13:27:42.889270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:27:42.900398"], ["updated_at", "2015-05-02 13:27:42.900398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:27:42.901807"], ["updated_at", "2015-05-02 13:27:42.901807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:27:42.903091"], ["updated_at", "2015-05-02 13:27:42.903091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:27:42.912189"], ["updated_at", "2015-05-02 13:27:42.912189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 173], ["created_at", "2015-05-02 13:27:42.914163"], ["updated_at", "2015-05-02 13:27:42.914163"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 173], ["created_at", "2015-05-02 13:27:42.916196"], ["updated_at", "2015-05-02 13:27:42.916196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 173], ["created_at", "2015-05-02 13:27:42.917980"], ["updated_at", "2015-05-02 13:27:42.917980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 173], ["updated_at", "2015-05-02 13:27:42.919297"], ["id", 173]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 173]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 173]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 173]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 173]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 173]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 173]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 173]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 173]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]]  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:27:42.936520"], ["updated_at", "2015-05-02 13:27:42.936520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:27:42.938660"], ["updated_at", "2015-05-02 13:27:42.938660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:27:42.940501"], ["updated_at", "2015-05-02 13:27:42.940501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:27:42.946428"], ["updated_at", "2015-05-02 13:27:42.946428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:27:42.947736"], ["updated_at", "2015-05-02 13:27:42.947736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:27:42.949013"], ["updated_at", "2015-05-02 13:27:42.949013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 172]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 172]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 172]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 172]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 172]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 172]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 172]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 172]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:28:51.716872"], ["updated_at", "2015-05-02 13:28:51.716872"]]  (22.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 173], ["created_at", "2015-05-02 13:28:51.765244"], ["updated_at", "2015-05-02 13:28:51.765244"]]  (31.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 173], ["created_at", "2015-05-02 13:28:51.810542"], ["updated_at", "2015-05-02 13:28:51.810542"]]  (29.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 173], ["created_at", "2015-05-02 13:28:51.852793"], ["updated_at", "2015-05-02 13:28:51.852793"]]  (24.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 173], ["updated_at", "2015-05-02 13:28:51.879375"], ["id", 173]]  (25.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b40540c1646bf7e2d4a55ec4fb0a373', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '239bd02fdeb2b2c33ab1ef4eab74559c', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0cce298e171fcc86034954a13d51c6f2', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2bca99b6e819c3ce2e38ae7a2aa61444', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c914387a9d56c8e3be1a0fdf32593ad4', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e4e0fc51229be2441a1abda9da7900c8', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b91fafb8731ca99bcc9a724ffdbce15f', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c98434d0e8de69b4eab8ecfd35d82fb8', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4f393c589c6caaee47efe4c5a26a0ed2', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7ff25ff1fe8654980a9482bbe8158549', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1824b96dd17391e22c9a68825df357d5', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8dfe91335b4c2a08b61c0a7f884ead6b', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aded1d78e0b6708f26582166fddac4b5', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2725f9e8322505924a2a6fda3223530e', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '92272aa043d6e577d8d11e6cbca054af', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:28:51', '2015-05-02 13:28:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:28:51', '2015-05-02 13:28:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:28:51', '2015-05-02 13:28:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f6a6ab613e18f350203e36ff3e227766', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '50892e93620c719ce7b7628015c0ccdd', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3ef5f8c07c7d41c5ce054769c8fe47d3', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '70a66d3bc4dc6bd7b098348c0547e0bd', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a3fdcd4e95f153666720602c863a4695', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '70976a516839c1e6fdbf32ea76ea1e3a', '2015-05-02 13:28:51', '2015-05-02 13:28:51', 410780858)  (31.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 173]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 173]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 173]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 173]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 173]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 173]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 173]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 173]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:28:52.208777"], ["updated_at", "2015-05-02 13:28:52.208777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 174], ["created_at", "2015-05-02 13:28:52.210922"], ["updated_at", "2015-05-02 13:28:52.210922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 174], ["created_at", "2015-05-02 13:28:52.212712"], ["updated_at", "2015-05-02 13:28:52.212712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 174], ["created_at", "2015-05-02 13:28:52.214519"], ["updated_at", "2015-05-02 13:28:52.214519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 174], ["updated_at", "2015-05-02 13:28:52.215783"], ["id", 174]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 174]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 174]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 174]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 174]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 174]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 174]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 174]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 174]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:28:52.228002"], ["updated_at", "2015-05-02 13:28:52.228002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:28:52.229517"], ["updated_at", "2015-05-02 13:28:52.229517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:28:52.230796"], ["updated_at", "2015-05-02 13:28:52.230796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:28:52.240960"], ["updated_at", "2015-05-02 13:28:52.240960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:28:52.242499"], ["updated_at", "2015-05-02 13:28:52.242499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:28:52.243759"], ["updated_at", "2015-05-02 13:28:52.243759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:28:52.259045"], ["updated_at", "2015-05-02 13:28:52.259045"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:28:52.260265"], ["updated_at", "2015-05-02 13:28:52.260265"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:28:52.261227"], ["updated_at", "2015-05-02 13:28:52.261227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:28:52.275713"], ["updated_at", "2015-05-02 13:28:52.275713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:28:52.277105"], ["updated_at", "2015-05-02 13:28:52.277105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:28:52.278371"], ["updated_at", "2015-05-02 13:28:52.278371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:28:52.279576"], ["updated_at", "2015-05-02 13:28:52.279576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:28:52.280793"], ["updated_at", "2015-05-02 13:28:52.280793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:28:52.281975"], ["updated_at", "2015-05-02 13:28:52.281975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:28:52.293578"], ["updated_at", "2015-05-02 13:28:52.293578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:28:52.294972"], ["updated_at", "2015-05-02 13:28:52.294972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:28:52.296215"], ["updated_at", "2015-05-02 13:28:52.296215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:28:52.297398"], ["updated_at", "2015-05-02 13:28:52.297398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:28:52.298691"], ["updated_at", "2015-05-02 13:28:52.298691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:28:52.299908"], ["updated_at", "2015-05-02 13:28:52.299908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:28:52.307778"], ["updated_at", "2015-05-02 13:28:52.307778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:28:52.314311"], ["updated_at", "2015-05-02 13:28:52.314311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:28:52.317976"], ["updated_at", "2015-05-02 13:28:52.317976"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:28:52.321373"], ["updated_at", "2015-05-02 13:28:52.321373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173))  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:28:52.327283"], ["updated_at", "2015-05-02 13:28:52.327283"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:28:52.328295"], ["updated_at", "2015-05-02 13:28:52.328295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:28:52.335056"], ["updated_at", "2015-05-02 13:28:52.335056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 174], ["created_at", "2015-05-02 13:28:52.336919"], ["updated_at", "2015-05-02 13:28:52.336919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 174], ["created_at", "2015-05-02 13:28:52.338873"], ["updated_at", "2015-05-02 13:28:52.338873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 174], ["created_at", "2015-05-02 13:28:52.340721"], ["updated_at", "2015-05-02 13:28:52.340721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:28:52.345549"], ["updated_at", "2015-05-02 13:28:52.345549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:28:52.348818"], ["updated_at", "2015-05-02 13:28:52.348818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:28:52.351000"], ["updated_at", "2015-05-02 13:28:52.351000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:28:52.352352"], ["updated_at", "2015-05-02 13:28:52.352352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:28:52.353605"], ["updated_at", "2015-05-02 13:28:52.353605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:29:03.845707"], ["updated_at", "2015-05-02 13:29:03.845707"]]  (18.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 174], ["created_at", "2015-05-02 13:29:03.894228"], ["updated_at", "2015-05-02 13:29:03.894228"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 174], ["created_at", "2015-05-02 13:29:03.921390"], ["updated_at", "2015-05-02 13:29:03.921390"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 174], ["created_at", "2015-05-02 13:29:03.946210"], ["updated_at", "2015-05-02 13:29:03.946210"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 174], ["updated_at", "2015-05-02 13:29:03.960742"], ["id", 174]]  (12.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '165a841011f7a577adb9f0559618ce05', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e8e6df96240e3bcc16850a5573d770b3', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4ff984283c4621bade4d78b85866529a', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4089ff0d2d521dec4a2c0764e1ac9380', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e0ac7782e6bdf73df14778165182c8f3', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7575ec621af6bdb84415eb8859f8ada7', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6a704b22060599fc285a3f4f279cf326', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5d98ebbc381a19158d378c17100475d9', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '915b1bae9f5bf41b7765ff10ff7e7d72', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8490b448f440e01631cd89895301a72f', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '14258de288dc51be9171371e72e15205', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a34b560246283a3781d9f900f3dc2d34', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0c46d3e61a56b3d0d7cab504d4fc7694', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dc0cb26c88e22e483317f367c2da6a9f', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6841b3e30861dfef70892dde6ca6eb95', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:29:04', '2015-05-02 13:29:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:29:04', '2015-05-02 13:29:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:29:04', '2015-05-02 13:29:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '69b8deda7eee40e9ea3c24fbad3cc212', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b81e4f9bfae668bd3b66d00ebc5eb193', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '03eb2de22224107fa4aac31db8370a02', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd071a095ad50090f5e361b4ebdc15b93', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bee02f19cd59f806a08dcbf9e963604f', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '201f465f19c4d76e7e7d053f39aa6a37', '2015-05-02 13:29:04', '2015-05-02 13:29:04', 410780858)  (35.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:29:04.098104"], ["updated_at", "2015-05-02 13:29:04.098104"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:29:04.111235"], ["updated_at", "2015-05-02 13:29:04.111235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:29:04.112809"], ["updated_at", "2015-05-02 13:29:04.112809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:29:04.114182"], ["updated_at", "2015-05-02 13:29:04.114182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:29:04.148182"], ["updated_at", "2015-05-02 13:29:04.148182"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:29:04.149427"], ["updated_at", "2015-05-02 13:29:04.149427"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:29:04.153679"], ["updated_at", "2015-05-02 13:29:04.153679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 175], ["created_at", "2015-05-02 13:29:04.155646"], ["updated_at", "2015-05-02 13:29:04.155646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 175], ["created_at", "2015-05-02 13:29:04.157527"], ["updated_at", "2015-05-02 13:29:04.157527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 175], ["created_at", "2015-05-02 13:29:04.159423"], ["updated_at", "2015-05-02 13:29:04.159423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 175], ["updated_at", "2015-05-02 13:29:04.160731"], ["id", 175]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 175]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 175]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 175]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 175]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 175]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 175]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 175]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 175]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:29:04.183661"], ["updated_at", "2015-05-02 13:29:04.183661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:29:04.185169"], ["updated_at", "2015-05-02 13:29:04.185169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:29:04.186513"], ["updated_at", "2015-05-02 13:29:04.186513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:29:04.197050"], ["updated_at", "2015-05-02 13:29:04.197050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:29:04.199495"], ["updated_at", "2015-05-02 13:29:04.199495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:29:04.204629"], ["updated_at", "2015-05-02 13:29:04.204629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:29:04.208379"], ["updated_at", "2015-05-02 13:29:04.208379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:29:04.212009"], ["updated_at", "2015-05-02 13:29:04.212009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:29:04.219140"], ["updated_at", "2015-05-02 13:29:04.219140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 175], ["created_at", "2015-05-02 13:29:04.220915"], ["updated_at", "2015-05-02 13:29:04.220915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 175], ["created_at", "2015-05-02 13:29:04.222775"], ["updated_at", "2015-05-02 13:29:04.222775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 175], ["created_at", "2015-05-02 13:29:04.224477"], ["updated_at", "2015-05-02 13:29:04.224477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:29:04.235742"], ["updated_at", "2015-05-02 13:29:04.235742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:29:04.237292"], ["updated_at", "2015-05-02 13:29:04.237292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:29:04.238781"], ["updated_at", "2015-05-02 13:29:04.238781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:29:04.240191"], ["updated_at", "2015-05-02 13:29:04.240191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:29:04.241482"], ["updated_at", "2015-05-02 13:29:04.241482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:29:04.242803"], ["updated_at", "2015-05-02 13:29:04.242803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:29:04.247717"], ["updated_at", "2015-05-02 13:29:04.247717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:29:04.249139"], ["updated_at", "2015-05-02 13:29:04.249139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:29:04.250513"], ["updated_at", "2015-05-02 13:29:04.250513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:29:04.260269"], ["updated_at", "2015-05-02 13:29:04.260269"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:29:04.261720"], ["updated_at", "2015-05-02 13:29:04.261720"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:29:04.262802"], ["updated_at", "2015-05-02 13:29:04.262802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:29:04.279474"], ["updated_at", "2015-05-02 13:29:04.279474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:29:04.280948"], ["updated_at", "2015-05-02 13:29:04.280948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:29:04.282296"], ["updated_at", "2015-05-02 13:29:04.282296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:29:04.283570"], ["updated_at", "2015-05-02 13:29:04.283570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:29:04.284821"], ["updated_at", "2015-05-02 13:29:04.284821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:29:04.286092"], ["updated_at", "2015-05-02 13:29:04.286092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 174]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 174]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 174]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 174]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 174]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 174]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 174]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 174]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:32:41.785815"], ["updated_at", "2015-05-02 13:32:41.785815"]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 175], ["created_at", "2015-05-02 13:32:41.826951"], ["updated_at", "2015-05-02 13:32:41.826951"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 175], ["created_at", "2015-05-02 13:32:41.854070"], ["updated_at", "2015-05-02 13:32:41.854070"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 175], ["created_at", "2015-05-02 13:32:41.879760"], ["updated_at", "2015-05-02 13:32:41.879760"]]  (30.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 175], ["updated_at", "2015-05-02 13:32:41.912091"], ["id", 175]]  (20.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4e30d5ba37b7bd8c44ab87c70d26cdb7', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '232558831e45ee46ee02adfb417500e2', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '746dfa2f9a906d5dd22b976938c8fe2a', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9cf9cfd4dbcf82586c504551a9d76563', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'daed32b664714af22e43ba591d286395', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '72a0d89454d644606e38d2edd957ef0e', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'aa48bdd8f2a4affa67e3779b1f7bb5aa', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '614f5ba759804d3a4245354fed19dc8e', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '44912dde3b42e8136887ceb5461aa884', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ec7dc0b0dcf901926bada2698d358d7c', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c72a66eaae3cee86d1a040682386fa30', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7c49939d285de6ee6a16a8eb980b2223', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '76af705743f7e210c7b1b68cfca19763', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f6b6dd56ad68db936976ab489eab1c94', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '003e82ca6a480445ca8c48e43096e71f', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 762608046) Fixture Delete (0.0ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:32:42', '2015-05-02 13:32:42', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:32:42', '2015-05-02 13:32:42', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:32:42', '2015-05-02 13:32:42', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '651fe8585fe8aa3f60f7bf037cf9c9c1', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3a21c025d5e02ac1b8c5bac1b79c1caf', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c1cb5b74b95f217bf662a2efae2d08c1', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ccbcca762dd70e6dec0864af3162cb86', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0469de14bffc886fed28f7d2d15fc50e', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9cf5879261151f8c2fbe6f6ff300cfa0', '2015-05-02 13:32:42', '2015-05-02 13:32:42', 410780858)  (13.8ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:32:42.050555"], ["updated_at", "2015-05-02 13:32:42.050555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:32:42.054518"], ["updated_at", "2015-05-02 13:32:42.054518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:32:42.056063"], ["updated_at", "2015-05-02 13:32:42.056063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:32:42.058999"], ["updated_at", "2015-05-02 13:32:42.058999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:32:42.060346"], ["updated_at", "2015-05-02 13:32:42.060346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:32:42.061643"], ["updated_at", "2015-05-02 13:32:42.061643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:32:42.062955"], ["updated_at", "2015-05-02 13:32:42.062955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:32:42.064282"], ["updated_at", "2015-05-02 13:32:42.064282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:32:42.065647"], ["updated_at", "2015-05-02 13:32:42.065647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:32:42.102866"], ["updated_at", "2015-05-02 13:32:42.102866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:32:42.110127"], ["updated_at", "2015-05-02 13:32:42.110127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 176], ["created_at", "2015-05-02 13:32:42.112142"], ["updated_at", "2015-05-02 13:32:42.112142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 176], ["created_at", "2015-05-02 13:32:42.114006"], ["updated_at", "2015-05-02 13:32:42.114006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 176], ["created_at", "2015-05-02 13:32:42.115841"], ["updated_at", "2015-05-02 13:32:42.115841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 176], ["updated_at", "2015-05-02 13:32:42.117127"], ["id", 176]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 176]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 176]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 176]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 176]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 176]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 176]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 176]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 176]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:32:42.132023"], ["updated_at", "2015-05-02 13:32:42.132023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 176], ["created_at", "2015-05-02 13:32:42.134283"], ["updated_at", "2015-05-02 13:32:42.134283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 176], ["created_at", "2015-05-02 13:32:42.136492"], ["updated_at", "2015-05-02 13:32:42.136492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 176], ["created_at", "2015-05-02 13:32:42.138528"], ["updated_at", "2015-05-02 13:32:42.138528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:32:42.150017"], ["updated_at", "2015-05-02 13:32:42.150017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:32:42.151968"], ["updated_at", "2015-05-02 13:32:42.151968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:32:42.153684"], ["updated_at", "2015-05-02 13:32:42.153684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:32:42.155034"], ["updated_at", "2015-05-02 13:32:42.155034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:32:42.156367"], ["updated_at", "2015-05-02 13:32:42.156367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:32:42.157643"], ["updated_at", "2015-05-02 13:32:42.157643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:32:42.161287"], ["updated_at", "2015-05-02 13:32:42.161287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:32:42.162684"], ["updated_at", "2015-05-02 13:32:42.162684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:32:42.163950"], ["updated_at", "2015-05-02 13:32:42.163950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:32:42.169244"], ["updated_at", "2015-05-02 13:32:42.169244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:32:42.170603"], ["updated_at", "2015-05-02 13:32:42.170603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:32:42.171856"], ["updated_at", "2015-05-02 13:32:42.171856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:32:42.182021"], ["updated_at", "2015-05-02 13:32:42.182021"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:32:42.183238"], ["updated_at", "2015-05-02 13:32:42.183238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:32:42.195590"], ["updated_at", "2015-05-02 13:32:42.195590"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:32:42.196819"], ["updated_at", "2015-05-02 13:32:42.196819"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:32:42.197770"], ["updated_at", "2015-05-02 13:32:42.197770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:32:42.216418"], ["updated_at", "2015-05-02 13:32:42.216418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:32:42.220711"], ["updated_at", "2015-05-02 13:32:42.220711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:32:42.223211"], ["updated_at", "2015-05-02 13:32:42.223211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:32:42.227094"], ["updated_at", "2015-05-02 13:32:42.227094"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:32:42.230679"], ["updated_at", "2015-05-02 13:32:42.230679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 175]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 175]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 175]] Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 175]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 175]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 175]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 175]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 175]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:34:35.678211"], ["updated_at", "2015-05-02 13:34:35.678211"]]  (15.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 176], ["created_at", "2015-05-02 13:34:35.720243"], ["updated_at", "2015-05-02 13:34:35.720243"]]  (20.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 176], ["created_at", "2015-05-02 13:34:35.756508"], ["updated_at", "2015-05-02 13:34:35.756508"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 176], ["created_at", "2015-05-02 13:34:35.782385"], ["updated_at", "2015-05-02 13:34:35.782385"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 176], ["updated_at", "2015-05-02 13:34:35.797513"], ["id", 176]]  (11.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4adc9c61b3e4dd54c8a7fe5b0090d635', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '05fd988470db7355381b980a1253dd2c', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '34eda499a7c74c6c8b9df902e18dd0e0', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1655d70d8abb6a7a5c5cd8d7f6325dfe', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0535ec21e1e344c24f85aa3f47787644', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ec07c863e83c04020c3f87327497e070', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3241961f3e9edef3526b5efbce70ae34', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '488e85de224c6f9f9f71933bccd5cf13', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e9869995396e77fa0a855c6fb2a977fe', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2c60a7c9af5712686d03df45866843be', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2f50abd3f7627409ba6567acaa72daad', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '90ab2e64815a1a759aa9333dd0dfb4b3', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '67c13f89ce8c1e22d78eebbcfc03cc76', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3f2e1b7c8b1c436637c13b22ea57f456', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5644700f6d80f16488b1c81a6949361f', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:34:35', '2015-05-02 13:34:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:34:35', '2015-05-02 13:34:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:34:35', '2015-05-02 13:34:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5deb9cce382d444257b41e04dd3de645', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2232472d75194e926b8f2a1cb77648ea', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5dfbcae6639fea5a0cf965fe26c1c391', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'abefae192737fa0361c04f449f0ec397', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '40d85ce9933cadb16a04eda4b149329d', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'acedeb33754150784c29f91d48c49d97', '2015-05-02 13:34:35', '2015-05-02 13:34:35', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.3ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 176]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 176]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 176]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 176]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 176]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 176]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 176]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 176]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:34:36.048838"], ["updated_at", "2015-05-02 13:34:36.048838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:34:36.050492"], ["updated_at", "2015-05-02 13:34:36.050492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:34:36.051855"], ["updated_at", "2015-05-02 13:34:36.051855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:34:36.053093"], ["updated_at", "2015-05-02 13:34:36.053093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:34:36.054371"], ["updated_at", "2015-05-02 13:34:36.054371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:34:36.055651"], ["updated_at", "2015-05-02 13:34:36.055651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:34:36.058477"], ["updated_at", "2015-05-02 13:34:36.058477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:34:36.060631"], ["updated_at", "2015-05-02 13:34:36.060631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:34:36.062053"], ["updated_at", "2015-05-02 13:34:36.062053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:34:36.063479"], ["updated_at", "2015-05-02 13:34:36.063479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:34:36.078093"], ["updated_at", "2015-05-02 13:34:36.078093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:34:36.086057"], ["updated_at", "2015-05-02 13:34:36.086057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:34:36.087568"], ["updated_at", "2015-05-02 13:34:36.087568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:34:36.088992"], ["updated_at", "2015-05-02 13:34:36.088992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:34:36.098549"], ["updated_at", "2015-05-02 13:34:36.098549"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:34:36.099761"], ["updated_at", "2015-05-02 13:34:36.099761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:34:36.102897"], ["updated_at", "2015-05-02 13:34:36.102897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:34:36.113283"], ["updated_at", "2015-05-02 13:34:36.113283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:34:36.116921"], ["updated_at", "2015-05-02 13:34:36.116921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176))  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:34:36.121385"], ["updated_at", "2015-05-02 13:34:36.121385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:34:36.122767"], ["updated_at", "2015-05-02 13:34:36.122767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:34:36.124036"], ["updated_at", "2015-05-02 13:34:36.124036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:34:36.129629"], ["updated_at", "2015-05-02 13:34:36.129629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 177], ["created_at", "2015-05-02 13:34:36.131619"], ["updated_at", "2015-05-02 13:34:36.131619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 177], ["created_at", "2015-05-02 13:34:36.133447"], ["updated_at", "2015-05-02 13:34:36.133447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 177], ["created_at", "2015-05-02 13:34:36.135304"], ["updated_at", "2015-05-02 13:34:36.135304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 177], ["updated_at", "2015-05-02 13:34:36.136589"], ["id", 177]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 177]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 177]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 177]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 177]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 177]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 177]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 177]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 177]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:34:36.150631"], ["updated_at", "2015-05-02 13:34:36.150631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:34:36.156566"], ["updated_at", "2015-05-02 13:34:36.156566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 177], ["created_at", "2015-05-02 13:34:36.158384"], ["updated_at", "2015-05-02 13:34:36.158384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 177], ["created_at", "2015-05-02 13:34:36.160189"], ["updated_at", "2015-05-02 13:34:36.160189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 177], ["created_at", "2015-05-02 13:34:36.161982"], ["updated_at", "2015-05-02 13:34:36.161982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:34:36.173269"], ["updated_at", "2015-05-02 13:34:36.173269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:34:36.174763"], ["updated_at", "2015-05-02 13:34:36.174763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:34:36.175992"], ["updated_at", "2015-05-02 13:34:36.175992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:34:36.177204"], ["updated_at", "2015-05-02 13:34:36.177204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:34:36.178479"], ["updated_at", "2015-05-02 13:34:36.178479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:34:36.179710"], ["updated_at", "2015-05-02 13:34:36.179710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:34:36.189816"], ["updated_at", "2015-05-02 13:34:36.189816"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:34:36.190935"], ["updated_at", "2015-05-02 13:34:36.190935"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:34:36.191865"], ["updated_at", "2015-05-02 13:34:36.191865"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:37:35.154295"], ["updated_at", "2015-05-02 13:37:35.154295"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 177], ["created_at", "2015-05-02 13:37:35.198818"], ["updated_at", "2015-05-02 13:37:35.198818"]]  (25.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 177], ["created_at", "2015-05-02 13:37:35.240660"], ["updated_at", "2015-05-02 13:37:35.240660"]]  (14.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 177], ["created_at", "2015-05-02 13:37:35.268960"], ["updated_at", "2015-05-02 13:37:35.268960"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 177], ["updated_at", "2015-05-02 13:37:35.284041"], ["id", 177]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c10d87fe53515f6f3f72f40455b18ca7', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '14bad367c682def618ecaa6e35a1c9a7', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '95991cd244595afdb7483268f383ece2', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2983db4d1918946f671d8bc9bb2212a8', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a3947ed71aa75f440bbafcfe5fac82fb', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b08f5e7ffe94decf50aa1d4fae5fa96', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c2f1c646d879ddf76130d30d4f2803be', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e07a901197dadd24b0982e233c7bdf00', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd16dd0d54fecf1ea555119a4c3784ab6', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a1365c3117799e85b4d4260cb9527638', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7c55118f6928e59e541fba472813612f', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '255f46518da2136a11355ef2bf9b3534', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '63a0979eb17eb8d99292e0824a2dc22f', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ac2c1b8db2200491ac08b411e361b76a', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8d9122b7ab314d79cc6e36d00512ff1f', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:37:35', '2015-05-02 13:37:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:37:35', '2015-05-02 13:37:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:37:35', '2015-05-02 13:37:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4c406006ab97fbb0824369cd5c43a422', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c6092b37f179d28feedb400880b3b9d6', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cc2464117dd53c4b2617a82100847954', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '733616bf4300b2b595971e4023d33588', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '628ba7d81bd7c9eb6895a983dfdfd4e2', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd9d1fb40199b49cf7b6782c6fbac78c0', '2015-05-02 13:37:35', '2015-05-02 13:37:35', 410780858)  (18.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.3ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 177]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 177]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 177]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 177]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 177]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 177]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 177]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 177]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:37:35.602366"], ["updated_at", "2015-05-02 13:37:35.602366"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 178], ["created_at", "2015-05-02 13:37:35.604396"], ["updated_at", "2015-05-02 13:37:35.604396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 178], ["created_at", "2015-05-02 13:37:35.606319"], ["updated_at", "2015-05-02 13:37:35.606319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 178], ["created_at", "2015-05-02 13:37:35.608115"], ["updated_at", "2015-05-02 13:37:35.608115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 178], ["updated_at", "2015-05-02 13:37:35.609402"], ["id", 178]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 178]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 178]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 178]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 178]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 178]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 178]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 178]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 178]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:37:35.627439"], ["updated_at", "2015-05-02 13:37:35.627439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:37:35.633792"], ["updated_at", "2015-05-02 13:37:35.633792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 178], ["created_at", "2015-05-02 13:37:35.635778"], ["updated_at", "2015-05-02 13:37:35.635778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 178], ["created_at", "2015-05-02 13:37:35.637547"], ["updated_at", "2015-05-02 13:37:35.637547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 178], ["created_at", "2015-05-02 13:37:35.639375"], ["updated_at", "2015-05-02 13:37:35.639375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:37:35.648753"], ["updated_at", "2015-05-02 13:37:35.648753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:37:35.652037"], ["updated_at", "2015-05-02 13:37:35.652037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:37:35.653428"], ["updated_at", "2015-05-02 13:37:35.653428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:37:35.654725"], ["updated_at", "2015-05-02 13:37:35.654725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:37:35.656073"], ["updated_at", "2015-05-02 13:37:35.656073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:37:35.657282"], ["updated_at", "2015-05-02 13:37:35.657282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:37:35.658519"], ["updated_at", "2015-05-02 13:37:35.658519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:37:35.661961"], ["updated_at", "2015-05-02 13:37:35.661961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:37:35.666947"], ["updated_at", "2015-05-02 13:37:35.666947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:37:35.670454"], ["updated_at", "2015-05-02 13:37:35.670454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:37:35.672824"], ["updated_at", "2015-05-02 13:37:35.672824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:37:35.674181"], ["updated_at", "2015-05-02 13:37:35.674181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:37:35.675451"], ["updated_at", "2015-05-02 13:37:35.675451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:37:35.677851"], ["updated_at", "2015-05-02 13:37:35.677851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:37:35.679170"], ["updated_at", "2015-05-02 13:37:35.679170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:37:35.680395"], ["updated_at", "2015-05-02 13:37:35.680395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:37:35.681551"], ["updated_at", "2015-05-02 13:37:35.681551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:37:35.682805"], ["updated_at", "2015-05-02 13:37:35.682805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:37:35.683958"], ["updated_at", "2015-05-02 13:37:35.683958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:37:35.695330"], ["updated_at", "2015-05-02 13:37:35.695330"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:37:35.696424"], ["updated_at", "2015-05-02 13:37:35.696424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:37:35.699332"], ["updated_at", "2015-05-02 13:37:35.699332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:37:35.700673"], ["updated_at", "2015-05-02 13:37:35.700673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:37:35.701913"], ["updated_at", "2015-05-02 13:37:35.701913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:37:35.715608"], ["updated_at", "2015-05-02 13:37:35.715608"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:37:35.716971"], ["updated_at", "2015-05-02 13:37:35.716971"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:37:35.718194"], ["updated_at", "2015-05-02 13:37:35.718194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:37:35.730415"], ["updated_at", "2015-05-02 13:37:35.730415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:37:35.735883"], ["updated_at", "2015-05-02 13:37:35.735883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:37:35.737257"], ["updated_at", "2015-05-02 13:37:35.737257"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:37:35.738578"], ["updated_at", "2015-05-02 13:37:35.738578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:38:13.138877"], ["updated_at", "2015-05-02 13:38:13.138877"]]  (18.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 178], ["created_at", "2015-05-02 13:38:13.185094"], ["updated_at", "2015-05-02 13:38:13.185094"]]  (24.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 178], ["created_at", "2015-05-02 13:38:13.220506"], ["updated_at", "2015-05-02 13:38:13.220506"]]  (24.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 178], ["created_at", "2015-05-02 13:38:13.258174"], ["updated_at", "2015-05-02 13:38:13.258174"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 178], ["updated_at", "2015-05-02 13:38:13.272740"], ["id", 178]]  (17.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5978e2638099dca93f1e862fe84a8509', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '102e84b9e7fec21faafc30ec92077696', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '26e398ddf19667b2964234c189ae3821', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd144505378fa434cfd08e0318f15ae70', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4cd40930c03684d900f069c76377f78b', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '415f704c14e4f426c82b96b3f63bb255', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f691afc29c1f5153bdaffe2a4972710b', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7b551a457772e30ab88c3f62e7fd7436', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7acd590800a97e83802fe45c814be449', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ca5e9b1601d2fe18168b31c2176d895d', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '54c2bff34942cd66f519770228c71f02', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '654922479177377b3e8b6f076c3b435a', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ca69b6b065795860cb576288ba634c6f', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '49fd130f4cd97908affca71f4c94ab17', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '162f739aa9fdd155953583c479c84be8', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:38:13', '2015-05-02 13:38:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:38:13', '2015-05-02 13:38:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:38:13', '2015-05-02 13:38:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a2455ecfa95c3788c698823502e2f66f', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2d2b9233cbf5cb96a3870d6895d4b10c', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a2b15fa6dc93ae14d6fdc955df90ee69', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '37d3966bd01e4077d1e270509e4f4a35', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c2ad43c556ec8469a0f2fd908ca4789c', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ab7a6b9402d18c4c78191c5cdd957148', '2015-05-02 13:38:13', '2015-05-02 13:38:13', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.3ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:38:13.409790"], ["updated_at", "2015-05-02 13:38:13.409790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:38:13.413782"], ["updated_at", "2015-05-02 13:38:13.413782"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 179], ["created_at", "2015-05-02 13:38:13.422078"], ["updated_at", "2015-05-02 13:38:13.422078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 179], ["created_at", "2015-05-02 13:38:13.424236"], ["updated_at", "2015-05-02 13:38:13.424236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 179], ["created_at", "2015-05-02 13:38:13.426072"], ["updated_at", "2015-05-02 13:38:13.426072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:38:13.442794"], ["updated_at", "2015-05-02 13:38:13.442794"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:38:13.444026"], ["updated_at", "2015-05-02 13:38:13.444026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:38:13.451213"], ["updated_at", "2015-05-02 13:38:13.451213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:38:13.452827"], ["updated_at", "2015-05-02 13:38:13.452827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:38:13.454153"], ["updated_at", "2015-05-02 13:38:13.454153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:38:13.459844"], ["updated_at", "2015-05-02 13:38:13.459844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:38:13.471517"], ["updated_at", "2015-05-02 13:38:13.471517"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:38:13.472802"], ["updated_at", "2015-05-02 13:38:13.472802"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:38:13.473775"], ["updated_at", "2015-05-02 13:38:13.473775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:38:13.497961"], ["updated_at", "2015-05-02 13:38:13.497961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:38:13.499463"], ["updated_at", "2015-05-02 13:38:13.499463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:38:13.500761"], ["updated_at", "2015-05-02 13:38:13.500761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:38:13.502003"], ["updated_at", "2015-05-02 13:38:13.502003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:38:13.503333"], ["updated_at", "2015-05-02 13:38:13.503333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:38:13.504543"], ["updated_at", "2015-05-02 13:38:13.504543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:38:13.508207"], ["updated_at", "2015-05-02 13:38:13.508207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:38:13.509539"], ["updated_at", "2015-05-02 13:38:13.509539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:38:13.510890"], ["updated_at", "2015-05-02 13:38:13.510890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:38:13.520204"], ["updated_at", "2015-05-02 13:38:13.520204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:38:13.522346"], ["updated_at", "2015-05-02 13:38:13.522346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 179], ["created_at", "2015-05-02 13:38:13.524357"], ["updated_at", "2015-05-02 13:38:13.524357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 179], ["created_at", "2015-05-02 13:38:13.526327"], ["updated_at", "2015-05-02 13:38:13.526327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 179], ["created_at", "2015-05-02 13:38:13.528266"], ["updated_at", "2015-05-02 13:38:13.528266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 179], ["updated_at", "2015-05-02 13:38:13.529588"], ["id", 179]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 179]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 179]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 179]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 179]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 179]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 179]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 179]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 179]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:38:13.544922"], ["updated_at", "2015-05-02 13:38:13.544922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:38:13.548955"], ["updated_at", "2015-05-02 13:38:13.548955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:38:13.552598"], ["updated_at", "2015-05-02 13:38:13.552598"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:38:13.556708"], ["updated_at", "2015-05-02 13:38:13.556708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:38:13.558102"], ["updated_at", "2015-05-02 13:38:13.558102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:38:13.559467"], ["updated_at", "2015-05-02 13:38:13.559467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:38:13.560773"], ["updated_at", "2015-05-02 13:38:13.560773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:38:13.562048"], ["updated_at", "2015-05-02 13:38:13.562048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:38:13.563337"], ["updated_at", "2015-05-02 13:38:13.563337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:38:13.567980"], ["updated_at", "2015-05-02 13:38:13.567980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:38:13.569423"], ["updated_at", "2015-05-02 13:38:13.569423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:38:13.570786"], ["updated_at", "2015-05-02 13:38:13.570786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 178]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 178]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 178]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 178]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 178]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 178]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 178]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 178]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:09.742779"], ["updated_at", "2015-05-02 13:43:09.742779"]]  (15.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 179], ["created_at", "2015-05-02 13:43:09.787633"], ["updated_at", "2015-05-02 13:43:09.787633"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 179], ["created_at", "2015-05-02 13:43:09.814190"], ["updated_at", "2015-05-02 13:43:09.814190"]]  (21.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 179], ["created_at", "2015-05-02 13:43:09.850833"], ["updated_at", "2015-05-02 13:43:09.850833"]]  (18.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 179], ["updated_at", "2015-05-02 13:43:09.871930"], ["id", 179]]  (17.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e1661f957a4841231cdb27cbefbab597', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '81ead57c3db167950cc1d578222f8db2', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd699cdf24c16ea2a59e2cca49bb83d72', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e5f46a4b401e0ecb32e322c450bf0f69', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd6c7ee159d7bab1815b14a6408fec663', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9e80bae395880d17b2067f474edcf1fd', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b7525b3d55d20e723ca3bc0530894c2f', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f8a3f91cd5ebba215675a890b8a9d819', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '435d3adbb357dcec3409567cc565a3e4', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f5d69cf2a840c277d8ab0033e38533de', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2c71d4f0c39df578def6b246724c628f', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fee5976e44868e69ab76c46e4937be30', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'baf6908b86eebd586d2628a95236f844', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '29a953e169364ecb044a7244f45b318f', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c03131886826a6986e0a1dab9f8b6e78', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:43:09', '2015-05-02 13:43:09', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:43:09', '2015-05-02 13:43:09', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:43:09', '2015-05-02 13:43:09', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1f9da96d81b30eb3abd63bf5ff7b5d2e', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e26eaea4e133ff3d916a0c45cca6a833', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0a85b8677f19304ed9a57eaaf6446a97', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '995df0ce1199b641054416390adf0a82', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e91bd995bb1577e8c65b983e2d4618e3', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '92e7817f739ce86d5b36285d59096091', '2015-05-02 13:43:09', '2015-05-02 13:43:09', 410780858)  (20.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 179]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 179]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 179]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 179]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 179]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 179]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 179]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 179]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:10.050661"], ["updated_at", "2015-05-02 13:43:10.050661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 180], ["created_at", "2015-05-02 13:43:10.053264"], ["updated_at", "2015-05-02 13:43:10.053264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 180], ["created_at", "2015-05-02 13:43:10.055263"], ["updated_at", "2015-05-02 13:43:10.055263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 180], ["created_at", "2015-05-02 13:43:10.057053"], ["updated_at", "2015-05-02 13:43:10.057053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 180], ["updated_at", "2015-05-02 13:43:10.058397"], ["id", 180]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 180]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 180]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 180]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 180]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 180]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 180]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 180]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 180]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]]  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:43:10.073861"], ["updated_at", "2015-05-02 13:43:10.073861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:43:10.075495"], ["updated_at", "2015-05-02 13:43:10.075495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:43:10.076815"], ["updated_at", "2015-05-02 13:43:10.076815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:10.090793"], ["updated_at", "2015-05-02 13:43:10.090793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 180], ["created_at", "2015-05-02 13:43:10.092747"], ["updated_at", "2015-05-02 13:43:10.092747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 180], ["created_at", "2015-05-02 13:43:10.094662"], ["updated_at", "2015-05-02 13:43:10.094662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 180], ["created_at", "2015-05-02 13:43:10.096528"], ["updated_at", "2015-05-02 13:43:10.096528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]]  (0.5ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:10.110921"], ["updated_at", "2015-05-02 13:43:10.110921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:43:10.118242"], ["updated_at", "2015-05-02 13:43:10.118242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:43:10.119665"], ["updated_at", "2015-05-02 13:43:10.119665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:43:10.120955"], ["updated_at", "2015-05-02 13:43:10.120955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:10.131108"], ["updated_at", "2015-05-02 13:43:10.131108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:43:10.141071"], ["updated_at", "2015-05-02 13:43:10.141071"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:43:10.142306"], ["updated_at", "2015-05-02 13:43:10.142306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:43:10.151795"], ["updated_at", "2015-05-02 13:43:10.151795"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:43:10.152961"], ["updated_at", "2015-05-02 13:43:10.152961"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:43:10.153881"], ["updated_at", "2015-05-02 13:43:10.153881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:43:10.170302"], ["updated_at", "2015-05-02 13:43:10.170302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:43:10.171807"], ["updated_at", "2015-05-02 13:43:10.171807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:43:10.173156"], ["updated_at", "2015-05-02 13:43:10.173156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:43:10.176826"], ["updated_at", "2015-05-02 13:43:10.176826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:43:10.178303"], ["updated_at", "2015-05-02 13:43:10.178303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:43:10.179753"], ["updated_at", "2015-05-02 13:43:10.179753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:43:10.181036"], ["updated_at", "2015-05-02 13:43:10.181036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:43:10.182388"], ["updated_at", "2015-05-02 13:43:10.182388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:43:10.183830"], ["updated_at", "2015-05-02 13:43:10.183830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:43:10.196078"], ["updated_at", "2015-05-02 13:43:10.196078"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:43:10.200032"], ["updated_at", "2015-05-02 13:43:10.200032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:43:10.201436"], ["updated_at", "2015-05-02 13:43:10.201436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:43:10.202788"], ["updated_at", "2015-05-02 13:43:10.202788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:43:10.204083"], ["updated_at", "2015-05-02 13:43:10.204083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:43:10.205366"], ["updated_at", "2015-05-02 13:43:10.205366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:43:10.206655"], ["updated_at", "2015-05-02 13:43:10.206655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:43:10.209137"], ["updated_at", "2015-05-02 13:43:10.209137"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (5.7ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:24.099545"], ["updated_at", "2015-05-02 13:43:24.099545"]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 180], ["created_at", "2015-05-02 13:43:24.139961"], ["updated_at", "2015-05-02 13:43:24.139961"]]  (26.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 180], ["created_at", "2015-05-02 13:43:24.179421"], ["updated_at", "2015-05-02 13:43:24.179421"]]  (27.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 180], ["created_at", "2015-05-02 13:43:24.224554"], ["updated_at", "2015-05-02 13:43:24.224554"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 180], ["updated_at", "2015-05-02 13:43:24.239491"], ["id", 180]]  (12.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eae6fcdd0f54745f5d6bc56286cf0369', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9fede2edd1cfd06e0dc95dda386ff6f8', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6ab7b77ad0e9714f4bfe8d389faf398d', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aafe3cb11b510ed49dc98b5ffc1604dc', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8c412a0679508822ef0e566f2cfc99e9', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c1e378a700f6d44dfaa63a64a8dd51fe', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e19abc1aceb84532d1de0cf9525c5c34', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2ca9894f89c3b179bd069f27b3cd0976', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'eef8e984c17d0d37641efdb44d3dc780', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '360b0a30558c84a24994164df41fc9d6', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '280e691033f9b999df17f92a1654e9f3', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5acc8e47609cb634c05283d666c1906b', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a27f5ef34fc25796bcb1b3b2f02a0025', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fddc3938a17bcb6949be1fe655272c98', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ab9cf0321f70582f89d7818e73794dc2', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:43:24', '2015-05-02 13:43:24', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:43:24', '2015-05-02 13:43:24', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:43:24', '2015-05-02 13:43:24', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6d0e94241d616ad4942e894d7877278f', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b9f6f1469506e9d8038c16bb4f852703', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '87985754fe73c35fd9439fbc7261f322', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '282de9e0154a5adb023f831a970f54ac', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '68bea86fb002d09d3088adea1dad0761', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '526706637f0fd37ae513518f6b157dca', '2015-05-02 13:43:24', '2015-05-02 13:43:24', 410780858)  (18.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:24.359989"], ["updated_at", "2015-05-02 13:43:24.359989"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 181], ["created_at", "2015-05-02 13:43:24.364428"], ["updated_at", "2015-05-02 13:43:24.364428"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 181], ["created_at", "2015-05-02 13:43:24.367820"], ["updated_at", "2015-05-02 13:43:24.367820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 181], ["created_at", "2015-05-02 13:43:24.370513"], ["updated_at", "2015-05-02 13:43:24.370513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 181], ["updated_at", "2015-05-02 13:43:24.372411"], ["id", 181]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 181]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 181]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 181]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 181]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 181]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 181]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 181]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 181]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:43:24.402696"], ["updated_at", "2015-05-02 13:43:24.402696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:43:24.409134"], ["updated_at", "2015-05-02 13:43:24.409134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:43:24.410658"], ["updated_at", "2015-05-02 13:43:24.410658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:43:24.411944"], ["updated_at", "2015-05-02 13:43:24.411944"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:43:24.424212"], ["updated_at", "2015-05-02 13:43:24.424212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:43:24.425669"], ["updated_at", "2015-05-02 13:43:24.425669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:43:24.427005"], ["updated_at", "2015-05-02 13:43:24.427005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:43:24.428213"], ["updated_at", "2015-05-02 13:43:24.428213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:43:24.429426"], ["updated_at", "2015-05-02 13:43:24.429426"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:43:24.430908"], ["updated_at", "2015-05-02 13:43:24.430908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:43:24.450402"], ["updated_at", "2015-05-02 13:43:24.450402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:43:24.469288"], ["updated_at", "2015-05-02 13:43:24.469288"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:43:24.470579"], ["updated_at", "2015-05-02 13:43:24.470579"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:43:24.471518"], ["updated_at", "2015-05-02 13:43:24.471518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:24.491246"], ["updated_at", "2015-05-02 13:43:24.491246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:24.493450"], ["updated_at", "2015-05-02 13:43:24.493450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:43:24.495936"], ["updated_at", "2015-05-02 13:43:24.495936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:43:24.497339"], ["updated_at", "2015-05-02 13:43:24.497339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:43:24.498683"], ["updated_at", "2015-05-02 13:43:24.498683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:43:24.505224"], ["updated_at", "2015-05-02 13:43:24.505224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:43:24.506630"], ["updated_at", "2015-05-02 13:43:24.506630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:43:24.507962"], ["updated_at", "2015-05-02 13:43:24.507962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:43:24.509192"], ["updated_at", "2015-05-02 13:43:24.509192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:43:24.510477"], ["updated_at", "2015-05-02 13:43:24.510477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:43:24.511725"], ["updated_at", "2015-05-02 13:43:24.511725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:43:24.518474"], ["updated_at", "2015-05-02 13:43:24.518474"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:43:24.520435"], ["updated_at", "2015-05-02 13:43:24.520435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:24.524111"], ["updated_at", "2015-05-02 13:43:24.524111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 181], ["created_at", "2015-05-02 13:43:24.526186"], ["updated_at", "2015-05-02 13:43:24.526186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 181], ["created_at", "2015-05-02 13:43:24.528185"], ["updated_at", "2015-05-02 13:43:24.528185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 181], ["created_at", "2015-05-02 13:43:24.530076"], ["updated_at", "2015-05-02 13:43:24.530076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:43:24.534860"], ["updated_at", "2015-05-02 13:43:24.534860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:43:24.536290"], ["updated_at", "2015-05-02 13:43:24.536290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:43:24.537595"], ["updated_at", "2015-05-02 13:43:24.537595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 180]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 180]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 180]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 180]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 180]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 180]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 180]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 180]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:38.039545"], ["updated_at", "2015-05-02 13:43:38.039545"]]  (24.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 181], ["created_at", "2015-05-02 13:43:38.089032"], ["updated_at", "2015-05-02 13:43:38.089032"]]  (33.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 181], ["created_at", "2015-05-02 13:43:38.135160"], ["updated_at", "2015-05-02 13:43:38.135160"]]  (23.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 181], ["created_at", "2015-05-02 13:43:38.173119"], ["updated_at", "2015-05-02 13:43:38.173119"]]  (17.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 181], ["updated_at", "2015-05-02 13:43:38.192376"], ["id", 181]]  (20.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'eea47f34187b132cee8f895d81f52f23', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '071c9dc50c6eecdd0d1dae9e7867780a', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0ca21a2cafcae3463c0bc6c00ec92ff', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '91be27d3f05420f3ca90a384d3ffeb19', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bc6d3c054b2e8e6e4c84a50a45c57aa9', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9cb07c675f4622aeaf10c0e22783d5bf', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b5dcb532009f6011e1dd40a944b6ad64', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b4344149843ba0cda7bc34bc6801499d', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c9f4375ef45fe151e3fc1b9bfe367b53', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '840b65ee6ed55193aa15de19f622ea32', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a13544067c572161d0adaecef1a2be69', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'faa251dde76146dc8e38d34ca708c0dd', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '79953d74533dd9bb478bc6d6adde62a6', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ebfae8f8b0f787adc055f16550ca7a1e', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4402203790d90015a2504c32d5a1d8ae', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:43:38', '2015-05-02 13:43:38', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:43:38', '2015-05-02 13:43:38', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:43:38', '2015-05-02 13:43:38', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f03cd511853e33a69eaa5e2e84235edb', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f6b58b6871891c8c065a198186da9a02', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f617fa1dc7bc4f13d73fb80133a24f07', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f13beddbf8eda008545f5c021b9d9a65', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a98842206741e40af148922d091700fa', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '175d025bdcf85fd27aad6e7cd018bfe0', '2015-05-02 13:43:38', '2015-05-02 13:43:38', 410780858)  (13.7ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 181]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 181]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 181]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 181]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 181]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 181]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 181]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 181]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:43:38.363127"], ["updated_at", "2015-05-02 13:43:38.363127"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:43:38.364461"], ["updated_at", "2015-05-02 13:43:38.364461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:38.376848"], ["updated_at", "2015-05-02 13:43:38.376848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:38.399024"], ["updated_at", "2015-05-02 13:43:38.399024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 182], ["created_at", "2015-05-02 13:43:38.401004"], ["updated_at", "2015-05-02 13:43:38.401004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 182], ["created_at", "2015-05-02 13:43:38.402904"], ["updated_at", "2015-05-02 13:43:38.402904"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 182], ["created_at", "2015-05-02 13:43:38.405937"], ["updated_at", "2015-05-02 13:43:38.405937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:38.413124"], ["updated_at", "2015-05-02 13:43:38.413124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 182], ["created_at", "2015-05-02 13:43:38.415694"], ["updated_at", "2015-05-02 13:43:38.415694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 182], ["created_at", "2015-05-02 13:43:38.417713"], ["updated_at", "2015-05-02 13:43:38.417713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 182], ["created_at", "2015-05-02 13:43:38.419558"], ["updated_at", "2015-05-02 13:43:38.419558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 182], ["updated_at", "2015-05-02 13:43:38.420819"], ["id", 182]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 182]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 182]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 182]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 182]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 182]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 182]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 182]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 182]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:43:38.433173"], ["updated_at", "2015-05-02 13:43:38.433173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:43:38.449252"], ["updated_at", "2015-05-02 13:43:38.449252"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:43:38.450480"], ["updated_at", "2015-05-02 13:43:38.450480"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:43:38.451498"], ["updated_at", "2015-05-02 13:43:38.451498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:43:38.470694"], ["updated_at", "2015-05-02 13:43:38.470694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:44:33.134467"], ["updated_at", "2015-05-02 13:44:33.134467"]]  (22.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 182], ["created_at", "2015-05-02 13:44:33.179505"], ["updated_at", "2015-05-02 13:44:33.179505"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 182], ["created_at", "2015-05-02 13:44:33.203166"], ["updated_at", "2015-05-02 13:44:33.203166"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 182], ["created_at", "2015-05-02 13:44:33.234769"], ["updated_at", "2015-05-02 13:44:33.234769"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 182], ["updated_at", "2015-05-02 13:44:33.249250"], ["id", 182]]  (11.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5670136c3c626b1e797840023ec2e79e', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '259230595811a5d32a7b80ad0733c30d', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'afb639d8094f6b7c914511f8241791b3', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9f32b6559e18f2685ce12cbdda809258', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6786f749af1490fbe8bcfac79f69fe36', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9ae0d25e6ca9e280f480b99078c48a25', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6b6cbe8acd309ca1acedddd3fc3db552', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e100d2d0e348ced434a46c172072e845', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2a329f0cb1610679244128dd25b0a995', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '83d56022dcd66358093a2823c2633a34', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5d90e5eca4ea0f91f4f9102b64a96861', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a5659b6634938366474c4e2d194c243b', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b6ff37a1cfc534b03f28fd718989e75f', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '93d4a2d4c30591a41c35748bf9877407', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '370aa63a8d6ce17da59a9aa57c160538', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:44:33', '2015-05-02 13:44:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:44:33', '2015-05-02 13:44:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:44:33', '2015-05-02 13:44:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b76fc4323fe129bba3f149e525ea9c88', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2f15a6425500c3b28dc0ccba10c351b8', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5ae257ab93dcd23dae63c3ceee71907b', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '93ec473896881727e7e8888b991412b2', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b2260b3b6aa5c801d2acb2a4c54be3fb', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fa9d6f27f0480d27dab7ec0b1223ee1d', '2015-05-02 13:44:33', '2015-05-02 13:44:33', 410780858)  (13.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 182]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 182]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 182]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 182]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 182]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 182]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 182]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 182]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:44:33.564112"], ["updated_at", "2015-05-02 13:44:33.564112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:44:33.565570"], ["updated_at", "2015-05-02 13:44:33.565570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:44:33.566882"], ["updated_at", "2015-05-02 13:44:33.566882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:44:33.580554"], ["updated_at", "2015-05-02 13:44:33.580554"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:44:33.581832"], ["updated_at", "2015-05-02 13:44:33.581832"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:44:33.582831"], ["updated_at", "2015-05-02 13:44:33.582831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:44:33.596446"], ["updated_at", "2015-05-02 13:44:33.596446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:44:33.597897"], ["updated_at", "2015-05-02 13:44:33.597897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:44:33.599193"], ["updated_at", "2015-05-02 13:44:33.599193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:44:33.603574"], ["updated_at", "2015-05-02 13:44:33.603574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:44:33.605641"], ["updated_at", "2015-05-02 13:44:33.605641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:44:33.606995"], ["updated_at", "2015-05-02 13:44:33.606995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:44:33.608237"], ["updated_at", "2015-05-02 13:44:33.608237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:44:33.609398"], ["updated_at", "2015-05-02 13:44:33.609398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:44:33.610619"], ["updated_at", "2015-05-02 13:44:33.610619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:44:33.611800"], ["updated_at", "2015-05-02 13:44:33.611800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:44:33.614234"], ["updated_at", "2015-05-02 13:44:33.614234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:44:33.619107"], ["updated_at", "2015-05-02 13:44:33.619107"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:44:33.620221"], ["updated_at", "2015-05-02 13:44:33.620221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:44:33.626946"], ["updated_at", "2015-05-02 13:44:33.626946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:44:33.628264"], ["updated_at", "2015-05-02 13:44:33.628264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:44:33.629561"], ["updated_at", "2015-05-02 13:44:33.629561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:44:33.630812"], ["updated_at", "2015-05-02 13:44:33.630812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:44:33.632001"], ["updated_at", "2015-05-02 13:44:33.632001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:44:33.633175"], ["updated_at", "2015-05-02 13:44:33.633175"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:44:33.641289"], ["updated_at", "2015-05-02 13:44:33.641289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:44:33.646169"], ["updated_at", "2015-05-02 13:44:33.646169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:44:33.649629"], ["updated_at", "2015-05-02 13:44:33.649629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182))  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:44:33.660702"], ["updated_at", "2015-05-02 13:44:33.660702"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:44:33.664863"], ["updated_at", "2015-05-02 13:44:33.664863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 183], ["created_at", "2015-05-02 13:44:33.666720"], ["updated_at", "2015-05-02 13:44:33.666720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 183], ["created_at", "2015-05-02 13:44:33.668605"], ["updated_at", "2015-05-02 13:44:33.668605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 183], ["created_at", "2015-05-02 13:44:33.670482"], ["updated_at", "2015-05-02 13:44:33.670482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 183], ["updated_at", "2015-05-02 13:44:33.671772"], ["id", 183]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 183]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 183]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 183]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 183]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 183]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 183]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 183]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 183]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:44:33.684964"], ["updated_at", "2015-05-02 13:44:33.684964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:44:33.686407"], ["updated_at", "2015-05-02 13:44:33.686407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:44:33.687654"], ["updated_at", "2015-05-02 13:44:33.687654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:44:33.691737"], ["updated_at", "2015-05-02 13:44:33.691737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 183], ["created_at", "2015-05-02 13:44:33.693795"], ["updated_at", "2015-05-02 13:44:33.693795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 183], ["created_at", "2015-05-02 13:44:33.695770"], ["updated_at", "2015-05-02 13:44:33.695770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 183], ["created_at", "2015-05-02 13:44:33.697478"], ["updated_at", "2015-05-02 13:44:33.697478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '180a1dffc28c2b368476da45d733c01e', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ec4af7a43c6716f55a118cee542e16e4', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '86d78a21e66c68ad090f4925ca3d6835', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fa561034b1ec7c209502a8e6c867ed07', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '451f4c7e39bb2042f037bf4d6aeac588', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a136d1219af7b5047d8936556b479e7e', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6438509fc251840cb0feb7d12b593549', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c2c527f5b80f933a126fbbe65d096e84', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ea1bd416d30c93b546b3a8752bd90ed4', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ad9cb2afffe33c8d3cad6400397b5d07', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd2e4822c8ca205750541d4cf329991cf', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6e74fe5883f6e297ad773c0fe642fdf5', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '026ef35ac49ba010e22bd2a2a9d85e89', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b483c1ebdd3d256dfe63cde482c9f64a', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f8fd2f87797b421f24f32dd7d328daa7', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:48:15', '2015-05-02 13:48:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:48:15', '2015-05-02 13:48:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:48:15', '2015-05-02 13:48:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd4baa0cfa16a371e5afe3fa6ed077618', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '99393428a4f145f208b0329802ba4545', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a52ff6fe3e36d78698e186e56146d88c', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f13b2de6e5a72d5c661e9e0ed5eed673', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8337b248b2317d3073e2175dc6d6b569', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f1453296cdf3d80951dd65971ba38fc3', '2015-05-02 13:48:15', '2015-05-02 13:48:15', 410780858)  (13.9ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2b2b8ce5f5da9991fdaa31b3aa2277f0', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '940b0d84c3b1987d067fc8e005201bb9', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'efd2d7c839b9dfd7f258881144482cf3', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4980d846c06dd43d3cd34f24e69f6d87', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4625f31a8cf984d90d75d9c6be5a998b', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '54a57bf88df968511c00502e6b363a0f', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3a95f80ea4551401fef424e32cbb6107', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '24d259dc4e00398008a712180789491b', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '60b0325551c524cd21050bc0a3bc8194', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5fe3e04cb6daa6035c9bda153cef3324', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5c9c7d5e49c3ae50ad3bc66b36704884', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '95ffc674a575a089b225c5990851c21e', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a499da84daa81c7a7f7b7ef4e0212e07', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1780bdfaaf191da72308821944db5cf7', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '163ba86916b61165919107e60cda2167', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:48:32', '2015-05-02 13:48:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:48:32', '2015-05-02 13:48:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:48:32', '2015-05-02 13:48:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0ce695a4f4d3b093f833cfc5bd4a249b', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e26b7dba57b6c45a247a11a3ad7f0744', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4578d2b96bd07e704370b23c52ef90ed', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd4ea190bcc735f119037ceaae280a414', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f3e4bd02cd3f171dcbabdfbb5e571ad0', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '34036fd0f62df7ea2626fb906f47d1de', '2015-05-02 13:48:32', '2015-05-02 13:48:32', 410780858)  (35.5ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '45bbd6c6a7d1c04a163ef22b9a2c865b', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ed1e4898d1b2dc91150adb628d4394cc', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f81dd873113df2c6bf9df6c130373913', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '117ee248a171329a55cdb7490dff439e', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e40da4703706de0bd9e149d045611a86', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ee24a2343a508cf3445eddcd8143e2de', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '443c1f3752c12eee782929fc4b30198a', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'aa45cf40db40e85c16a0fa402ec690a8', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0e47f31776d870ac3d41aa9847860d4f', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4a390be44d43b0aaeb185e7ba2f69cd4', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e1018f1ba1b86e785a7e738bc7875cb3', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'eed996a29b7059baad0afc67016bffb4', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a8f967319cec97eb28aa6e312de9a13d', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '693cdb7048fa68d37a83a44b4ba5982b', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '91b7ee7d557a67f060670c88e02dbe9a', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:48:52', '2015-05-02 13:48:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:48:52', '2015-05-02 13:48:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:48:52', '2015-05-02 13:48:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'eb27f8794ae2f12fb40030442c76108e', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '08d9b048749293fd0965c80db81964cf', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1da8cf8129a0ced7d36f7dff2b09b924', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4fffc497132a52f0382e6f7d9444cd5c', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '40b4d3ec9bc2299a0291c453d243bfc7', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4a1cc0d88a0f2168882634645b889061', '2015-05-02 13:48:52', '2015-05-02 13:48:52', 410780858)  (15.4ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb828a2b0d99dda84931252b70a42548', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c24b218f792502906a1c53dc79e8bbaa', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f70f3ae37537096884c58b5a43b8bdeb', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b09c5765acbe76b71ef9d041ff71521a', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f7c30207c030565556093ce683f4ff56', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ea651fb5582fd1386def2add7090812d', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '54886e7102472253f498324d42f0323d', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3d679efa149e57f3e3d6f75649084eec', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd18529e7811a0c26816770a157be40e4', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5380919098727848a63a4e3be301c867', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'db52a5f48f140394fc17dae88f144d02', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '795b813e7181fab8619ce2539ff17466', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd9f938f3f4c644f952fe48a3d9bd7493', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd51bef7c24120a238bad1970fec82bf7', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6d11bf866ff6feae94dd7b312e3c4fad', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:49:40', '2015-05-02 13:49:40', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:49:40', '2015-05-02 13:49:40', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:49:40', '2015-05-02 13:49:40', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0277301c98a8d272783d6d92a0274b0a', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '112033f115ba95cc8d647b2bf8619e80', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c43a9d952abfac18e51b47057480590b', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8139a7362c58d79df1771079c6a1d22b', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '423476c8d3d2ff6940cef4f25c28c9d9', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c6c2785d87d6d5c71571bcd004fb044f', '2015-05-02 13:49:40', '2015-05-02 13:49:40', 410780858)  (16.7ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '16da046a52d6c6f28eb04d5842ae27be', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f1a7ac099718121af74d26e8b881065c', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b6a45e9284db4812f3803c2ed555d44f', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '338417e1a5f16ec9e46c3d9241836fbf', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c2559b2f9a832078c39975c3116f805d', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1eb98dffa2933e49486e7dabd0bd4b69', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a1ff6e2a8358277896fb5f0f2884cc1a', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3f0fb47092e29c7ba5283d5b3ef1e827', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c9c722d5f41ec1f19047d06f81f61f69', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bcc528de728a5ff4673986e727cb2267', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '92f5907acd1f1ee4471e3b7133cae05a', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '60412d2fac3d59dd9d64195e0f496852', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '240f9418ca50c6456acd01440d6fab12', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c6c06d8a54fb21f13e5690fc3d0c15eb', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '87d4009eae7c049562fc54679a6ff8a7', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:49:59', '2015-05-02 13:49:59', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:49:59', '2015-05-02 13:49:59', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:49:59', '2015-05-02 13:49:59', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '29e5e1436772016d8e21ffe17742c28c', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e17a42e65a2c46a5eb6fdf1ad043c0b1', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '55b50c47fac0b7a2c5a6d292c3ced1e3', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '774fa16486773f39df7116966d26b7aa', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3f41eba070c2d011e100b9785935c6be', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2d76fe6d1bbbb0365252a44fc1ce6f0d', '2015-05-02 13:49:59', '2015-05-02 13:49:59', 410780858)  (14.4ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3e791bed594d306ebb49ecbe3b1455e7', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a68c73518f9742e8759eefa638ca59b9', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd5218082c0391dc612113645699d758e', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dc62576da9cf05d4255e56bc0ca3d836', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '90795362d525c00a6463be65a6f23610', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7c374187240d27635f265b964b97e477', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '160f0102678e4b82598ba56d9d8d9a0e', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4feb304dc8a9230c8c7d0f44eca2208b', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '68ca4fbd3dc4d2a9a32e59365e9dc439', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f55228d4e28af023fcec6ce5aa7a46e4', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '248dfb740ad4d79e294a2f523f4f2e0a', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '506b31e51e422d2b7ceb0e005124087b', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f395815422502b70b1774378a9353b8d', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a0fe950bff10fa533518d4de80dd4b3f', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8ca3e3d4b92c646d03d7539711fe81b8', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:50:46', '2015-05-02 13:50:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:50:46', '2015-05-02 13:50:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:50:46', '2015-05-02 13:50:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ea5cccb34b35e586282b42a891db5575', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b5cac2b9bc9669ff34610cc8804a8564', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e4bc4f1712e92ce55d1c61434f210401', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd38c857df2fab2594a3268576ffb9866', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '307cadf609e5915f879239d99077a94e', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5e927a0fdf49471955bbfb691e1679e5', '2015-05-02 13:50:46', '2015-05-02 13:50:46', 410780858)  (25.0ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:51:11.922483"], ["updated_at", "2015-05-02 13:51:11.922483"]]  (14.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 183], ["created_at", "2015-05-02 13:51:11.962593"], ["updated_at", "2015-05-02 13:51:11.962593"]]  (25.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 183], ["created_at", "2015-05-02 13:51:11.996850"], ["updated_at", "2015-05-02 13:51:11.996850"]]  (18.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 183], ["created_at", "2015-05-02 13:51:12.030639"], ["updated_at", "2015-05-02 13:51:12.030639"]]  (24.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 183], ["updated_at", "2015-05-02 13:51:12.057113"], ["id", 183]]  (17.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b1211b9d516d7ba8a30925bcf349fbe8', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '38e9bf42d40f6d3e5a3f97d91c3db75c', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '604caa1dc1903de26165125fe5ce753d', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4d634cb1f868f18f4557cdbb849af4d1', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e1f6479cd2b5f14848fd94c4daca846d', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '73503aedec62b7714e6c5874f72c3896', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd4f7b5e8af89fb9ab3ae63c8f2c3be0b', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0cc7d0d82d769f60d99c34edfd0bfa94', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5ef36794ccedee0d4939d416ebc2c066', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2238f4caddbe4cbdb6a69ce3cae99b1c', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0ef599b4fad6feb6bef3f4debb829662', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a27295ee99c19077b11912e2b79662f6', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '169b6b4e17dd7fb3e59722547c9ac32f', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '65d45801bd96dee98771f0c317329bca', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '041838734f8265dd1ef47025f9f60d68', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:51:12', '2015-05-02 13:51:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:51:12', '2015-05-02 13:51:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:51:12', '2015-05-02 13:51:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1c88ae11ba8009e09d1ad71550609c61', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f2c66cb63139329619d642319c705184', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8bfd81c1cfcd65580b87fd33f082d826', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8fd5456b2802d1afa25335fe2f1c2302', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0e91d06e8166c28dde620bc295754c34', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd6a278a50b938a6ca05c8d9c1e96b9c1', '2015-05-02 13:51:12', '2015-05-02 13:51:12', 410780858)  (40.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:51:12.377924"], ["updated_at", "2015-05-02 13:51:12.377924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:51:12.380014"], ["updated_at", "2015-05-02 13:51:12.380014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 184], ["created_at", "2015-05-02 13:51:12.382180"], ["updated_at", "2015-05-02 13:51:12.382180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 184], ["created_at", "2015-05-02 13:51:12.389874"], ["updated_at", "2015-05-02 13:51:12.389874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 184], ["created_at", "2015-05-02 13:51:12.391784"], ["updated_at", "2015-05-02 13:51:12.391784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:51:12.406611"], ["updated_at", "2015-05-02 13:51:12.406611"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:51:12.407852"], ["updated_at", "2015-05-02 13:51:12.407852"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:51:12.408785"], ["updated_at", "2015-05-02 13:51:12.408785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:51:12.422383"], ["updated_at", "2015-05-02 13:51:12.422383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:51:12.427559"], ["updated_at", "2015-05-02 13:51:12.427559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:51:12.431145"], ["updated_at", "2015-05-02 13:51:12.431145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183))  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:51:12.439223"], ["updated_at", "2015-05-02 13:51:12.439223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:51:12.440851"], ["updated_at", "2015-05-02 13:51:12.440851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:51:12.442519"], ["updated_at", "2015-05-02 13:51:12.442519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:51:12.444022"], ["updated_at", "2015-05-02 13:51:12.444022"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:51:12.445884"], ["updated_at", "2015-05-02 13:51:12.445884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:51:12.447918"], ["updated_at", "2015-05-02 13:51:12.447918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:51:12.456705"], ["updated_at", "2015-05-02 13:51:12.456705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 184], ["created_at", "2015-05-02 13:51:12.458597"], ["updated_at", "2015-05-02 13:51:12.458597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 184], ["created_at", "2015-05-02 13:51:12.460486"], ["updated_at", "2015-05-02 13:51:12.460486"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 184], ["created_at", "2015-05-02 13:51:12.462445"], ["updated_at", "2015-05-02 13:51:12.462445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 184], ["updated_at", "2015-05-02 13:51:12.463708"], ["id", 184]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 184]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 184]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 184]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 184]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 184]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 184]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 184]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 184]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:51:12.478661"], ["updated_at", "2015-05-02 13:51:12.478661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:51:12.480928"], ["updated_at", "2015-05-02 13:51:12.480928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:51:12.482678"], ["updated_at", "2015-05-02 13:51:12.482678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:51:12.491386"], ["updated_at", "2015-05-02 13:51:12.491386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:51:12.492767"], ["updated_at", "2015-05-02 13:51:12.492767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:51:12.494025"], ["updated_at", "2015-05-02 13:51:12.494025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:51:12.496432"], ["updated_at", "2015-05-02 13:51:12.496432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:51:12.497721"], ["updated_at", "2015-05-02 13:51:12.497721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:51:12.499000"], ["updated_at", "2015-05-02 13:51:12.499000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:51:12.500180"], ["updated_at", "2015-05-02 13:51:12.500180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:51:12.501461"], ["updated_at", "2015-05-02 13:51:12.501461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:51:12.502690"], ["updated_at", "2015-05-02 13:51:12.502690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:51:12.507731"], ["updated_at", "2015-05-02 13:51:12.507731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:51:12.520008"], ["updated_at", "2015-05-02 13:51:12.520008"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:51:12.521060"], ["updated_at", "2015-05-02 13:51:12.521060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:51:12.523706"], ["updated_at", "2015-05-02 13:51:12.523706"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:51:12.526786"], ["updated_at", "2015-05-02 13:51:12.526786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:51:12.528096"], ["updated_at", "2015-05-02 13:51:12.528096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:51:12.529328"], ["updated_at", "2015-05-02 13:51:12.529328"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 183]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 183]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 183]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 183]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 183]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 183]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 183]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 183]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:52:08.200159"], ["updated_at", "2015-05-02 13:52:08.200159"]]  (14.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 184], ["created_at", "2015-05-02 13:52:08.234853"], ["updated_at", "2015-05-02 13:52:08.234853"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 184], ["created_at", "2015-05-02 13:52:08.261636"], ["updated_at", "2015-05-02 13:52:08.261636"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 184], ["created_at", "2015-05-02 13:52:08.282028"], ["updated_at", "2015-05-02 13:52:08.282028"]]  (22.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 184], ["updated_at", "2015-05-02 13:52:08.307205"], ["id", 184]]  (23.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '31d1b210559719cb801192fe98fd1bbb', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d7b57ab9a12c230a3f6ebf549da9255', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7f430f8a46a8efd068b5fc7bc8667293', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1a5a9acb6b87e2adb4ade8c81a11f0dd', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c4f850f152a4489cefd65b813d1668d4', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '21bd88377c2972374cdbca87db29dc95', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '079fa154cad1bf59458b895261fea55a', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '296e5a4e0ccc222393d6225986516d26', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '94bb6fa38cab5f2fd0c08277fce83614', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'adb07b517170109c82bb3ec3a03d602c', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8bd55a31e51cd63f2b18e43cf1ee77c7', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1900cea8558ba7e1c4317cc3ae257a22', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fac4d378870a370d1bdffd51ae0c7815', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e20a25a6699f8a459e5f2c8f2eebe4d8', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a414ed7ec53b307d412db68304b43fe', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 762608046) Fixture Delete (0.0ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:52:08', '2015-05-02 13:52:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:52:08', '2015-05-02 13:52:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:52:08', '2015-05-02 13:52:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4639cd8f79c4810b82aa45251f2598c4', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '87f82e059c54ba842c30450eb9c3361e', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '679b89fa38d592b7e069c2c5ba971b02', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9700b5dcd8e35023e7e3943bd1e6e9dd', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '860eff3495e33e8c6c12ecee5821e63f', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c3b18c2a9f13e7081ec71e3bb7340ed4', '2015-05-02 13:52:08', '2015-05-02 13:52:08', 410780858)  (13.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.4ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 184]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 184]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 184]] Capa Load (0.3ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 184]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 184]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 184]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 184]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 184]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:52:08.620056"], ["updated_at", "2015-05-02 13:52:08.620056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:52:08.621650"], ["updated_at", "2015-05-02 13:52:08.621650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:52:08.622948"], ["updated_at", "2015-05-02 13:52:08.622948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:52:08.624109"], ["updated_at", "2015-05-02 13:52:08.624109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:52:08.625281"], ["updated_at", "2015-05-02 13:52:08.625281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:52:08.626492"], ["updated_at", "2015-05-02 13:52:08.626492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:52:08.630639"], ["updated_at", "2015-05-02 13:52:08.630639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:52:08.641110"], ["updated_at", "2015-05-02 13:52:08.641110"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:52:08.642555"], ["updated_at", "2015-05-02 13:52:08.642555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:52:08.643893"], ["updated_at", "2015-05-02 13:52:08.643893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:52:08.645101"], ["updated_at", "2015-05-02 13:52:08.645101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:52:08.646337"], ["updated_at", "2015-05-02 13:52:08.646337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:52:08.647560"], ["updated_at", "2015-05-02 13:52:08.647560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:52:08.653560"], ["updated_at", "2015-05-02 13:52:08.653560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:52:08.654922"], ["updated_at", "2015-05-02 13:52:08.654922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:52:08.656169"], ["updated_at", "2015-05-02 13:52:08.656169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:52:08.669358"], ["updated_at", "2015-05-02 13:52:08.669358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:52:08.671689"], ["updated_at", "2015-05-02 13:52:08.671689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:52:08.673068"], ["updated_at", "2015-05-02 13:52:08.673068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:52:08.674410"], ["updated_at", "2015-05-02 13:52:08.674410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:52:08.682820"], ["updated_at", "2015-05-02 13:52:08.682820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 185], ["created_at", "2015-05-02 13:52:08.684811"], ["updated_at", "2015-05-02 13:52:08.684811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 185], ["created_at", "2015-05-02 13:52:08.686697"], ["updated_at", "2015-05-02 13:52:08.686697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 185], ["created_at", "2015-05-02 13:52:08.688506"], ["updated_at", "2015-05-02 13:52:08.688506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 185], ["updated_at", "2015-05-02 13:52:08.689803"], ["id", 185]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 185]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 185]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 185]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 185]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 185]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 185]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 185]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 185]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]]  (0.3ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:52:08.709265"], ["updated_at", "2015-05-02 13:52:08.709265"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:52:08.710471"], ["updated_at", "2015-05-02 13:52:08.710471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:52:08.713174"], ["updated_at", "2015-05-02 13:52:08.713174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:52:08.714573"], ["updated_at", "2015-05-02 13:52:08.714573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:52:08.715914"], ["updated_at", "2015-05-02 13:52:08.715914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:52:08.720134"], ["updated_at", "2015-05-02 13:52:08.720134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:52:08.729847"], ["updated_at", "2015-05-02 13:52:08.729847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 185], ["created_at", "2015-05-02 13:52:08.732222"], ["updated_at", "2015-05-02 13:52:08.732222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 185], ["created_at", "2015-05-02 13:52:08.734145"], ["updated_at", "2015-05-02 13:52:08.734145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 185], ["created_at", "2015-05-02 13:52:08.735929"], ["updated_at", "2015-05-02 13:52:08.735929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:52:08.750011"], ["updated_at", "2015-05-02 13:52:08.750011"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:52:08.751208"], ["updated_at", "2015-05-02 13:52:08.751208"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:52:08.752170"], ["updated_at", "2015-05-02 13:52:08.752170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:52:08.769508"], ["updated_at", "2015-05-02 13:52:08.769508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:52:08.773289"], ["updated_at", "2015-05-02 13:52:08.773289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:52:08.776731"], ["updated_at", "2015-05-02 13:52:08.776731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:52:20.027099"], ["updated_at", "2015-05-02 13:52:20.027099"]]  (31.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 185], ["created_at", "2015-05-02 13:52:20.084909"], ["updated_at", "2015-05-02 13:52:20.084909"]]  (28.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 185], ["created_at", "2015-05-02 13:52:20.131722"], ["updated_at", "2015-05-02 13:52:20.131722"]]  (22.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 185], ["created_at", "2015-05-02 13:52:20.169525"], ["updated_at", "2015-05-02 13:52:20.169525"]]  (32.5ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 185], ["updated_at", "2015-05-02 13:52:20.204579"], ["id", 185]]  (23.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '60be4f4caec1250dcd42ddb161eec204', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2c647039591ba9c0c40f204012139358', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b704d43b8b3e415e709c0b43e29b7cb7', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ddbd401b60ca19d5370cda2055f58d79', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b877393ffeb4632aebb45a68c4fb4d93', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '34103af6567534f0ee01d081c04e5d31', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ab55e1e7f19453a4e2f10db25cc15530', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8d718c647aaf7736fb0b1d6751dc74a0', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7e318dedc1fa97e870c5bc675f67fa7e', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd80ce97af8c23d7c63a6c5d60d3083b2', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f8dbfe3641c39f86bd4e4d7255ff0624', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7b82aa11448f9cd1075000908320b31b', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '33ead77c4280ad722dee00e30061b979', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9030a0fab475ee7bacac2dfc269c99ea', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e5ae3f0d7e845888ec899b13caa26bc1', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:52:20', '2015-05-02 13:52:20', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:52:20', '2015-05-02 13:52:20', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:52:20', '2015-05-02 13:52:20', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c9507a699070d4c31b6935da06ea9734', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'da19dcb0312874cb34fbc266b5a69130', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '21dbe318405093cea4a8cf30bf27d25b', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0c657801efa2fdac914afdc93ceb157e', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4b6ddee724c1e20eced3d9b4f7d0a235', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '931d25c945f54e15a1e5fad877c45075', '2015-05-02 13:52:20', '2015-05-02 13:52:20', 410780858)  (22.9ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 185]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 185]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 185]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 185]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 185]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 185]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 185]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 185]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:52:20.430267"], ["updated_at", "2015-05-02 13:52:20.430267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:52:20.432029"], ["updated_at", "2015-05-02 13:52:20.432029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:52:20.433403"], ["updated_at", "2015-05-02 13:52:20.433403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:52:20.434751"], ["updated_at", "2015-05-02 13:52:20.434751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:52:20.436025"], ["updated_at", "2015-05-02 13:52:20.436025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:52:20.437315"], ["updated_at", "2015-05-02 13:52:20.437315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:52:20.442467"], ["updated_at", "2015-05-02 13:52:20.442467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:52:20.452732"], ["updated_at", "2015-05-02 13:52:20.452732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:52:20.457759"], ["updated_at", "2015-05-02 13:52:20.457759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:52:20.461444"], ["updated_at", "2015-05-02 13:52:20.461444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:52:20.466330"], ["updated_at", "2015-05-02 13:52:20.466330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:52:20.467806"], ["updated_at", "2015-05-02 13:52:20.467806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:52:20.469172"], ["updated_at", "2015-05-02 13:52:20.469172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:52:20.470502"], ["updated_at", "2015-05-02 13:52:20.470502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:52:20.471839"], ["updated_at", "2015-05-02 13:52:20.471839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:52:20.473155"], ["updated_at", "2015-05-02 13:52:20.473155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:52:20.475779"], ["updated_at", "2015-05-02 13:52:20.475779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:52:20.477187"], ["updated_at", "2015-05-02 13:52:20.477187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:52:20.478555"], ["updated_at", "2015-05-02 13:52:20.478555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:52:20.486402"], ["updated_at", "2015-05-02 13:52:20.486402"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:52:20.487599"], ["updated_at", "2015-05-02 13:52:20.487599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:52:20.490417"], ["updated_at", "2015-05-02 13:52:20.490417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:52:20.498259"], ["updated_at", "2015-05-02 13:52:20.498259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 186], ["created_at", "2015-05-02 13:52:20.500845"], ["updated_at", "2015-05-02 13:52:20.500845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 186], ["created_at", "2015-05-02 13:52:20.503294"], ["updated_at", "2015-05-02 13:52:20.503294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 186], ["created_at", "2015-05-02 13:52:20.505733"], ["updated_at", "2015-05-02 13:52:20.505733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:52:20.510852"], ["updated_at", "2015-05-02 13:52:20.510852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:52:20.512409"], ["updated_at", "2015-05-02 13:52:20.512409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:52:20.513841"], ["updated_at", "2015-05-02 13:52:20.513841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:52:20.531691"], ["updated_at", "2015-05-02 13:52:20.531691"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:52:20.532910"], ["updated_at", "2015-05-02 13:52:20.532910"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:52:20.533912"], ["updated_at", "2015-05-02 13:52:20.533912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:52:20.558095"], ["updated_at", "2015-05-02 13:52:20.558095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:52:20.559685"], ["updated_at", "2015-05-02 13:52:20.559685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:52:20.561145"], ["updated_at", "2015-05-02 13:52:20.561145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:52:20.570921"], ["updated_at", "2015-05-02 13:52:20.570921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 186], ["created_at", "2015-05-02 13:52:20.572945"], ["updated_at", "2015-05-02 13:52:20.572945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 186], ["created_at", "2015-05-02 13:52:20.574974"], ["updated_at", "2015-05-02 13:52:20.574974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 186], ["created_at", "2015-05-02 13:52:20.576938"], ["updated_at", "2015-05-02 13:52:20.576938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 186], ["updated_at", "2015-05-02 13:52:20.578386"], ["id", 186]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 186]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 186]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 186]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 186]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 186]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 186]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 186]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 186]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:52:20.593433"], ["updated_at", "2015-05-02 13:52:20.593433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:53:50.769702"], ["updated_at", "2015-05-02 13:53:50.769702"]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 186], ["created_at", "2015-05-02 13:53:50.816174"], ["updated_at", "2015-05-02 13:53:50.816174"]]  (16.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 186], ["created_at", "2015-05-02 13:53:50.853605"], ["updated_at", "2015-05-02 13:53:50.853605"]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 186], ["created_at", "2015-05-02 13:53:50.876042"], ["updated_at", "2015-05-02 13:53:50.876042"]]  (25.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 186], ["updated_at", "2015-05-02 13:53:50.903280"], ["id", 186]]  (21.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:53:50', '2015-05-02 13:53:50', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:53:50', '2015-05-02 13:53:50', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:53:50', '2015-05-02 13:53:50', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:53:50', '2015-05-02 13:53:50', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:53:50', '2015-05-02 13:53:50', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:53:50', '2015-05-02 13:53:50', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '480171dbd7566517727c93d59426dd42', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7b22c86896d94c521084ff3ffc1dbec9', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '01f50a16e63a1ee187bfef95d4476063', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ac5695a66053f7f8c67eafd40a73c270', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '351c987f67bc484c4fdc8914e6199996', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd359e009e7d4e6c6363074e42a693c73', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '861c432a5c3728bdb55af2159244359c', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '045cf3d613254bd298490935caa25817', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '38209bb4a92243c86b23cac20bfba67b', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd52cbec35bd911e269c257c370ed7ad5', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2471786845bc7ce2412f43ed0444dc4d', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '09c2f62420b81ceee05592bf15ed42e4', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a47b5d4911bcdbc8df6bacecf0b15266', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bb14e0ccebf74c41dcb40965d667f91c', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '05ef767e88fed2d60246db1bcef467b3', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:53:51', '2015-05-02 13:53:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:53:51', '2015-05-02 13:53:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:53:51', '2015-05-02 13:53:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b49177baf87427e60b3b5ac64392b303', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'adf90ae75ea2006a12e284c9dde47dd6', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '29d1a6f255c93cf0337a676ae2257c9e', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '298f22756b32aebd4e88925c5629a8d8', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4d868eec51e5d3e51b6a7e750e768112', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '00ee1e39629d1ddad0a604ad206f09fd', '2015-05-02 13:53:51', '2015-05-02 13:53:51', 410780858)  (25.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:53:51.115866"], ["updated_at", "2015-05-02 13:53:51.115866"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:53:51.122929"], ["updated_at", "2015-05-02 13:53:51.122929"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:53:51.124083"], ["updated_at", "2015-05-02 13:53:51.124083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:53:51.144661"], ["updated_at", "2015-05-02 13:53:51.144661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:53:51.150003"], ["updated_at", "2015-05-02 13:53:51.150003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:53:51.153682"], ["updated_at", "2015-05-02 13:53:51.153682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186))  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:53:51.163498"], ["updated_at", "2015-05-02 13:53:51.163498"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:53:51.164951"], ["updated_at", "2015-05-02 13:53:51.164951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:53:51.169456"], ["updated_at", "2015-05-02 13:53:51.169456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:53:51.170939"], ["updated_at", "2015-05-02 13:53:51.170939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:53:51.172287"], ["updated_at", "2015-05-02 13:53:51.172287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:53:51.178364"], ["updated_at", "2015-05-02 13:53:51.178364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:53:51.179761"], ["updated_at", "2015-05-02 13:53:51.179761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:53:51.181040"], ["updated_at", "2015-05-02 13:53:51.181040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:53:51.192740"], ["updated_at", "2015-05-02 13:53:51.192740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:53:51.194588"], ["updated_at", "2015-05-02 13:53:51.194588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:53:51.195975"], ["updated_at", "2015-05-02 13:53:51.195975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:53:51.205215"], ["updated_at", "2015-05-02 13:53:51.205215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 187], ["created_at", "2015-05-02 13:53:51.207205"], ["updated_at", "2015-05-02 13:53:51.207205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 187], ["created_at", "2015-05-02 13:53:51.209090"], ["updated_at", "2015-05-02 13:53:51.209090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 187], ["created_at", "2015-05-02 13:53:51.210979"], ["updated_at", "2015-05-02 13:53:51.210979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:53:51.220786"], ["updated_at", "2015-05-02 13:53:51.220786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:53:51.226959"], ["updated_at", "2015-05-02 13:53:51.226959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:53:51.229309"], ["updated_at", "2015-05-02 13:53:51.229309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:53:51.231301"], ["updated_at", "2015-05-02 13:53:51.231301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 187], ["created_at", "2015-05-02 13:53:51.233127"], ["updated_at", "2015-05-02 13:53:51.233127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 187], ["created_at", "2015-05-02 13:53:51.235026"], ["updated_at", "2015-05-02 13:53:51.235026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 187], ["created_at", "2015-05-02 13:53:51.236851"], ["updated_at", "2015-05-02 13:53:51.236851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 187], ["updated_at", "2015-05-02 13:53:51.238185"], ["id", 187]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 187]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 187]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 187]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 187]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 187]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 187]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 187]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 187]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:53:51.253436"], ["updated_at", "2015-05-02 13:53:51.253436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:53:51.254956"], ["updated_at", "2015-05-02 13:53:51.254956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:53:51.256315"], ["updated_at", "2015-05-02 13:53:51.256315"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:53:51.257589"], ["updated_at", "2015-05-02 13:53:51.257589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:53:51.258905"], ["updated_at", "2015-05-02 13:53:51.258905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:53:51.260182"], ["updated_at", "2015-05-02 13:53:51.260182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:53:51.263698"], ["updated_at", "2015-05-02 13:53:51.263698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:53:51.265163"], ["updated_at", "2015-05-02 13:53:51.265163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:53:51.266542"], ["updated_at", "2015-05-02 13:53:51.266542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:53:51.267821"], ["updated_at", "2015-05-02 13:53:51.267821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:53:51.269100"], ["updated_at", "2015-05-02 13:53:51.269100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:53:51.270361"], ["updated_at", "2015-05-02 13:53:51.270361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 186]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 186]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 186]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 186]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 186]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 186]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 186]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 186]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:55:37.310656"], ["updated_at", "2015-05-02 13:55:37.310656"]]  (20.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 187], ["created_at", "2015-05-02 13:55:37.365646"], ["updated_at", "2015-05-02 13:55:37.365646"]]  (18.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 187], ["created_at", "2015-05-02 13:55:37.410285"], ["updated_at", "2015-05-02 13:55:37.410285"]]  (22.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 187], ["created_at", "2015-05-02 13:55:37.441585"], ["updated_at", "2015-05-02 13:55:37.441585"]]  (18.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 187], ["updated_at", "2015-05-02 13:55:37.461490"], ["id", 187]]  (28.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dd5bcfc97f9450eae875670abd6506db', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c8bbcfb2cc34b983b6475be257d31084', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4c74d7bc56ab3cf14e03a1a8b3fc16c0', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c7bbf94052c8a16d3e7da76a1ba19a07', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6f85b728e6a074c86497a21afe764bad', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '060a5b6a7a65bccea23602bb25dfa048', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fe8c10a760d68e81bf13a001335e4681', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '72a4518a25907eb57390b5f1cf1232b5', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '818a3a441bba8b08db61e4d85107024b', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1a27af767024bc298ca1d53f572f0f9a', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6f7b5fd7213161ffe3eadb85968d34d3', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '94a01a57782edf7323b5ec251d4805f8', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb65122773375d3ab1115b25833879ed', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd5f23e360aa241be084fb4c811690858', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a39d68f9bae29cd06b3dde05646a6b27', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:55:37', '2015-05-02 13:55:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:55:37', '2015-05-02 13:55:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:55:37', '2015-05-02 13:55:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e9542e31f08ffaad9f419c23c16c2ab8', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a4dddeb0001990ead00ef363d17f58cd', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ca4c03f21499d1d0828d17dfe42e6b70', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f6d63a17e040d65633883aa632322544', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '60c0b95e8f0f9c877f306817ed1f095c', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f240475e84269a822d8163383a747789', '2015-05-02 13:55:37', '2015-05-02 13:55:37', 410780858)  (28.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:55:37.666907"], ["updated_at", "2015-05-02 13:55:37.666907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:55:37.668654"], ["updated_at", "2015-05-02 13:55:37.668654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:55:37.670057"], ["updated_at", "2015-05-02 13:55:37.670057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:55:37.671408"], ["updated_at", "2015-05-02 13:55:37.671408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:55:37.672955"], ["updated_at", "2015-05-02 13:55:37.672955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:55:37.674671"], ["updated_at", "2015-05-02 13:55:37.674671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:55:37.678477"], ["updated_at", "2015-05-02 13:55:37.678477"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:55:37.680273"], ["updated_at", "2015-05-02 13:55:37.680273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:55:37.682141"], ["updated_at", "2015-05-02 13:55:37.682141"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:55:37.687711"], ["updated_at", "2015-05-02 13:55:37.687711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 188], ["created_at", "2015-05-02 13:55:37.696225"], ["updated_at", "2015-05-02 13:55:37.696225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 188], ["created_at", "2015-05-02 13:55:37.699009"], ["updated_at", "2015-05-02 13:55:37.699009"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 188], ["created_at", "2015-05-02 13:55:37.701341"], ["updated_at", "2015-05-02 13:55:37.701341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 188], ["updated_at", "2015-05-02 13:55:37.703071"], ["id", 188]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 188]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 188]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 188]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 188]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 188]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 188]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 188]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 188]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]]  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:55:37.722340"], ["updated_at", "2015-05-02 13:55:37.722340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:55:37.724193"], ["updated_at", "2015-05-02 13:55:37.724193"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:55:37.725870"], ["updated_at", "2015-05-02 13:55:37.725870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:55:37.741655"], ["updated_at", "2015-05-02 13:55:37.741655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:55:37.743538"], ["updated_at", "2015-05-02 13:55:37.743538"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:55:37.745628"], ["updated_at", "2015-05-02 13:55:37.745628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:55:37.747365"], ["updated_at", "2015-05-02 13:55:37.747365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:55:37.748943"], ["updated_at", "2015-05-02 13:55:37.748943"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:55:37.750582"], ["updated_at", "2015-05-02 13:55:37.750582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:55:37.763757"], ["updated_at", "2015-05-02 13:55:37.763757"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:55:37.765281"], ["updated_at", "2015-05-02 13:55:37.765281"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:55:37.769398"], ["updated_at", "2015-05-02 13:55:37.769398"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:55:37.774624"], ["updated_at", "2015-05-02 13:55:37.774624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:55:37.779655"], ["updated_at", "2015-05-02 13:55:37.779655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187))  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:55:37.792785"], ["updated_at", "2015-05-02 13:55:37.792785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:55:37.794306"], ["updated_at", "2015-05-02 13:55:37.794306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:55:37.795761"], ["updated_at", "2015-05-02 13:55:37.795761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:55:37.801722"], ["updated_at", "2015-05-02 13:55:37.801722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:55:37.810222"], ["updated_at", "2015-05-02 13:55:37.810222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:55:37.813587"], ["updated_at", "2015-05-02 13:55:37.813587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:55:37.816113"], ["updated_at", "2015-05-02 13:55:37.816113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 188], ["created_at", "2015-05-02 13:55:37.818204"], ["updated_at", "2015-05-02 13:55:37.818204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 188], ["created_at", "2015-05-02 13:55:37.820220"], ["updated_at", "2015-05-02 13:55:37.820220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 188], ["created_at", "2015-05-02 13:55:37.822124"], ["updated_at", "2015-05-02 13:55:37.822124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:55:37.840113"], ["updated_at", "2015-05-02 13:55:37.840113"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:55:37.841457"], ["updated_at", "2015-05-02 13:55:37.841457"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:55:37.842518"], ["updated_at", "2015-05-02 13:55:37.842518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 187]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 187]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 187]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 187]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 187]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 187]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 187]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 187]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:56:35.453512"], ["updated_at", "2015-05-02 13:56:35.453512"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 188], ["created_at", "2015-05-02 13:56:35.492765"], ["updated_at", "2015-05-02 13:56:35.492765"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 188], ["created_at", "2015-05-02 13:56:35.519200"], ["updated_at", "2015-05-02 13:56:35.519200"]]  (17.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 188], ["created_at", "2015-05-02 13:56:35.552854"], ["updated_at", "2015-05-02 13:56:35.552854"]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 188], ["updated_at", "2015-05-02 13:56:35.568184"], ["id", 188]]  (16.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '03a9ee716930586d28dfd9deb686146e', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2ffd961d909451b93252ef7f35c8040b', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4267701008f4ae22d3faeed62a54da48', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7e2615f57b5b51e0fffe42a0b1382972', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '51e0b38be48be1b8de8b6b97a38f9410', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '319b8f8bb169535db6d0bfe37df4c770', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd36ae5125d0a1bff89f5e7cc59f1e519', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '869fbd54112258aa22b3f3e0e979f5aa', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7560dd8c226ce85f76ad59390087da13', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7f423b0f9cc079dda4c923177a80a894', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f9ca4802f2dbb139406b629ee9ff336e', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2925150e14f218c6bd8c8c62be88bc16', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '31a407624ce05b5bc5366908f3612e9f', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fa7ae9a769a3c6e16cecffb2ed692202', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '546a575f92cc4aafdfe6059f1cda9e7f', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:56:35', '2015-05-02 13:56:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:56:35', '2015-05-02 13:56:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 13:56:35', '2015-05-02 13:56:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6d6c6b2650ca2efadf7e3629a68a6cf9', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e167849ff5e2374512ced36632c1e9f2', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '052f25a7ec7a93003e400526b72c1b4c', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b8f7823d9bf8219a150788d590537348', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b07079f70b64fbc7df7b2917799614e0', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ce88c06cde69fa6209187c63837f5f24', '2015-05-02 13:56:35', '2015-05-02 13:56:35', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.3ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:56:35.786145"], ["updated_at", "2015-05-02 13:56:35.786145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 189], ["created_at", "2015-05-02 13:56:35.788138"], ["updated_at", "2015-05-02 13:56:35.788138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 189], ["created_at", "2015-05-02 13:56:35.790000"], ["updated_at", "2015-05-02 13:56:35.790000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 189], ["created_at", "2015-05-02 13:56:35.791858"], ["updated_at", "2015-05-02 13:56:35.791858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 189], ["updated_at", "2015-05-02 13:56:35.793159"], ["id", 189]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 189]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 189]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 189]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 189]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 189]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 189]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 189]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 189]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:56:35.810804"], ["updated_at", "2015-05-02 13:56:35.810804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:56:35.815905"], ["updated_at", "2015-05-02 13:56:35.815905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 189], ["created_at", "2015-05-02 13:56:35.817953"], ["updated_at", "2015-05-02 13:56:35.817953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 189], ["created_at", "2015-05-02 13:56:35.819850"], ["updated_at", "2015-05-02 13:56:35.819850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 189], ["created_at", "2015-05-02 13:56:35.821659"], ["updated_at", "2015-05-02 13:56:35.821659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:56:35.831725"], ["updated_at", "2015-05-02 13:56:35.831725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:56:35.833349"], ["updated_at", "2015-05-02 13:56:35.833349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:56:35.834701"], ["updated_at", "2015-05-02 13:56:35.834701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:56:35.835964"], ["updated_at", "2015-05-02 13:56:35.835964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:56:35.837223"], ["updated_at", "2015-05-02 13:56:35.837223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:56:35.838617"], ["updated_at", "2015-05-02 13:56:35.838617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:56:35.845625"], ["updated_at", "2015-05-02 13:56:35.845625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 13:56:35.852054"], ["updated_at", "2015-05-02 13:56:35.852054"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 13:56:35.853190"], ["updated_at", "2015-05-02 13:56:35.853190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:56:35.856381"], ["updated_at", "2015-05-02 13:56:35.856381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:56:35.861423"], ["updated_at", "2015-05-02 13:56:35.861423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 13:56:35.865148"], ["updated_at", "2015-05-02 13:56:35.865148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.6ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188))  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 13:56:35.882560"], ["updated_at", "2015-05-02 13:56:35.882560"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 13:56:35.883791"], ["updated_at", "2015-05-02 13:56:35.883791"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 13:56:35.884745"], ["updated_at", "2015-05-02 13:56:35.884745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:56:35.907201"], ["updated_at", "2015-05-02 13:56:35.907201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:56:35.908664"], ["updated_at", "2015-05-02 13:56:35.908664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:56:35.909933"], ["updated_at", "2015-05-02 13:56:35.909933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:56:35.914045"], ["updated_at", "2015-05-02 13:56:35.914045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:56:35.915406"], ["updated_at", "2015-05-02 13:56:35.915406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:56:35.916672"], ["updated_at", "2015-05-02 13:56:35.916672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:56:35.920837"], ["updated_at", "2015-05-02 13:56:35.920837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:56:35.922193"], ["updated_at", "2015-05-02 13:56:35.922193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:56:35.923466"], ["updated_at", "2015-05-02 13:56:35.923466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 13:56:35.928253"], ["updated_at", "2015-05-02 13:56:35.928253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 13:56:35.930600"], ["updated_at", "2015-05-02 13:56:35.930600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 13:56:35.932386"], ["updated_at", "2015-05-02 13:56:35.932386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 13:56:35.933962"], ["updated_at", "2015-05-02 13:56:35.933962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 13:56:35.935308"], ["updated_at", "2015-05-02 13:56:35.935308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 13:56:35.936555"], ["updated_at", "2015-05-02 13:56:35.936555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 13:56:35.940016"], ["updated_at", "2015-05-02 13:56:35.940016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 188]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 188]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 188]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 188]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 188]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 188]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 188]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 188]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 21:39:24.455741"], ["updated_at", "2015-05-02 21:39:24.455741"]]  (18.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 189], ["created_at", "2015-05-02 21:39:24.510768"], ["updated_at", "2015-05-02 21:39:24.510768"]]  (18.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 189], ["created_at", "2015-05-02 21:39:24.549348"], ["updated_at", "2015-05-02 21:39:24.549348"]]  (23.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 189], ["created_at", "2015-05-02 21:39:24.588262"], ["updated_at", "2015-05-02 21:39:24.588262"]]  (26.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 189], ["updated_at", "2015-05-02 21:39:24.618448"], ["id", 189]]  (30.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '624d99b9f7bc04eb21a87e96caa5f673', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '98f7b0c485b701654b723ee2115520b5', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6d5bebb12b5c2f48098a31a168c04760', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1a23c1799dbedc471ad2b21414e35b3c', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '79a283af9fe572c075d59c7a1d098caf', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bcbbf9156a89285c134e20c45db166d4', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '636839b977a5b58364f6dde7847ab23d', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '81749e463a0bec55f833cf7f51dcbde5', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5a7dd6d11c69c1190ef717420c7faf17', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2a2419baf38082a41e30ebf1505e28ed', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a7fe93454237df4c546e0837d3ac6b0d', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bba09cb237a76e8a6840753475dd44f3', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '838b13164a4ed86e5affaddff78863ed', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2b56d842a0da3696a102fba76f413d00', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '55537bb1a5c4eef0384ea190ec7968c5', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 21:39:24', '2015-05-02 21:39:24', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 21:39:24', '2015-05-02 21:39:24', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-02 21:39:24', '2015-05-02 21:39:24', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1d45b90df220ac55d2548179454f9658', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'efa55fe2f0b4c541f4def2a25eb1d5cb', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '02e56a69ffd90b6a41b61b7ef436dee7', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4a2f27b3562fb1ecad9a78d5b9fa1bb4', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '25fa5d96cc7514a1e895b2b84cdb8bde', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '534ede4dc877bcdd3f3289741d25d718', '2015-05-02 21:39:24', '2015-05-02 21:39:24', 410780858)  (13.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 189]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 189]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 189]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 189]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 189]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 189]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 189]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 189]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 21:39:24.886060"], ["updated_at", "2015-05-02 21:39:24.886060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-02 21:39:24.912551"], ["updated_at", "2015-05-02 21:39:24.912551"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-02 21:39:24.913831"], ["updated_at", "2015-05-02 21:39:24.913831"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-02 21:39:24.914835"], ["updated_at", "2015-05-02 21:39:24.914835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 21:39:24.935333"], ["updated_at", "2015-05-02 21:39:24.935333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 21:39:24.940621"], ["updated_at", "2015-05-02 21:39:24.940621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-02 21:39:24.944676"], ["updated_at", "2015-05-02 21:39:24.944676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189))  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 21:39:24.949540"], ["updated_at", "2015-05-02 21:39:24.949540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 21:39:24.951018"], ["updated_at", "2015-05-02 21:39:24.951018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 21:39:24.952367"], ["updated_at", "2015-05-02 21:39:24.952367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 21:39:24.953880"], ["updated_at", "2015-05-02 21:39:24.953880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 21:39:24.955177"], ["updated_at", "2015-05-02 21:39:24.955177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 21:39:24.956414"], ["updated_at", "2015-05-02 21:39:24.956414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 21:39:24.960075"], ["updated_at", "2015-05-02 21:39:24.960075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 21:39:24.963722"], ["updated_at", "2015-05-02 21:39:24.963722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 21:39:24.965161"], ["updated_at", "2015-05-02 21:39:24.965161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 21:39:24.966587"], ["updated_at", "2015-05-02 21:39:24.966587"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 21:39:24.985048"], ["updated_at", "2015-05-02 21:39:24.985048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 21:39:24.986499"], ["updated_at", "2015-05-02 21:39:24.986499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 21:39:24.987815"], ["updated_at", "2015-05-02 21:39:24.987815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 21:39:24.990321"], ["updated_at", "2015-05-02 21:39:24.990321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 190], ["created_at", "2015-05-02 21:39:24.992216"], ["updated_at", "2015-05-02 21:39:24.992216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 190], ["created_at", "2015-05-02 21:39:24.994044"], ["updated_at", "2015-05-02 21:39:24.994044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 190], ["created_at", "2015-05-02 21:39:24.996074"], ["updated_at", "2015-05-02 21:39:24.996074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 190], ["updated_at", "2015-05-02 21:39:24.997396"], ["id", 190]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 190]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 190]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 190]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 190]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 190]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 190]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 190]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 190]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-02 21:39:25.013995"], ["updated_at", "2015-05-02 21:39:25.013995"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-02 21:39:25.015129"], ["updated_at", "2015-05-02 21:39:25.015129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 21:39:25.018224"], ["updated_at", "2015-05-02 21:39:25.018224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 190], ["created_at", "2015-05-02 21:39:25.020082"], ["updated_at", "2015-05-02 21:39:25.020082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 190], ["created_at", "2015-05-02 21:39:25.021939"], ["updated_at", "2015-05-02 21:39:25.021939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 190], ["created_at", "2015-05-02 21:39:25.023745"], ["updated_at", "2015-05-02 21:39:25.023745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 21:39:25.036239"], ["updated_at", "2015-05-02 21:39:25.036239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 21:39:25.037881"], ["updated_at", "2015-05-02 21:39:25.037881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 21:39:25.039239"], ["updated_at", "2015-05-02 21:39:25.039239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-02 21:39:25.040503"], ["updated_at", "2015-05-02 21:39:25.040503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-02 21:39:25.041748"], ["updated_at", "2015-05-02 21:39:25.041748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-02 21:39:25.043082"], ["updated_at", "2015-05-02 21:39:25.043082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-02 21:39:25.046958"], ["updated_at", "2015-05-02 21:39:25.046958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-02 21:39:25.051872"], ["updated_at", "2015-05-02 21:39:25.051872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-02 21:39:25.053286"], ["updated_at", "2015-05-02 21:39:25.053286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-02 21:39:25.054635"], ["updated_at", "2015-05-02 21:39:25.054635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.4ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '043ce4df5da930ea3567b1f781c22c7b', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eac2887684040986590e0b1ec0b3dd1a', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1d38fe106126723b4c283378e6f67750', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0e758b40f567be0e70e6762a2cd011c5', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9cfdd19e8e892f3d3b3b1f278786e59b', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ec6d97feec3211a381d23d374d900a71', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3b52e52b7d8c0e9af3f6de3010026d3a', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '508a2b268fb764fe2cd39deb00786852', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '18d9ae883228a76666eeb337ce61d72f', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6e84ff8ec62b0e31df0f656f911e03d1', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7584c0202163518c7c07b6373470d895', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a7abace44ce5df390ada81acd5f386df', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '707d8a05daa091b3d89d02e52974ab42', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'da496c5e89ab9e085928b10c4ed77db4', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c7609846dca6d99778038e458c61239c', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 21:55:19', '2015-05-04 21:55:19', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 21:55:19', '2015-05-04 21:55:19', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 21:55:19', '2015-05-04 21:55:19', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '593e13464ec1e78976dd73b864e40025', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6a5b08bc224dabe33aa0585681248593', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e24d8af3d9a5fc6117748a49e0bf4d0b', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '65c022e6cc12247cd65acf1aa901ce19', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0a07add99147746437ef919b21ece20c', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e72de9f96b58f2bba5d61f31c323915d', '2015-05-04 21:55:19', '2015-05-04 21:55:19', 410780858)  (43.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 21:55:19.303980"], ["updated_at", "2015-05-04 21:55:19.303980"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f1b591c9871d3a84e5e8bc26f8a40953', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1cc189c77a8d7559d9151a2ac0257b65', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '059afd5658a5bd4cf2aa9cb4a6ba7bf4', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8439ab5c828264ff4ca007121bbf800d', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9b901c43883d89fdf7055dbc95477e53', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '403aef2cce24556f8721e64b6251e503', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b1faae5c81299e3a3d85b6324c048d6f', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '916083f8fb76438f24b5e36bd88b3b96', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'eac2344a6f538391af636668dd4253ab', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b63aa3f9e5b207c0417e03c392ab944c', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '67349d4244ed8f45a4f1f3ca6ed76ad4', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd5f85b79f67d8898a8494cb80781c6af', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0efcf0584c54b3a1c0c8ed90b1c59981', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '33515e5c66fb8b3119592a63704f7013', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b724a7a48be32a3f8d1972b51b9783d', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 21:55:51', '2015-05-04 21:55:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 21:55:51', '2015-05-04 21:55:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 21:55:51', '2015-05-04 21:55:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0abbda421200d093c13224d46c027e03', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd8137c12707cb14c32f753b8ac0c2582', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'aab1aee34a3997db1f6f81bb191ec2f1', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3496b19c15b0b98a5415fa483eb81f6f', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '08fc8113b81c1cca52d733dc7723a1f6', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e5c07a486a7e773a3c335fa659051168', '2015-05-04 21:55:51', '2015-05-04 21:55:51', 410780858)  (24.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 21:55:51.358467"], ["updated_at", "2015-05-04 21:55:51.358467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aa91a9277e645d7a93a0899789fd9fbb', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bd666e685ff32c9013d3a27ad1def58a', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '312fc8635e716ca40416ab7dc1203780', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3ff750cdbf52180d13a55260e5cf15cd', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '83376061957f0f60558e6c3066bc238b', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '346b95ee4ad4424169879bc49f5dcf7a', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2e4d3c5721d52dc863831e4e979b50da', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6bf2cdcbebb988cebdbc887e91c16455', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a0ca264b08e634d715f4170c314a82a0', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '09eb2785502e194173a7e8b64d8ccce5', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c7752e296b4a04aa0d75d4100514a936', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd2e74508e8d615bd08a3009d18725336', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'becf4fd6ab5e8f8e1ac90c65876e129f', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a18c7b4ae82efe66048bd5775d430007', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5f1a61735e2b74d738e258592b0118bb', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:00:30', '2015-05-04 22:00:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:00:30', '2015-05-04 22:00:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:00:30', '2015-05-04 22:00:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6b1c244ad3ead86d3c7286f33b2bae7a', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '607919ce36989124134260a49410266d', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '93a1457bed4fab97d0871a907068b390', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7f5a74adaa9cfa563a5cf999c8f83fb9', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0b215fa69a5ec3dec383cb85b9caf19f', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '53f2cc7ec9285250f99718e3ac2bbf2e', '2015-05-04 22:00:30', '2015-05-04 22:00:30', 410780858)  (23.3ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:00:30.597603"], ["updated_at", "2015-05-04 22:00:30.597603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:01:15.705575"], ["updated_at", "2015-05-04 22:01:15.705575"]]  (28.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 190], ["created_at", "2015-05-04 22:01:15.762734"], ["updated_at", "2015-05-04 22:01:15.762734"]]  (21.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 190], ["created_at", "2015-05-04 22:01:15.798090"], ["updated_at", "2015-05-04 22:01:15.798090"]]  (17.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 190], ["created_at", "2015-05-04 22:01:15.833845"], ["updated_at", "2015-05-04 22:01:15.833845"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 190], ["updated_at", "2015-05-04 22:01:15.847883"], ["id", 190]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '37cef28cc40295cb058a790671f0ba5c', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a862c518727a3866142dbf59d62988fe', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '377da31fe8229946dec33888ab8dc8d7', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e6daebf824062abfed3264780131ec5e', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '668a1331600eb4f495c31f1f9f6ecf1e', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe1b2b40288473eb207a937956dae658', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e0c63378e29099571617a607ad703f95', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '51b5eb066e2f54567298b9eb3672ef14', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '363d4d9f83d3992b53db46f507a8987b', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '636d5d863809d44fb973a21db31244ae', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1607eb768326b38a963a1d7becbe441f', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '60765d8dfdf597cd29ae32d0673b32d2', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7ca827aed5116f518a905f9fca4ea9e3', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a6c3df9f50d5dfb3509ba776c74f5206', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2ebcfabff67b0564ce62f2fb0aa3b665', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:01:15', '2015-05-04 22:01:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:01:15', '2015-05-04 22:01:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:01:15', '2015-05-04 22:01:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '46e0af9be1effe26f4e0fbe4484624ec', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0b3264cbfdd3019e79d23e61f1a1013c', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f313797214fe3c8fbed8472df31a4dec', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b42d77b76cc93967de6f6bc523446aca', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7c5d93e9f999f47dd52345e698db3c01', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0435f369027cbc5dbd3dbc409d228108', '2015-05-04 22:01:15', '2015-05-04 22:01:15', 410780858)  (18.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:01:15.975752"], ["updated_at", "2015-05-04 22:01:15.975752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:01:15.978020"], ["updated_at", "2015-05-04 22:01:15.978020"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:01:15.980368"], ["updated_at", "2015-05-04 22:01:15.980368"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:01:16.015743"], ["updated_at", "2015-05-04 22:01:16.015743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:01:16.021044"], ["updated_at", "2015-05-04 22:01:16.021044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:01:16.022478"], ["updated_at", "2015-05-04 22:01:16.022478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:01:16.023847"], ["updated_at", "2015-05-04 22:01:16.023847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:01:16.025110"], ["updated_at", "2015-05-04 22:01:16.025110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:01:16.026428"], ["updated_at", "2015-05-04 22:01:16.026428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:01:16.027702"], ["updated_at", "2015-05-04 22:01:16.027702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-04 22:01:16.039468"], ["updated_at", "2015-05-04 22:01:16.039468"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-04 22:01:16.040691"], ["updated_at", "2015-05-04 22:01:16.040691"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-04 22:01:16.041764"], ["updated_at", "2015-05-04 22:01:16.041764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:01:16.063157"], ["updated_at", "2015-05-04 22:01:16.063157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:01:16.072761"], ["updated_at", "2015-05-04 22:01:16.072761"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:01:16.074104"], ["updated_at", "2015-05-04 22:01:16.074104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:01:16.077307"], ["updated_at", "2015-05-04 22:01:16.077307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:01:16.078850"], ["updated_at", "2015-05-04 22:01:16.078850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:01:16.080392"], ["updated_at", "2015-05-04 22:01:16.080392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:01:16.087255"], ["updated_at", "2015-05-04 22:01:16.087255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:01:16.090811"], ["updated_at", "2015-05-04 22:01:16.090811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:01:16.093212"], ["updated_at", "2015-05-04 22:01:16.093212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 191], ["created_at", "2015-05-04 22:01:16.095176"], ["updated_at", "2015-05-04 22:01:16.095176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 191], ["created_at", "2015-05-04 22:01:16.097223"], ["updated_at", "2015-05-04 22:01:16.097223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 191], ["created_at", "2015-05-04 22:01:16.099130"], ["updated_at", "2015-05-04 22:01:16.099130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:01:16.109333"], ["updated_at", "2015-05-04 22:01:16.109333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:01:16.110786"], ["updated_at", "2015-05-04 22:01:16.110786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:01:16.112060"], ["updated_at", "2015-05-04 22:01:16.112060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:01:16.115380"], ["updated_at", "2015-05-04 22:01:16.115380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:01:16.119092"], ["updated_at", "2015-05-04 22:01:16.119092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-04 22:01:16.122757"], ["updated_at", "2015-05-04 22:01:16.122757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190))  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:01:16.128426"], ["updated_at", "2015-05-04 22:01:16.128426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 191], ["created_at", "2015-05-04 22:01:16.130349"], ["updated_at", "2015-05-04 22:01:16.130349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 191], ["created_at", "2015-05-04 22:01:16.132217"], ["updated_at", "2015-05-04 22:01:16.132217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 191], ["created_at", "2015-05-04 22:01:16.134048"], ["updated_at", "2015-05-04 22:01:16.134048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 191], ["updated_at", "2015-05-04 22:01:16.135401"], ["id", 191]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 191]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 191]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 191]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 191]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 191]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 191]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 191]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 191]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:01:16.161596"], ["updated_at", "2015-05-04 22:01:16.161596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:01:16.163166"], ["updated_at", "2015-05-04 22:01:16.163166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:01:16.164478"], ["updated_at", "2015-05-04 22:01:16.164478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:01:16.165763"], ["updated_at", "2015-05-04 22:01:16.165763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:01:16.167042"], ["updated_at", "2015-05-04 22:01:16.167042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:01:16.168299"], ["updated_at", "2015-05-04 22:01:16.168299"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 190]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 190]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 190]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 190]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 190]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 190]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 190]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 190]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4bacf5240f2e50b529bf169fd62158ff', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7ad7723298caf637889ed950ebc48102', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6e2188d7579872301b87cf779b9bebf7', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9d271854ae128297958ddd30ad6ab89a', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3a7cb8612f8d66fd786becd4ce5ee019', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4927e308d774c3be01d3636af50f224b', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6bc2d1ffcf75b5e5b84a60898c57e5c8', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4fa1e169f638f6f05457dee6ba9f8d9b', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a9de28fe3e8bc206bb5d6084d37765eb', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6dc702c0beec22c7c0a75a6c5b19f261', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6fbe2124f81d3949f4b26e7d5c20fab6', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '408848ff7976bcdba3e2bdf044400170', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '07bd5ea85061fbb72439a39977090c04', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a913e4d65e6fbd7045988a6182b897d9', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2c0bdbf95e2f698144767cca93dd4c2a', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:13:55', '2015-05-04 22:13:55', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:13:55', '2015-05-04 22:13:55', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:13:55', '2015-05-04 22:13:55', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '596d2496f92277beee59fdfe96ca1582', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '016554d93cb15602d9d2c33714e163b0', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '563e238cbc25dc565735d944d8a0cb98', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2f5b45e0d7175ac21e3f228210bb65ce', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '67410e88857eb45711d0b07bffa02be1', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eed1b437f96fb0f948bef6dcda49c556', '2015-05-04 22:13:55', '2015-05-04 22:13:55', 410780858)  (18.5ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:13:55.606303"], ["updated_at", "2015-05-04 22:13:55.606303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 191], ["created_at", "2015-05-04 22:13:55.625885"], ["updated_at", "2015-05-04 22:13:55.625885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f7781fc66d81549f6987bedc7052f9b4', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd2760818012ea965678c03634fd92833', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b17f4b42f14cc5cfef4bea500d486657', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7cb39225826090a2f5e88df24e9e7a42', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '31f5d0c606ca030b8f3106f61b1828a3', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '23bd0eab88ae668f869bf0ecad99ef74', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'df534c9dd1664e340aa8a38f088dcad6', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ce2ee339f6c6aef45a163e68b4bb69f3', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '85d8d2b814008f40055152db471b587b', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '515f4416f1ab3f459c76c2b15c355cdf', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'de4f677559265055f42ff9fa089ea26c', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ca739c6d8b99920e1eb8bdebcecd684f', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '50beff739f14f1ec5087afe701e0078b', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd108aba4cecfbde7edda39db1fe716f4', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7ff65f54663b8c9793fad53f9163de69', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:17:30', '2015-05-04 22:17:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:17:30', '2015-05-04 22:17:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:17:30', '2015-05-04 22:17:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a415d1083379130381ab1108aaff6cad', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0869dea24c43e0dddde917ac2111bae2', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c531601f9a8c7fd0e4d21a3e374b789f', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'acf003899a4487c148157162c979bd92', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5f00abb0890328448e275aa691cbdf79', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4b206021840f682e5e30a35725f5650d', '2015-05-04 22:17:30', '2015-05-04 22:17:30', 410780858)  (13.8ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:17:30.296295"], ["updated_at", "2015-05-04 22:17:30.296295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 191], ["created_at", "2015-05-04 22:17:30.315841"], ["updated_at", "2015-05-04 22:17:30.315841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 396855775, 'Address', 1057142427) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4e7d7e8d514be571e117515f19492847', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1084dcfaaf923b4212dfe1709a53bb0f', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '109acf17dc9b558f46a733209f91f9ff', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1f765eeb9f9720926d805ebc36fed62f', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4479887662309b8d9545a59c7a7d6013', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a3b50b43d6a114b1980708d9c749891', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'cd51cbc5094bde582f3ecd811d497501', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cc73b1310eaf422d7fa041fc0f60f6df', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8258eadf7e5011f07abbc3d4f6f7e9ff', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '30db021a582e6bffb16fe65b5e58335e', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '799e600f4a9c10f77543aba18dc49fdf', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd76cca393e6ffc4f08db8d1649227b1c', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 483796712) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'db43641118d6310197e916e7034b8d6e', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f027bfd6a7bea8545b9b5bb6caff6c89', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '563b9e62ba2b90c9cdca96a5f5bc0dbc', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:17:51', '2015-05-04 22:17:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:17:51', '2015-05-04 22:17:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:17:51', '2015-05-04 22:17:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd02d0b805ff9d5d5d8c8c7cff002c17d', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3bff2c1f862e6eefd4f0c6b3a63b79d5', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b1846090ca8e5f1295206f55a4959282', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '530f430b092c16c8f559cd0bc852c4f1', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5385a908a9a011addf97ae16344d58a8', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e15913e3dde8a8416874688c0d70b8b1', '2015-05-04 22:17:51', '2015-05-04 22:17:51', 410780858)  (14.6ms) commit transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:17:51.098768"], ["updated_at", "2015-05-04 22:17:51.098768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 191], ["created_at", "2015-05-04 22:17:51.117443"], ["updated_at", "2015-05-04 22:17:51.117443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:17:51.127432"], ["updated_at", "2015-05-04 22:17:51.127432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f4b6cfcfa2abb605f3ca1251fb1cfba7', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eb75c72ca0be3507c2a0b216388de747', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bed117ed7a516b222fd0a83555c05fe6', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fa5ab609871191445dda849b87fb6378', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '68b053a5ec67738e41cd16a5ee3992b8', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '051f7a3a53ca451e65203459ca621060', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '73c8539835e50c684340fb9ce198cff3', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '55f0a995a9e1f82ab8eee407deb1f1a1', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '69454b3085a0cc6839776361fb335fc9', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fce767e38fecdd88781d497d970d0ff6', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '55bff0b14e968fc6bfa7c4080671ba37', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '22939548821ac85bf0aa1c60b84fbd42', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '77c8caa23664a2c0a719a0d28b701b70', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f28451db3850ea342e9f4ea60dfbdf75', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f50159d9683ea294660aa3d1576ff6f', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:19:02', '2015-05-04 22:19:02', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:19:02', '2015-05-04 22:19:02', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:19:02', '2015-05-04 22:19:02', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '373a41057d5f1998a72eab7724474b0d', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd18eb719b0137fdae840ae5ee9fd6c43', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '05218c951297725e724ec370f40a2b30', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e9068ab5e745d216b84dd6fcd3ff2bf9', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '417a0216468e2000cb6167f00fd386fe', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2f2c87eafb5b2f6de97628cd69109b64', '2015-05-04 22:19:02', '2015-05-04 22:19:02', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:19:02.387694"], ["updated_at", "2015-05-04 22:19:02.387694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 191], ["created_at", "2015-05-04 22:19:02.407487"], ["updated_at", "2015-05-04 22:19:02.407487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:19:02.417577"], ["updated_at", "2015-05-04 22:19:02.417577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '538d45fd20435c45b30c4e36dcfafc08', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '43af6babf2da91824a1e728521659a41', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4d673dc689c7c8dc7c01116a0a01f21d', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '568414d078afb3ff51061f6a7ff5eb85', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4899f8d5f339de5466486fd00a0b70de', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '21f3fcd635a916b7e32ef9648b438abd', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '21bd3279ea07f5bdc6c220f8ed4e72c5', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3edc46d4624506426d2863299c9ea46b', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5864754a96574fd433cd9d65bc1fe92e', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '70ed20b7193cfbeccf2e999a11217607', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '71f0c881573d617cd81ca2719fa51897', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '64df42f9321b49355b34f804d575685a', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '24566ef27eb67887ab0b11ada4b5b07f', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '326cc591be7d88ad9ef1898d11f6000d', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3f32ef1b41c6093a9863b1d6754a5cab', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:20:00', '2015-05-04 22:20:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:20:00', '2015-05-04 22:20:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:20:00', '2015-05-04 22:20:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '636664332dd049e77a981819e496e5b4', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2296477e243648a310afbc27782ea8c9', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '00d73893701101c62dffa3e354f3ea8d', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '829883207b6fcafae009a824c1cdc471', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '89c55434cdc64061035d796bb4663131', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '360a2fd5a7edb9a37cf094e7e6b2f1f5', '2015-05-04 22:20:00', '2015-05-04 22:20:00', 410780858)  (26.6ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:20:00.476470"], ["updated_at", "2015-05-04 22:20:00.476470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 191], ["created_at", "2015-05-04 22:20:00.494722"], ["updated_at", "2015-05-04 22:20:00.494722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:20:00.505714"], ["updated_at", "2015-05-04 22:20:00.505714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd4c61e1cfefdfcf9273027e539cc02f9', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d126f4eadd34a1e07aadba5b4610830', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '629613530550779ade9c20cf1f1dcd56', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'df5ea9c23c786e6318e73bf1ba4547b5', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8286a1f0834ab605411a0aca83b8df82', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7bc286a311b25d0bc3e517620f25d6f8', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b92593edbcd5fc4c5637e88a2615d1ed', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '73c73270fa7f97acd3727300d5473437', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '42b085ae1c8a9dce39fe8f025c7bb8ca', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0b97f64f6c8da4c787e3c72dee15faf1', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '20300d080bf72d860878e936cc9379f1', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a8b9da82f32d7ddaedf7be80db41707e', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8d03ea6ff2f0c324db3e443a40d81d06', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '55c0e6c0a4cb44f889ee616c4bd14675', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5fc3e2f18a9b94645ea5701dd1ad38aa', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:20:23', '2015-05-04 22:20:23', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:20:23', '2015-05-04 22:20:23', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:20:23', '2015-05-04 22:20:23', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '33dc6f6b0b1c84f46c56abc4ce700cb6', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '19b5980aaf00bedfde01f593a3eb6bca', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2bfd26533adde66d22e7111fe8367e12', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '38b584319e724a89b10dc10064006c9f', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a6c7f18404a3ec2605bb6bccfc8c30b6', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '603aad0ec7aacaf0847ee0fb6ecef0e6', '2015-05-04 22:20:23', '2015-05-04 22:20:23', 410780858)  (14.4ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:20:23.995881"], ["updated_at", "2015-05-04 22:20:23.995881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 191], ["created_at", "2015-05-04 22:20:24.014288"], ["updated_at", "2015-05-04 22:20:24.014288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:20:24.024144"], ["updated_at", "2015-05-04 22:20:24.024144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:23:04.821047"], ["updated_at", "2015-05-04 22:23:04.821047"]]  (13.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 191], ["created_at", "2015-05-04 22:23:04.864190"], ["updated_at", "2015-05-04 22:23:04.864190"]]  (22.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 191], ["created_at", "2015-05-04 22:23:04.901075"], ["updated_at", "2015-05-04 22:23:04.901075"]]  (28.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 191], ["created_at", "2015-05-04 22:23:04.942878"], ["updated_at", "2015-05-04 22:23:04.942878"]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 191], ["updated_at", "2015-05-04 22:23:04.957842"], ["id", 191]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55b5e102cc6b34d5d5d6dfc476f9eb26', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c43aa051aa68072e6b52ed70c6a3f301', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b4cfc6d841512d3c133548769f5c869', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '37267175b94f8f193f37904e54f0e096', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd51d9fe39cce14d2ba51654e25e926eb', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd12e8b5c46dd6d5e2baf50f81480ab2a', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e33ede15f080abb4a7f3728a094f6d39', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '123b507f23c9b066455646ce8da2ecd7', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7476084882737585542f521415eff72f', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '84790207217998229199599864c3699f', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9aa5955f37c4bc7c51e0bb018df5355c', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3215d29d03b768e8030e868f9dcc5671', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'da181c84737d68f5c08e648564e209fa', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c5c05285ffa14af9387935b318591c8a', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a58851e95908ad1b8e302c22b4ba70b6', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:23:05', '2015-05-04 22:23:05', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:23:05', '2015-05-04 22:23:05', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:23:05', '2015-05-04 22:23:05', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '270749491fc852773a617860c62fda94', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7156c1339a0ce01dfe26748dedf478be', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '10de7c510dcdfaeadcdf86fa631cbeea', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '63e323fffd6cf148cb6480eb1251ed1c', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1c4a47afa8820f20037bf6103aee1e8f', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c40c44e59a32055afaee8fdba759cd43', '2015-05-04 22:23:05', '2015-05-04 22:23:05', 410780858)  (12.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:23:05.150400"], ["updated_at", "2015-05-04 22:23:05.150400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:23:05.151956"], ["updated_at", "2015-05-04 22:23:05.151956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:23:05.153288"], ["updated_at", "2015-05-04 22:23:05.153288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:23:05.165494"], ["updated_at", "2015-05-04 22:23:05.165494"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:23:05.166938"], ["updated_at", "2015-05-04 22:23:05.166938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:23:05.168192"], ["updated_at", "2015-05-04 22:23:05.168192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:23:05.182534"], ["updated_at", "2015-05-04 22:23:05.182534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 192], ["created_at", "2015-05-04 22:23:05.184657"], ["updated_at", "2015-05-04 22:23:05.184657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:23:05.187426"], ["updated_at", "2015-05-04 22:23:05.187426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:23:05.190349"], ["updated_at", "2015-05-04 22:23:05.190349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:23:05.193978"], ["updated_at", "2015-05-04 22:23:05.193978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-04 22:23:05.197891"], ["updated_at", "2015-05-04 22:23:05.197891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.6ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191))  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:23:05.203664"], ["updated_at", "2015-05-04 22:23:05.203664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:23:05.205115"], ["updated_at", "2015-05-04 22:23:05.205115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:23:05.206412"], ["updated_at", "2015-05-04 22:23:05.206412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:23:05.207725"], ["updated_at", "2015-05-04 22:23:05.207725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:23:05.209101"], ["updated_at", "2015-05-04 22:23:05.209101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:23:05.210658"], ["updated_at", "2015-05-04 22:23:05.210658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:23:05.216258"], ["updated_at", "2015-05-04 22:23:05.216258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:23:05.217771"], ["updated_at", "2015-05-04 22:23:05.217771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:23:05.219119"], ["updated_at", "2015-05-04 22:23:05.219119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:23:05.220349"], ["updated_at", "2015-05-04 22:23:05.220349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:23:05.221620"], ["updated_at", "2015-05-04 22:23:05.221620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:23:05.222846"], ["updated_at", "2015-05-04 22:23:05.222846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:23:05.225365"], ["updated_at", "2015-05-04 22:23:05.225365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.0ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-04 22:23:05.236177"], ["updated_at", "2015-05-04 22:23:05.236177"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-04 22:23:05.237458"], ["updated_at", "2015-05-04 22:23:05.237458"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-04 22:23:05.238596"], ["updated_at", "2015-05-04 22:23:05.238596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:23:05.259902"], ["updated_at", "2015-05-04 22:23:05.259902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:23:05.273316"], ["updated_at", "2015-05-04 22:23:05.273316"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:23:05.274848"], ["updated_at", "2015-05-04 22:23:05.274848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:23:05.278040"], ["updated_at", "2015-05-04 22:23:05.278040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:23:05.281342"], ["updated_at", "2015-05-04 22:23:05.281342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:23:05.282737"], ["updated_at", "2015-05-04 22:23:05.282737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:23:05.284066"], ["updated_at", "2015-05-04 22:23:05.284066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:23:05.290749"], ["updated_at", "2015-05-04 22:23:05.290749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 192], ["created_at", "2015-05-04 22:23:05.292721"], ["updated_at", "2015-05-04 22:23:05.292721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 192], ["created_at", "2015-05-04 22:23:05.294625"], ["updated_at", "2015-05-04 22:23:05.294625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 192], ["created_at", "2015-05-04 22:23:05.296376"], ["updated_at", "2015-05-04 22:23:05.296376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 192], ["updated_at", "2015-05-04 22:23:05.297680"], ["id", 192]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 192]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 192]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 192]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 192]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 192]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 192]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 192]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 192]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:23:05.317089"], ["updated_at", "2015-05-04 22:23:05.317089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 192], ["created_at", "2015-05-04 22:23:05.318957"], ["updated_at", "2015-05-04 22:23:05.318957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 192], ["created_at", "2015-05-04 22:23:05.320720"], ["updated_at", "2015-05-04 22:23:05.320720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 192], ["created_at", "2015-05-04 22:23:05.322464"], ["updated_at", "2015-05-04 22:23:05.322464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 192]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 191]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 191]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 191]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 191]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? LIMIT 1 [["id", 191]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? LIMIT 1 [["id", 191]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? LIMIT 1 [["id", 191]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? LIMIT 1 [["id", 191]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:27:58.687477"], ["updated_at", "2015-05-04 22:27:58.687477"]]  (14.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 192], ["created_at", "2015-05-04 22:27:58.732153"], ["updated_at", "2015-05-04 22:27:58.732153"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 192], ["created_at", "2015-05-04 22:27:58.758241"], ["updated_at", "2015-05-04 22:27:58.758241"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 192], ["created_at", "2015-05-04 22:27:58.785640"], ["updated_at", "2015-05-04 22:27:58.785640"]]  (16.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 192], ["updated_at", "2015-05-04 22:27:58.804534"], ["id", 192]]  (30.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2d900c0a317d26c5d2ed07c38399392f', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd2fcaf3eac81d28451ff03e3256e3638', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6cd889848f98344f02bd44bdb3baa992', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3583eb4f892ba12c9a0d03e6a2a0a50c', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '707d9e4a802f13d22147c7b71a0ba6fc', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9eef18455d2dcfd152c55618c22b67d4', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3dcb3fe0e88135503f891022f73b34df', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6930c242d6414d4166dbbc6ec420fd76', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'aa66ef92e4eda62008093dd09107dcd3', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ac29c2318921c5b3b2955cdd4bc028c0', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5532e5d65e1d5644fd1a08f438a1f4f2', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bf39a6d4b8b8f7620803cb996d822f97', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ab378c849a9e284a484194b94efdc2b4', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cde9f3828605a312315053d0b85647a0', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '54f32f4917cf57942b168308754f1c3e', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:27:58', '2015-05-04 22:27:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:27:58', '2015-05-04 22:27:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:27:58', '2015-05-04 22:27:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '17dfd9e42e2429ebde4dc7b7db0c3827', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5d93454de7fa8fa9c4a5846d9bed0b1e', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3d831a72de4c4eacba94911a252ff34e', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7336cffe4182b139a1345b47dd23348a', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '57fc337675dd6ff3c2a99d3129b1bce3', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1975df1096f9ed5bb32bab36f27b3f70', '2015-05-04 22:27:58', '2015-05-04 22:27:58', 410780858)  (35.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:27:59.063304"], ["updated_at", "2015-05-04 22:27:59.063304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 193], ["created_at", "2015-05-04 22:27:59.065594"], ["updated_at", "2015-05-04 22:27:59.065594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 193], ["created_at", "2015-05-04 22:27:59.067654"], ["updated_at", "2015-05-04 22:27:59.067654"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 193], ["created_at", "2015-05-04 22:27:59.069561"], ["updated_at", "2015-05-04 22:27:59.069561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 193], ["updated_at", "2015-05-04 22:27:59.070951"], ["id", 193]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? [["id", 193]]  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:27:59.080503"], ["updated_at", "2015-05-04 22:27:59.080503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 902541635]]  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:27:59.095477"], ["updated_at", "2015-05-04 22:27:59.095477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:27:59.101529"], ["updated_at", "2015-05-04 22:27:59.101529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-04 22:27:59.106155"], ["updated_at", "2015-05-04 22:27:59.106155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:27:59.117334"], ["updated_at", "2015-05-04 22:27:59.117334"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:27:59.118474"], ["updated_at", "2015-05-04 22:27:59.118474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? [["id", 966629573]]  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:27:59.121648"], ["updated_at", "2015-05-04 22:27:59.121648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:27:59.124258"], ["updated_at", "2015-05-04 22:27:59.124258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:27:59.125670"], ["updated_at", "2015-05-04 22:27:59.125670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:27:59.127037"], ["updated_at", "2015-05-04 22:27:59.127037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-04 22:27:59.142709"], ["updated_at", "2015-05-04 22:27:59.142709"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-04 22:27:59.143919"], ["updated_at", "2015-05-04 22:27:59.143919"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-04 22:27:59.144879"], ["updated_at", "2015-05-04 22:27:59.144879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:27:59.159097"], ["updated_at", "2015-05-04 22:27:59.159097"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 193], ["created_at", "2015-05-04 22:27:59.161188"], ["updated_at", "2015-05-04 22:27:59.161188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 193], ["created_at", "2015-05-04 22:27:59.163162"], ["updated_at", "2015-05-04 22:27:59.163162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 193], ["created_at", "2015-05-04 22:27:59.165104"], ["updated_at", "2015-05-04 22:27:59.165104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? [["id", 193]]  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:27:59.168498"], ["updated_at", "2015-05-04 22:27:59.168498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:27:59.169908"], ["updated_at", "2015-05-04 22:27:59.169908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:27:59.171160"], ["updated_at", "2015-05-04 22:27:59.171160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:27:59.172365"], ["updated_at", "2015-05-04 22:27:59.172365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:27:59.173651"], ["updated_at", "2015-05-04 22:27:59.173651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:27:59.174891"], ["updated_at", "2015-05-04 22:27:59.174891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 902541635]]  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:27:59.187466"], ["updated_at", "2015-05-04 22:27:59.187466"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:27:59.189268"], ["updated_at", "2015-05-04 22:27:59.189268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:27:59.190709"], ["updated_at", "2015-05-04 22:27:59.190709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:27:59.195247"], ["updated_at", "2015-05-04 22:27:59.195247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:27:59.196586"], ["updated_at", "2015-05-04 22:27:59.196586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:27:59.197986"], ["updated_at", "2015-05-04 22:27:59.197986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:27:59.199253"], ["updated_at", "2015-05-04 22:27:59.199253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:27:59.200431"], ["updated_at", "2015-05-04 22:27:59.200431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:27:59.201658"], ["updated_at", "2015-05-04 22:27:59.201658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:27:59.206556"], ["updated_at", "2015-05-04 22:27:59.206556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:27:59.208430"], ["updated_at", "2015-05-04 22:27:59.208430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:27:59.210319"], ["updated_at", "2015-05-04 22:27:59.210319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:27:59.213785"], ["updated_at", "2015-05-04 22:27:59.213785"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:27:59.214730"], ["updated_at", "2015-05-04 22:27:59.214730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:27:59.223888"], ["updated_at", "2015-05-04 22:27:59.223888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 193], ["created_at", "2015-05-04 22:27:59.225929"], ["updated_at", "2015-05-04 22:27:59.225929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? [["id", 193]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:27:59.234133"], ["updated_at", "2015-05-04 22:27:59.234133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:27:59.235617"], ["updated_at", "2015-05-04 22:27:59.235617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:27:59.236855"], ["updated_at", "2015-05-04 22:27:59.236855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? [["id", 192]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.3ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 192]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 192]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 192]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 192]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:28:12.057129"], ["updated_at", "2015-05-04 22:28:12.057129"]]  (34.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 193], ["created_at", "2015-05-04 22:28:12.118376"], ["updated_at", "2015-05-04 22:28:12.118376"]]  (23.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 193], ["created_at", "2015-05-04 22:28:12.155202"], ["updated_at", "2015-05-04 22:28:12.155202"]]  (23.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 193], ["created_at", "2015-05-04 22:28:12.189118"], ["updated_at", "2015-05-04 22:28:12.189118"]]  (22.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 193], ["updated_at", "2015-05-04 22:28:12.213329"], ["id", 193]]  (23.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0c7ed6c1506b8ae48f39a23fe0fa9cf1', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a371cc78a61abf933c9eded0aa36c55f', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd6345b8845fede100d81daf860f1662c', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '253d9a73d5022477c5b05ec58827931d', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '745bf46e92bca2abba3d7ff63712c44d', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f7eccddcc833fa1912406e9a7014051', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '01bb333eadb492e65ad56e7d9551d78b', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '43130066e1de776486067e5e0e3f39fe', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0c13c24a07055d3bd7b5f8b8359dc2ad', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '838ebaf53c519bc7fe8fa2852b3989da', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6a6908fb6e32b81cffd0c7e56bcddc31', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6760a71788b0e2b32e4623f69459e1d7', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '90b81e7b51fbb9d7265e6ef460b1a964', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '646504558edec65431ab7c3a25a610cb', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '939d5d5c5fb84e609babea911ab33d56', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:28:12', '2015-05-04 22:28:12', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:28:12', '2015-05-04 22:28:12', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:28:12', '2015-05-04 22:28:12', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '68450ec550a4b9ede10c44fd58237df2', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '20aac7899addab518ca755c2ec87fa86', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9208037bed1a86f583dd6af31488ee1a', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '53d7826c8692714d3076ed8ba7e02dd4', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4c1e163e4504829cec60a517d900c5f0', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0c1eea1c101b719adc7fa77b86f64b31', '2015-05-04 22:28:12', '2015-05-04 22:28:12', 410780858)  (12.8ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (6.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:28:12.489838"], ["updated_at", "2015-05-04 22:28:12.489838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 194], ["created_at", "2015-05-04 22:28:12.492031"], ["updated_at", "2015-05-04 22:28:12.492031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:28:12.494991"], ["updated_at", "2015-05-04 22:28:12.494991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:28:12.507350"], ["updated_at", "2015-05-04 22:28:12.507350"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:28:12.508560"], ["updated_at", "2015-05-04 22:28:12.508560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-04 22:28:12.522048"], ["updated_at", "2015-05-04 22:28:12.522048"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-04 22:28:12.523373"], ["updated_at", "2015-05-04 22:28:12.523373"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-04 22:28:12.524372"], ["updated_at", "2015-05-04 22:28:12.524372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:28:12.543369"], ["updated_at", "2015-05-04 22:28:12.543369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 194], ["created_at", "2015-05-04 22:28:12.545424"], ["updated_at", "2015-05-04 22:28:12.545424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 194], ["created_at", "2015-05-04 22:28:12.547320"], ["updated_at", "2015-05-04 22:28:12.547320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 194], ["created_at", "2015-05-04 22:28:12.549105"], ["updated_at", "2015-05-04 22:28:12.549105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:28:12.557054"], ["updated_at", "2015-05-04 22:28:12.557054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:28:12.558812"], ["updated_at", "2015-05-04 22:28:12.558812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:28:12.560128"], ["updated_at", "2015-05-04 22:28:12.560128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:28:12.564736"], ["updated_at", "2015-05-04 22:28:12.564736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:28:12.567860"], ["updated_at", "2015-05-04 22:28:12.567860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:28:12.569264"], ["updated_at", "2015-05-04 22:28:12.569264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:28:12.570516"], ["updated_at", "2015-05-04 22:28:12.570516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:28:12.575993"], ["updated_at", "2015-05-04 22:28:12.575993"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:28:12.577416"], ["updated_at", "2015-05-04 22:28:12.577416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:28:12.578672"], ["updated_at", "2015-05-04 22:28:12.578672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:28:12.579863"], ["updated_at", "2015-05-04 22:28:12.579863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:28:12.581096"], ["updated_at", "2015-05-04 22:28:12.581096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:28:12.582338"], ["updated_at", "2015-05-04 22:28:12.582338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:28:12.593531"], ["updated_at", "2015-05-04 22:28:12.593531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:28:12.595737"], ["updated_at", "2015-05-04 22:28:12.595737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:28:12.600011"], ["updated_at", "2015-05-04 22:28:12.600011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-04 22:28:12.603981"], ["updated_at", "2015-05-04 22:28:12.603981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.7ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193))  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:28:12.612498"], ["updated_at", "2015-05-04 22:28:12.612498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:28:12.613935"], ["updated_at", "2015-05-04 22:28:12.613935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:28:12.615251"], ["updated_at", "2015-05-04 22:28:12.615251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:28:12.618693"], ["updated_at", "2015-05-04 22:28:12.618693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:28:12.620618"], ["updated_at", "2015-05-04 22:28:12.620618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:28:12.622474"], ["updated_at", "2015-05-04 22:28:12.622474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:28:12.625539"], ["updated_at", "2015-05-04 22:28:12.625539"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:28:12.626464"], ["updated_at", "2015-05-04 22:28:12.626464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:28:12.634953"], ["updated_at", "2015-05-04 22:28:12.634953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 194], ["created_at", "2015-05-04 22:28:12.637051"], ["updated_at", "2015-05-04 22:28:12.637051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 194], ["created_at", "2015-05-04 22:28:12.638946"], ["updated_at", "2015-05-04 22:28:12.638946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 194], ["created_at", "2015-05-04 22:28:12.640917"], ["updated_at", "2015-05-04 22:28:12.640917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 194], ["updated_at", "2015-05-04 22:28:12.642264"], ["id", 194]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 194]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 194]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 194]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 194]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 194]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 194]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 194]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 194]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:28:12.667539"], ["updated_at", "2015-05-04 22:28:12.667539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:28:12.668955"], ["updated_at", "2015-05-04 22:28:12.668955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:28:12.670258"], ["updated_at", "2015-05-04 22:28:12.670258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:28:12.671474"], ["updated_at", "2015-05-04 22:28:12.671474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:28:12.672669"], ["updated_at", "2015-05-04 22:28:12.672669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:28:12.673917"], ["updated_at", "2015-05-04 22:28:12.673917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 193]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 193]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 193]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 193]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 193]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 193]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 193]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 193]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b4e58820cee8c3050a6b2cb5da737e31', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd5fb080fb6ae0c790dc6c2e5293ab960', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd2d6f21a5626347b50711e1bc4f3bff3', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e57612239724662f67d1bcb9773a0737', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '717e370d5e2260005675418a11f71ab8', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ac55c89a6a1b676b942dd9eede5597b8', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd31d1f2c65e133df8a6197051ec2e203', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9c72435be5b291c95123f3045d984438', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1058ef3fd28b22f014a1879fd4d13aa0', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e7fb03dccc37740cee116073e7f9c8c0', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '634f899c7063c1c9086882489082c4d5', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '421d6ab7e3fc321cb18d07589a0dd6ec', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '45a24e5417baa8b9179d3811e812f8a1', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e1633670394b2a62ba6c724db57bc9c0', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b331d04fb16034c5bb53d7d03d2628d8', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:33:02', '2015-05-04 22:33:02', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:33:02', '2015-05-04 22:33:02', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:33:02', '2015-05-04 22:33:02', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6fca315436498d842c719aba9871f424', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7a91a9afc3404ee70859c715590a2212', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '40fa15dd7e32009d4e8ee80837d8ddd3', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1bc89ad9e484680ce32873f36070a8e2', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '161f0d4c490cd57f864a6d62ac6b2ddf', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3fce2176745e9830e38342c4d9d81382', '2015-05-04 22:33:02', '2015-05-04 22:33:02', 410780858)  (18.6ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:33:02.393424"], ["updated_at", "2015-05-04 22:33:02.393424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:33:02.399410"], ["updated_at", "2015-05-04 22:33:02.399410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:33:02.403824"], ["updated_at", "2015-05-04 22:33:02.403824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:33:02.423164"], ["updated_at", "2015-05-04 22:33:02.423164"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:33:02.424350"], ["updated_at", "2015-05-04 22:33:02.424350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '813a7abbf6b876a4ba5f7319a4ed7a0a', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '82fd2942977fec47dc686060d1860b78', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1e4072ed4a84135143d27cbe49deaeb7', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '73f46c0d00a61378559390043626f85b', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '292a23210467e69347c1bafbe7906c9b', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '07e5b2e2177eebfff41480d1512dcfc2', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '888fcb2c6710841438efe0aeacf6868f', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '040d18af641b846dbe339a67557a2648', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7e48980feb3d42004f5ccd4ab696bb19', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b41bccc2af59b3a1d345104cca5da48b', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '73166933b90daef98b77373710c3617b', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4ecf8913ddf72136c665a4d725d89b76', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1b1c2482c7332fdafbcb1ac8aa2cf0b0', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd31630e8412367026503ff4281d5ddf1', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '85b3a42e5d5135af816c90f7901f1d12', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:33:15', '2015-05-04 22:33:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:33:15', '2015-05-04 22:33:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:33:15', '2015-05-04 22:33:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bf51c61121bff8e3022c44e2c41eb59b', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a2559d21cb364e6b449e59ba1fe3324a', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '956e776a0164845a7fe962d792164e43', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3e16cd4447e901ca3b088c99ef644357', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b6d04f3e36c021044064d9f35d1ca1ee', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5b6e07cca239fdfae2ec6944536b4ebc', '2015-05-04 22:33:15', '2015-05-04 22:33:15', 410780858)  (14.4ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:33:15.274599"], ["updated_at", "2015-05-04 22:33:15.274599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:33:15.282161"], ["updated_at", "2015-05-04 22:33:15.282161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:33:15.286501"], ["updated_at", "2015-05-04 22:33:15.286501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:33:15.307139"], ["updated_at", "2015-05-04 22:33:15.307139"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:33:15.308375"], ["updated_at", "2015-05-04 22:33:15.308375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:33:15.317419"], ["updated_at", "2015-05-04 22:33:15.317419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:35:36.079311"], ["updated_at", "2015-05-04 22:35:36.079311"]]  (17.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 194], ["created_at", "2015-05-04 22:35:36.127438"], ["updated_at", "2015-05-04 22:35:36.127438"]]  (22.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 194], ["created_at", "2015-05-04 22:35:36.162254"], ["updated_at", "2015-05-04 22:35:36.162254"]]  (19.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 194], ["created_at", "2015-05-04 22:35:36.198131"], ["updated_at", "2015-05-04 22:35:36.198131"]]  (19.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 194], ["updated_at", "2015-05-04 22:35:36.219897"], ["id", 194]]  (17.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '15eb0103b71d5e7b21e11f4169c1bae2', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2b6e2eab2b16078049bbd4d9ec00be72', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '60870afab63a8cd3f6d1b520436588fd', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '92772ef93f8e42a50e5d81919c9ee296', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3c68b0fa8767183bcdfdd489c0192cd9', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fde602e9cf0d61b31783954454a13280', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5c5b5ed7ad5346dc93a7d5042157dfce', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8b9fb0448c159e915abb53b41751954a', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd752f6db2cce0f3f88cd79a3b47922a7', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1f4f729f1e221d5b535f8e9c0974adcb', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e733228ee0440101053a4d313784c81b', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ad54bbc920f7cb141c2d3a347c942f49', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9788c1e65223526e623cdb3972130f74', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd48939d47b85ab08607229437d1b699e', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9d188136a19cf0a099a4a13fa34143c1', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:35:36', '2015-05-04 22:35:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:35:36', '2015-05-04 22:35:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:35:36', '2015-05-04 22:35:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '372c0832682746ca3804ad727f8c7c1b', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '087b72103090dd29b10621ed6876e1c4', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3543f1e60b76937f9ba02d745d0059a5', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ba6c4ef352c4297c323ca67085ee72e9', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9ab8091b3ce0cee8b1912cd57e31f7ec', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '95a0be02df7b2aca0293f3f6471ca280', '2015-05-04 22:35:36', '2015-05-04 22:35:36', 410780858)  (29.3ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 194]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 194]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 194]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 194]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 194]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 194]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 194]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 194]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:35:36.572285"], ["updated_at", "2015-05-04 22:35:36.572285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:35:36.573851"], ["updated_at", "2015-05-04 22:35:36.573851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:35:36.575154"], ["updated_at", "2015-05-04 22:35:36.575154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:35:36.578867"], ["updated_at", "2015-05-04 22:35:36.578867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:35:36.580255"], ["updated_at", "2015-05-04 22:35:36.580255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:35:36.581833"], ["updated_at", "2015-05-04 22:35:36.581833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:35:36.583355"], ["updated_at", "2015-05-04 22:35:36.583355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:35:36.584557"], ["updated_at", "2015-05-04 22:35:36.584557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:35:36.585779"], ["updated_at", "2015-05-04 22:35:36.585779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:35:36.603791"], ["updated_at", "2015-05-04 22:35:36.603791"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:35:36.604943"], ["updated_at", "2015-05-04 22:35:36.604943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:35:36.607951"], ["updated_at", "2015-05-04 22:35:36.607951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 195], ["created_at", "2015-05-04 22:35:36.609825"], ["updated_at", "2015-05-04 22:35:36.609825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 195], ["created_at", "2015-05-04 22:35:36.611683"], ["updated_at", "2015-05-04 22:35:36.611683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 195], ["created_at", "2015-05-04 22:35:36.613806"], ["updated_at", "2015-05-04 22:35:36.613806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-04 22:35:36.630157"], ["updated_at", "2015-05-04 22:35:36.630157"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-04 22:35:36.631723"], ["updated_at", "2015-05-04 22:35:36.631723"]] SQL (0.3ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-04 22:35:36.633407"], ["updated_at", "2015-05-04 22:35:36.633407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:35:36.652566"], ["updated_at", "2015-05-04 22:35:36.652566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:35:36.655653"], ["updated_at", "2015-05-04 22:35:36.655653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:35:36.657529"], ["updated_at", "2015-05-04 22:35:36.657529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:35:36.658854"], ["updated_at", "2015-05-04 22:35:36.658854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:35:36.666171"], ["updated_at", "2015-05-04 22:35:36.666171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 195], ["created_at", "2015-05-04 22:35:36.668267"], ["updated_at", "2015-05-04 22:35:36.668267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:35:36.670877"], ["updated_at", "2015-05-04 22:35:36.670877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:35:36.677416"], ["updated_at", "2015-05-04 22:35:36.677416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:35:36.679499"], ["updated_at", "2015-05-04 22:35:36.679499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:35:36.681315"], ["updated_at", "2015-05-04 22:35:36.681315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:35:36.684269"], ["updated_at", "2015-05-04 22:35:36.684269"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:35:36.685338"], ["updated_at", "2015-05-04 22:35:36.685338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:35:36.688683"], ["updated_at", "2015-05-04 22:35:36.688683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:35:36.692897"], ["updated_at", "2015-05-04 22:35:36.692897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 195], ["created_at", "2015-05-04 22:35:36.694788"], ["updated_at", "2015-05-04 22:35:36.694788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 195], ["created_at", "2015-05-04 22:35:36.696682"], ["updated_at", "2015-05-04 22:35:36.696682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 195], ["created_at", "2015-05-04 22:35:36.698596"], ["updated_at", "2015-05-04 22:35:36.698596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 195], ["updated_at", "2015-05-04 22:35:36.699878"], ["id", 195]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 195]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 195]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 195]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 195]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 195]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 195]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 195]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 195]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:35:36.722679"], ["updated_at", "2015-05-04 22:35:36.722679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:35:36.724101"], ["updated_at", "2015-05-04 22:35:36.724101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:35:36.725480"], ["updated_at", "2015-05-04 22:35:36.725480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:35:36.735258"], ["updated_at", "2015-05-04 22:35:36.735258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:35:36.736674"], ["updated_at", "2015-05-04 22:35:36.736674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:35:36.737964"], ["updated_at", "2015-05-04 22:35:36.737964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:35:36.739204"], ["updated_at", "2015-05-04 22:35:36.739204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:35:36.740475"], ["updated_at", "2015-05-04 22:35:36.740475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:35:36.741750"], ["updated_at", "2015-05-04 22:35:36.741750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:35:36.745024"], ["updated_at", "2015-05-04 22:35:36.745024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:35:36.748953"], ["updated_at", "2015-05-04 22:35:36.748953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-04 22:35:36.752705"], ["updated_at", "2015-05-04 22:35:36.752705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194))  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:35:36.757431"], ["updated_at", "2015-05-04 22:35:36.757431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:42:35.365125"], ["updated_at", "2015-05-04 22:42:35.365125"]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 195], ["created_at", "2015-05-04 22:42:35.405812"], ["updated_at", "2015-05-04 22:42:35.405812"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 195], ["created_at", "2015-05-04 22:42:35.432771"], ["updated_at", "2015-05-04 22:42:35.432771"]]  (25.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 195], ["created_at", "2015-05-04 22:42:35.471928"], ["updated_at", "2015-05-04 22:42:35.471928"]]  (21.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 195], ["updated_at", "2015-05-04 22:42:35.496244"], ["id", 195]]  (25.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '46956762c0afa6fd90b7aeb4e9f2f689', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e6034dfa89ac88fb76f34d12f958bf23', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ac1d25ae4aac351a1d9e4303c519d425', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '00483da1657b1dce5d147ae78f185b13', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4df83760b6934941c25cc0dc262b7f4a', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '78a68ce8b25ee2eef6aaffa2396cde09', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a9f67851c5be4cf5c666699dd5ba75f2', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7774270db7371bbc086724591cf0002f', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '76509b0fd4072c45812c6ae555db58a9', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c6a4e512c6276e7afb13b23960598e8b', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6e53197b9730341a85a6550e754bb884', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '458fcfc4c3c5cdba0121df819669fdd1', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a55d092c53a5c308c8b33bbce99d2ad3', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cce6c696e387166a62dad9ea5fff871f', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f0029e3bcbc2c3567874af921aa29732', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:42:35', '2015-05-04 22:42:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:42:35', '2015-05-04 22:42:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:42:35', '2015-05-04 22:42:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '45777fef36cd4ffecf0f99366faea725', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a6b08480756b9a1dd20b72806f600d43', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6c1c10c6c4cf1c7ce013bab15500632e', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7f041052a8dcd8c2d26ed0204b20a075', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9d4d44e484e858a2aee8a9d1e772ec23', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3436f4c471aff8c187a8020624ae3b3f', '2015-05-04 22:42:35', '2015-05-04 22:42:35', 410780858)  (30.9ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:42:35.644213"], ["updated_at", "2015-05-04 22:42:35.644213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:42:35.646151"], ["updated_at", "2015-05-04 22:42:35.646151"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:42:35.647460"], ["updated_at", "2015-05-04 22:42:35.647460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:42:35.670691"], ["updated_at", "2015-05-04 22:42:35.670691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:42:35.674089"], ["updated_at", "2015-05-04 22:42:35.674089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:42:35.675459"], ["updated_at", "2015-05-04 22:42:35.675459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:42:35.676780"], ["updated_at", "2015-05-04 22:42:35.676780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:42:35.683132"], ["updated_at", "2015-05-04 22:42:35.683132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:42:35.690225"], ["updated_at", "2015-05-04 22:42:35.690225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:42:35.691610"], ["updated_at", "2015-05-04 22:42:35.691610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:42:35.692898"], ["updated_at", "2015-05-04 22:42:35.692898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:42:35.702701"], ["updated_at", "2015-05-04 22:42:35.702701"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:42:35.703818"], ["updated_at", "2015-05-04 22:42:35.703818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-04 22:42:35.719729"], ["updated_at", "2015-05-04 22:42:35.719729"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-04 22:42:35.720863"], ["updated_at", "2015-05-04 22:42:35.720863"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-04 22:42:35.721850"], ["updated_at", "2015-05-04 22:42:35.721850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:42:35.730101"], ["updated_at", "2015-05-04 22:42:35.730101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 196], ["created_at", "2015-05-04 22:42:35.732048"], ["updated_at", "2015-05-04 22:42:35.732048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 196], ["created_at", "2015-05-04 22:42:35.733970"], ["updated_at", "2015-05-04 22:42:35.733970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 196], ["created_at", "2015-05-04 22:42:35.735924"], ["updated_at", "2015-05-04 22:42:35.735924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 196], ["updated_at", "2015-05-04 22:42:35.737262"], ["id", 196]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 196]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 196]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 196]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 196]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 196]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 196]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 196]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 196]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]]  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:42:35.762247"], ["updated_at", "2015-05-04 22:42:35.762247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:42:35.764538"], ["updated_at", "2015-05-04 22:42:35.764538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:42:35.766637"], ["updated_at", "2015-05-04 22:42:35.766637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:42:35.769545"], ["updated_at", "2015-05-04 22:42:35.769545"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:42:35.770522"], ["updated_at", "2015-05-04 22:42:35.770522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:42:35.773329"], ["updated_at", "2015-05-04 22:42:35.773329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:42:35.780774"], ["updated_at", "2015-05-04 22:42:35.780774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:42:35.784542"], ["updated_at", "2015-05-04 22:42:35.784542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-04 22:42:35.788214"], ["updated_at", "2015-05-04 22:42:35.788214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195))  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:42:35.794947"], ["updated_at", "2015-05-04 22:42:35.794947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:42:35.796316"], ["updated_at", "2015-05-04 22:42:35.796316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:42:35.797757"], ["updated_at", "2015-05-04 22:42:35.797757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:42:35.799005"], ["updated_at", "2015-05-04 22:42:35.799005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:42:35.800231"], ["updated_at", "2015-05-04 22:42:35.800231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:42:35.801492"], ["updated_at", "2015-05-04 22:42:35.801492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:42:35.808009"], ["updated_at", "2015-05-04 22:42:35.808009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 196], ["created_at", "2015-05-04 22:42:35.809948"], ["updated_at", "2015-05-04 22:42:35.809948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 196], ["created_at", "2015-05-04 22:42:35.811821"], ["updated_at", "2015-05-04 22:42:35.811821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 196], ["created_at", "2015-05-04 22:42:35.813686"], ["updated_at", "2015-05-04 22:42:35.813686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:42:35.825294"], ["updated_at", "2015-05-04 22:42:35.825294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:42:35.826716"], ["updated_at", "2015-05-04 22:42:35.826716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:42:35.827958"], ["updated_at", "2015-05-04 22:42:35.827958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:42:35.829268"], ["updated_at", "2015-05-04 22:42:35.829268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:42:35.830511"], ["updated_at", "2015-05-04 22:42:35.830511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:42:35.831727"], ["updated_at", "2015-05-04 22:42:35.831727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:42:35.833958"], ["updated_at", "2015-05-04 22:42:35.833958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 196], ["created_at", "2015-05-04 22:42:35.835868"], ["updated_at", "2015-05-04 22:42:35.835868"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:42:35.843317"], ["updated_at", "2015-05-04 22:42:35.843317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 195]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 195]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 195]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 195]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 195]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 195]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 195]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 195]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:43:21.112719"], ["updated_at", "2015-05-04 22:43:21.112719"]]  (13.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 196], ["created_at", "2015-05-04 22:43:21.158543"], ["updated_at", "2015-05-04 22:43:21.158543"]]  (17.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 196], ["created_at", "2015-05-04 22:43:21.187043"], ["updated_at", "2015-05-04 22:43:21.187043"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 196], ["created_at", "2015-05-04 22:43:21.213052"], ["updated_at", "2015-05-04 22:43:21.213052"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 196], ["updated_at", "2015-05-04 22:43:21.227831"], ["id", 196]]  (26.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fe2fc8d96efd40a6f33e756e778dc29e', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dd53dd708eda9c9e10ed8d4a3c661a03', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '22527cd39ed7f7adb733411ec16de9a4', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e9957d6de501824b86d4b089badc4689', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '13bf396909fe2bc784acadfaa2a02340', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f6d963066bc3ae18c8095065c79f201a', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '12539504ced946c61601a43c0faecddd', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ec71785c6d279ca6e219e622e7e5687f', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1bf326fed1a621bba21eaaa4fe3fc9b4', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd6601a502986779b2cb69c16c5ffdff4', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c00303435ab7c96d8aee326d7a008e2a', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '77246f7b9cbe5a166852dfe0a49e18bd', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b604e459311f05f0ab0d5a0e48f97c15', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a5b16ab43a9df57cefba5c91eef9f1f7', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0e1b2173af72da32f6d93a23f395d6ec', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:43:21', '2015-05-04 22:43:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:43:21', '2015-05-04 22:43:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-04 22:43:21', '2015-05-04 22:43:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f5a3849afa08856a0bc67414b3e84af9', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9a14d41bf1e36ea2d5cec3d5d2bb8db4', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '182fe372f2764e5643d6761de1945e94', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f1b31c497958b3a00190bca750d13a75', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f79a1566e09ba2654dbf8250f73fe686', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0938787671a660ef2f81368cc879da14', '2015-05-04 22:43:21', '2015-05-04 22:43:21', 410780858)  (29.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 196]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 196]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 196]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 196]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 196]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 196]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 196]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 196]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:43:21.560789"], ["updated_at", "2015-05-04 22:43:21.560789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 197], ["created_at", "2015-05-04 22:43:21.562795"], ["updated_at", "2015-05-04 22:43:21.562795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 197], ["created_at", "2015-05-04 22:43:21.564570"], ["updated_at", "2015-05-04 22:43:21.564570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 197], ["created_at", "2015-05-04 22:43:21.566414"], ["updated_at", "2015-05-04 22:43:21.566414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:43:21.582413"], ["updated_at", "2015-05-04 22:43:21.582413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:43:21.583905"], ["updated_at", "2015-05-04 22:43:21.583905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:43:21.585215"], ["updated_at", "2015-05-04 22:43:21.585215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:43:21.588879"], ["updated_at", "2015-05-04 22:43:21.588879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:43:21.597816"], ["updated_at", "2015-05-04 22:43:21.597816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:43:21.599175"], ["updated_at", "2015-05-04 22:43:21.599175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:43:21.600523"], ["updated_at", "2015-05-04 22:43:21.600523"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:43:21.607992"], ["updated_at", "2015-05-04 22:43:21.607992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:43:21.609381"], ["updated_at", "2015-05-04 22:43:21.609381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:43:21.610654"], ["updated_at", "2015-05-04 22:43:21.610654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:43:21.611822"], ["updated_at", "2015-05-04 22:43:21.611822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:43:21.613072"], ["updated_at", "2015-05-04 22:43:21.613072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:43:21.614295"], ["updated_at", "2015-05-04 22:43:21.614295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:43:21.621216"], ["updated_at", "2015-05-04 22:43:21.621216"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:43:21.622391"], ["updated_at", "2015-05-04 22:43:21.622391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:43:21.629528"], ["updated_at", "2015-05-04 22:43:21.629528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 197], ["created_at", "2015-05-04 22:43:21.631433"], ["updated_at", "2015-05-04 22:43:21.631433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:43:21.633865"], ["updated_at", "2015-05-04 22:43:21.633865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-04 22:43:21.643065"], ["updated_at", "2015-05-04 22:43:21.643065"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-04 22:43:21.644160"], ["updated_at", "2015-05-04 22:43:21.644160"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-04 22:43:21.645152"], ["updated_at", "2015-05-04 22:43:21.645152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:43:21.660113"], ["updated_at", "2015-05-04 22:43:21.660113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:43:21.663513"], ["updated_at", "2015-05-04 22:43:21.663513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 197], ["created_at", "2015-05-04 22:43:21.665877"], ["updated_at", "2015-05-04 22:43:21.665877"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 197], ["created_at", "2015-05-04 22:43:21.668375"], ["updated_at", "2015-05-04 22:43:21.668375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 197], ["created_at", "2015-05-04 22:43:21.670767"], ["updated_at", "2015-05-04 22:43:21.670767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 197], ["updated_at", "2015-05-04 22:43:21.672521"], ["id", 197]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 197]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 197]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 197]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 197]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 197]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 197]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 197]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 197]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:43:21.698210"], ["updated_at", "2015-05-04 22:43:21.698210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:43:21.699631"], ["updated_at", "2015-05-04 22:43:21.699631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:43:21.700891"], ["updated_at", "2015-05-04 22:43:21.700891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:43:21.702117"], ["updated_at", "2015-05-04 22:43:21.702117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:43:21.703421"], ["updated_at", "2015-05-04 22:43:21.703421"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-04 22:43:21.705507"], ["updated_at", "2015-05-04 22:43:21.705507"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:43:21.708695"], ["updated_at", "2015-05-04 22:43:21.708695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:43:21.713462"], ["updated_at", "2015-05-04 22:43:21.713462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-04 22:43:21.716817"], ["updated_at", "2015-05-04 22:43:21.716817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-04 22:43:21.723850"], ["updated_at", "2015-05-04 22:43:21.723850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-04 22:43:21.725239"], ["updated_at", "2015-05-04 22:43:21.725239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-04 22:43:21.726488"], ["updated_at", "2015-05-04 22:43:21.726488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-04 22:43:21.730758"], ["updated_at", "2015-05-04 22:43:21.730758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-04 22:43:21.733095"], ["updated_at", "2015-05-04 22:43:21.733095"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:43:21.734962"], ["updated_at", "2015-05-04 22:43:21.734962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-04 22:43:21.737971"], ["updated_at", "2015-05-04 22:43:21.737971"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-04 22:43:21.738885"], ["updated_at", "2015-05-04 22:43:21.738885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-04 22:43:21.741743"], ["updated_at", "2015-05-04 22:43:21.741743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-09 18:38:41.588543"], ["updated_at", "2015-05-09 18:38:41.588543"]]  (47.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 197], ["created_at", "2015-05-09 18:38:41.659041"], ["updated_at", "2015-05-09 18:38:41.659041"]]  (25.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 197], ["created_at", "2015-05-09 18:38:41.698357"], ["updated_at", "2015-05-09 18:38:41.698357"]]  (18.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 197], ["created_at", "2015-05-09 18:38:41.728311"], ["updated_at", "2015-05-09 18:38:41.728311"]]  (18.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 197], ["updated_at", "2015-05-09 18:38:41.749194"], ["id", 197]]  (17.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5f28482680d6c80ae187bf8fc761ac71', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd17a9de43a01c06debebd637d27b9587', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '49f300d981d5285990656c8875e7cb3f', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e82cab4a37ebd7e463d973074a7b6c0f', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '25127f4e066237dfd9163cdbc80080cd', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b2706735a600cbb48c4488a98d39ffb6', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'be494f56856af6f537761f206973c46e', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '80246f7b92b0606b37d95014fb17c76d', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '448ce357c6aedf6bce573ee9459b2201', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1d50a4cb79f0663c2e9add308beea0cf', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b4b5bd053b10e0b272c036292aaf990a', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '02064767735505e70da35bea574df27e', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8140afd509025cf6c9a77192d480f1b7', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7bf6df6d56fc5b3f5f4fc25ed740226d', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '23af80826d057d60e1f9db6179b19b18', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-09 18:38:41', '2015-05-09 18:38:41', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-09 18:38:41', '2015-05-09 18:38:41', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-09 18:38:41', '2015-05-09 18:38:41', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b19e6aa7249848a434242d3955901602', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '895a985e33add52688a433a05d747864', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a4febb1b4d6e6eb3032f71dcb92a39c9', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c365ded8c3c1edf33db576a111a0e2dd', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '671d7d119df5d425905b7c6f33e7b1da', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f9e5cc8b26d48fa83fc03950887b27a1', '2015-05-09 18:38:41', '2015-05-09 18:38:41', 410780858)  (19.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.4ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-09 18:38:41.901357"], ["updated_at", "2015-05-09 18:38:41.901357"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-09 18:38:41.902746"], ["updated_at", "2015-05-09 18:38:41.902746"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-09 18:38:41.904002"], ["updated_at", "2015-05-09 18:38:41.904002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-09 18:38:41.938188"], ["updated_at", "2015-05-09 18:38:41.938188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-09 18:38:41.940964"], ["updated_at", "2015-05-09 18:38:41.940964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-09 18:38:41.943187"], ["updated_at", "2015-05-09 18:38:41.943187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-09 18:38:41.952849"], ["updated_at", "2015-05-09 18:38:41.952849"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-09 18:38:41.953996"], ["updated_at", "2015-05-09 18:38:41.953996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-09 18:38:41.957068"], ["updated_at", "2015-05-09 18:38:41.957068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-09 18:38:41.959349"], ["updated_at", "2015-05-09 18:38:41.959349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 198], ["created_at", "2015-05-09 18:38:41.961185"], ["updated_at", "2015-05-09 18:38:41.961185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-09 18:38:41.963930"], ["updated_at", "2015-05-09 18:38:41.963930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-09 18:38:41.968132"], ["updated_at", "2015-05-09 18:38:41.968132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-09 18:38:41.972464"], ["updated_at", "2015-05-09 18:38:41.972464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-09 18:38:41.977129"], ["updated_at", "2015-05-09 18:38:41.977129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-09 18:38:41.978543"], ["updated_at", "2015-05-09 18:38:41.978543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-09 18:38:41.979833"], ["updated_at", "2015-05-09 18:38:41.979833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Class', 'Object', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-09 18:38:41.983322"], ["updated_at", "2015-05-09 18:38:41.983322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 198], ["created_at", "2015-05-09 18:38:41.985145"], ["updated_at", "2015-05-09 18:38:41.985145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 198], ["created_at", "2015-05-09 18:38:41.987026"], ["updated_at", "2015-05-09 18:38:41.987026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 198], ["created_at", "2015-05-09 18:38:41.988816"], ["updated_at", "2015-05-09 18:38:41.988816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-09 18:38:42.001412"], ["updated_at", "2015-05-09 18:38:42.001412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-09 18:38:42.002914"], ["updated_at", "2015-05-09 18:38:42.002914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-09 18:38:42.004201"], ["updated_at", "2015-05-09 18:38:42.004201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation' OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-09 18:38:42.012934"], ["updated_at", "2015-05-09 18:38:42.012934"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-09 18:38:42.014008"], ["updated_at", "2015-05-09 18:38:42.014008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-09 18:38:42.016892"], ["updated_at", "2015-05-09 18:38:42.016892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-09 18:38:42.018367"], ["updated_at", "2015-05-09 18:38:42.018367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-09 18:38:42.019679"], ["updated_at", "2015-05-09 18:38:42.019679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-09 18:38:42.020898"], ["updated_at", "2015-05-09 18:38:42.020898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-09 18:38:42.022164"], ["updated_at", "2015-05-09 18:38:42.022164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-09 18:38:42.023452"], ["updated_at", "2015-05-09 18:38:42.023452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-09 18:38:42.039221"], ["updated_at", "2015-05-09 18:38:42.039221"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 198], ["created_at", "2015-05-09 18:38:42.041163"], ["updated_at", "2015-05-09 18:38:42.041163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 198], ["created_at", "2015-05-09 18:38:42.043114"], ["updated_at", "2015-05-09 18:38:42.043114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 198], ["created_at", "2015-05-09 18:38:42.044945"], ["updated_at", "2015-05-09 18:38:42.044945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 198], ["updated_at", "2015-05-09 18:38:42.046306"], ["id", 198]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 198]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 198]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 198]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 198]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 198]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 198]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 198]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 198]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-09 18:38:42.070354"], ["updated_at", "2015-05-09 18:38:42.070354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "addresses"."id" FROM "addresses" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-09 18:38:42.074332"], ["updated_at", "2015-05-09 18:38:42.074332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "phones"."id" FROM "phones"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone') OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-09 18:38:42.077935"], ["updated_at", "2015-05-09 18:38:42.077935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197))  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-09 18:38:42.088177"], ["updated_at", "2015-05-09 18:38:42.088177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-09 18:38:42.090335"], ["updated_at", "2015-05-09 18:38:42.090335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-09 18:38:42.092247"], ["updated_at", "2015-05-09 18:38:42.092247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-09 18:38:42.098769"], ["updated_at", "2015-05-09 18:38:42.098769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-09 18:38:42.100135"], ["updated_at", "2015-05-09 18:38:42.100135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-09 18:38:42.101434"], ["updated_at", "2015-05-09 18:38:42.101434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-09 18:38:42.102720"], ["updated_at", "2015-05-09 18:38:42.102720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-09 18:38:42.103959"], ["updated_at", "2015-05-09 18:38:42.103959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-09 18:38:42.105206"], ["updated_at", "2015-05-09 18:38:42.105206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 197]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 197]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 197]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 197]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 197]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 197]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 197]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 197]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-10 19:17:10.020376"], ["updated_at", "2015-05-10 19:17:10.020376"]]  (21.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 198], ["created_at", "2015-05-10 19:17:10.074321"], ["updated_at", "2015-05-10 19:17:10.074321"]]  (30.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 198], ["created_at", "2015-05-10 19:17:10.120413"], ["updated_at", "2015-05-10 19:17:10.120413"]]  (30.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 198], ["created_at", "2015-05-10 19:17:10.167836"], ["updated_at", "2015-05-10 19:17:10.167836"]]  (31.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 198], ["updated_at", "2015-05-10 19:17:10.202057"], ["id", 198]]  (25.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '49caacf700c9837224e40d26bd984be6', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd292fcb52e971e5c46c4b3758d7be8f9', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5173fb23ae1accf780644d4c86757fe', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8a1698b5094a4556a6c89b48a149917b', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '990ad371cb019f74ca39f3d1779df80e', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'acf1b50eb0be4fdba8ba47af82bd6a14', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '3f8396d4d4a00562589b34fae3b6388f', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '83c4758bcb8057de356c7d606f4e3eab', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4505d0f6a528c02485e57912707b4b1a', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4e562b3c7ab8c9f45ea1f59b14c4a910', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '59381b887932dd42a0862da092bbedbb', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4b20d806807c1ffd7d1b847db07fa507', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '503445cf4bf13295852b95539a788b4a', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3d2f2d54215028ad504f19910a0df980', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a835fce30cd68b9fc59828edc1d1f35', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-10 19:17:10', '2015-05-10 19:17:10', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-10 19:17:10', '2015-05-10 19:17:10', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-10 19:17:10', '2015-05-10 19:17:10', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4a649a6104948a2d2ae0a80c9466cfaf', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'dc4c7d1f8c7264efee2f45bd13618110', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4a69f5417acc882462c1082c314fbce4', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '312e2f4a37a3905f35a75190e598b09f', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '71adb149ea0c3d8609a418f7968d40af', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '92e02dd8fb1f986ac7ac0ad3b95d4059', '2015-05-10 19:17:10', '2015-05-10 19:17:10', 410780858)  (27.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-10 19:17:10.456539"], ["updated_at", "2015-05-10 19:17:10.456539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-10 19:17:10.458243"], ["updated_at", "2015-05-10 19:17:10.458243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-10 19:17:10.459595"], ["updated_at", "2015-05-10 19:17:10.459595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-10 19:17:10.460786"], ["updated_at", "2015-05-10 19:17:10.460786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-10 19:17:10.462084"], ["updated_at", "2015-05-10 19:17:10.462084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-10 19:17:10.463415"], ["updated_at", "2015-05-10 19:17:10.463415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-10 19:17:10.476411"], ["updated_at", "2015-05-10 19:17:10.476411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 199], ["created_at", "2015-05-10 19:17:10.478575"], ["updated_at", "2015-05-10 19:17:10.478575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 199], ["created_at", "2015-05-10 19:17:10.480732"], ["updated_at", "2015-05-10 19:17:10.480732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 199], ["created_at", "2015-05-10 19:17:10.482653"], ["updated_at", "2015-05-10 19:17:10.482653"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-10 19:17:10.492947"], ["updated_at", "2015-05-10 19:17:10.492947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-10 19:17:10.494430"], ["updated_at", "2015-05-10 19:17:10.494430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-10 19:17:10.495922"], ["updated_at", "2015-05-10 19:17:10.495922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-10 19:17:10.497207"], ["updated_at", "2015-05-10 19:17:10.497207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-10 19:17:10.498484"], ["updated_at", "2015-05-10 19:17:10.498484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-10 19:17:10.499713"], ["updated_at", "2015-05-10 19:17:10.499713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-10 19:17:10.505555"], ["updated_at", "2015-05-10 19:17:10.505555"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-10 19:17:10.506827"], ["updated_at", "2015-05-10 19:17:10.506827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0041_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-10 19:17:10.516174"], ["updated_at", "2015-05-10 19:17:10.516174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-10 19:17:10.517666"], ["updated_at", "2015-05-10 19:17:10.517666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-10 19:17:10.519049"], ["updated_at", "2015-05-10 19:17:10.519049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-10 19:17:10.525028"], ["updated_at", "2015-05-10 19:17:10.525028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 199], ["created_at", "2015-05-10 19:17:10.527310"], ["updated_at", "2015-05-10 19:17:10.527310"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-10 19:17:10.529875"], ["updated_at", "2015-05-10 19:17:10.529875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-10 19:17:10.543048"], ["updated_at", "2015-05-10 19:17:10.543048"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-10 19:17:10.546496"], ["updated_at", "2015-05-10 19:17:10.546496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "phones"."id" FROM "phones" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone')  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-10 19:17:10.551350"], ["updated_at", "2015-05-10 19:17:10.551350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "phones"."id" FROM "phones" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-10 19:17:10.555144"], ["updated_at", "2015-05-10 19:17:10.555144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198))  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-10 19:17:10.559738"], ["updated_at", "2015-05-10 19:17:10.559738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-10 19:17:10.573918"], ["updated_at", "2015-05-10 19:17:10.573918"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-10 19:17:10.575229"], ["updated_at", "2015-05-10 19:17:10.575229"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-10 19:17:10.576217"], ["updated_at", "2015-05-10 19:17:10.576217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-10 19:17:10.592881"], ["updated_at", "2015-05-10 19:17:10.592881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 199], ["created_at", "2015-05-10 19:17:10.594935"], ["updated_at", "2015-05-10 19:17:10.594935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 199], ["created_at", "2015-05-10 19:17:10.596984"], ["updated_at", "2015-05-10 19:17:10.596984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 199], ["created_at", "2015-05-10 19:17:10.599353"], ["updated_at", "2015-05-10 19:17:10.599353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 199], ["updated_at", "2015-05-10 19:17:10.600820"], ["id", 199]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 199]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 199]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 199]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 199]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 199]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 199]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 199]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 199]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-10 19:17:10.623991"], ["updated_at", "2015-05-10 19:17:10.623991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-10 19:17:10.625469"], ["updated_at", "2015-05-10 19:17:10.625469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-10 19:17:10.627197"], ["updated_at", "2015-05-10 19:17:10.627197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-10 19:17:10.636684"], ["updated_at", "2015-05-10 19:17:10.636684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-10 19:17:10.638754"], ["updated_at", "2015-05-10 19:17:10.638754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-10 19:17:10.640808"], ["updated_at", "2015-05-10 19:17:10.640808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-10 19:17:10.643692"], ["updated_at", "2015-05-10 19:17:10.643692"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-10 19:17:10.644673"], ["updated_at", "2015-05-10 19:17:10.644673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-10 19:17:10.647835"], ["updated_at", "2015-05-10 19:17:10.647835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-10 19:17:10.651339"], ["updated_at", "2015-05-10 19:17:10.651339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-10 19:17:10.652683"], ["updated_at", "2015-05-10 19:17:10.652683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-10 19:17:10.653987"], ["updated_at", "2015-05-10 19:17:10.653987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 198]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 198]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 198]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 198]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 198]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 198]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 198]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 198]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a974fb449afaacbd2e76b039464fff64', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bc8fbe17bc8c1e6c763494a4c0ac9a65', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0369312fc920a59e0b6a2dff1f2870db', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4cc77c8a9fe3f1ca1f397e36193ee670', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dff2757f34f742de2cf64103562127c3', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c9873c49dc614d545b19ac498ebdf77c', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4d7e771817dca28e6399d5d366fa5b84', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c7e56cda98af99580b52c17a074015a9', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9f7b66c8225547710e641358a8f1970f', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cec108e484d837e5850ad862fa1199c8', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd2804066f5e9c83e4d54b8edf9305ff4', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '69c0cc4620375e4bf8a5e352a82e3ea9', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '51de5850812a63340de62e9f91f0d0c0', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b0a3a978b488330fcee0347c273313d', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd7b6104318d45ac6abce2c9df16fe191', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:11:19', '2015-05-11 16:11:19', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:11:19', '2015-05-11 16:11:19', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:11:19', '2015-05-11 16:11:19', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'faa053e33195e8966b468e6b2a595f84', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0bbe6d7d5ac5d293dcb771e6612a00e3', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '488b5b5ae40724db3ebed9cc8874e39d', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd40df78ff96d0b57bd86a250ef21aecc', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd620b0b6064c77c2ae9bf1f53d5b5ffa', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c98c83a74e85cac29a4d1cfa7d4e38d5', '2015-05-11 16:11:19', '2015-05-11 16:11:19', 410780858)  (22.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0040_#pbt_valid_types returns nil for invalid record types ------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-11 16:11:19.480700"], ["updated_at", "2015-05-11 16:11:19.480700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-11 16:11:19.484399"], ["updated_at", "2015-05-11 16:11:19.484399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-11 16:11:19.487167"], ["updated_at", "2015-05-11 16:11:19.487167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ddde0a60b6618143589337c03eec8f00', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'af8c2ca54dabfe1287b31e282c726b38', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '68b90ee4dcc2b7bfb89a06bdd96ff4fc', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '103d4bda4b00fcd5c0f24f2f613f29fe', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9131920730363a9aba21eefcaf2369e6', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'da8edecc61565c98929d1e4f7f0903aa', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'aec5b9f9874338f532f7afed3146dfd2', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '844b561d918acf71d6cd5f956f355540', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ecf55bfbfd100879cd5272b4c87bdc75', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3fd20f992b13325a8d4103902b1275e6', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4e8bb09961f77665247ea3fa76a6e0f1', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'adb841ec9019203396987ba1622ab1e0', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '994df06b4f57226bb907c541fe4f7ea2', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '15158a9eaa2421b34b23925d0b753acc', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '143ee659ef3fbcfad65793b634e937f8', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:12:18', '2015-05-11 16:12:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:12:18', '2015-05-11 16:12:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:12:18', '2015-05-11 16:12:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3134448e54592f3046bf87ad67953cc7', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5c0bdb08ca57698949afd0f11ac4cec5', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '40f2fb885d90251d2271bdaf7d148551', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f836554c8962c68d2adc537b0dbdda5b', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '88dacadeeac874981f7431629ce967c8', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0a43dc5c3cbb1a8c959b74e36a44f5e9', '2015-05-11 16:12:18', '2015-05-11 16:12:18', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistypes returns strings of valid polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-11 16:12:18.273321"], ["updated_at", "2015-05-11 16:12:18.273321"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-11 16:12:18.276573"], ["updated_at", "2015-05-11 16:12:18.276573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-11 16:12:18.277877"], ["updated_at", "2015-05-11 16:12:18.277877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-11 16:12:18.279085"], ["updated_at", "2015-05-11 16:12:18.279085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-11 16:12:18.280325"], ["updated_at", "2015-05-11 16:12:18.280325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-11 16:12:18.281558"], ["updated_at", "2015-05-11 16:12:18.281558"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '271c21ef61acd55d4c74fcde3d0457ae', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '596ea396e19d201287ab52879a30ee76', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2c8c0034232f9e7a2ab7b0f6bfb5e5bc', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd2e226a1e94196f5286c8e2ed25abb3d', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e1020410f0192984cfad4739982fdd6b', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0b32854674e284780801fd5f8223f6d9', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e32f21fdc20e12ca9a8672cb0b169e00', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '97d87e94309ff0f4ff8fa053d643594d', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ea97f8a55c391c664cb7d234c19fd8b9', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c09601b2f21e1607dfe982512a21bf5d', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '836fadb04a493b72858b771e216a084d', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '44e02b6693a33e9a12bf3a5ef5a98a51', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '610eb9deccf616540e3c1dd475fc74a8', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f1368852d6f79e9c36a9d8ed91f78f8f', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c47a28577ba90fab3952683f39a4c39', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:12:37', '2015-05-11 16:12:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:12:37', '2015-05-11 16:12:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:12:37', '2015-05-11 16:12:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '95925bffeabbcac01e39fe9106aed094', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '26fd13a5e68207f46b99ab55f64910a0', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9402f8ae00182fddfc3bbdbe24b0047e', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '36fba296d47aaaed60986b491e0c979b', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c8492fb7a17a66240cafe9ba467b361a', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f13c476c6a7dff7a481dd7704005e733', '2015-05-11 16:12:37', '2015-05-11 16:12:37', 410780858)  (16.3ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistypes returns strings of valid polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-11 16:12:37.334884"], ["updated_at", "2015-05-11 16:12:37.334884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-11 16:12:37.336765"], ["updated_at", "2015-05-11 16:12:37.336765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-11 16:12:37.338156"], ["updated_at", "2015-05-11 16:12:37.338156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCoffees (20150511161648)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "coffees" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coffeeable_id" integer, "coffeeable_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "index_coffees_on_coffeeable_type_and_coffeeable_id" ON "coffees" ("coffeeable_type", "coffeeable_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150511161648"]]  (19.2ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_alphas_on_delta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_alphas_on_delta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_beta_on_alpha_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_beta_on_alpha_id' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_capas_on_beta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_capas_on_beta_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_cars_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cars_on_user_id' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_contacts_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_user_id' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_delta_on_capa_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_delta_on_capa_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_geo_locations_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_geo_locations_on_address_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ssns_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ssns_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tags_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tags_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_tires_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tires_on_car_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_car_id' AND type='index'  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c55edbd9c2bbf6725b197383cab26400', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ea2e036912cc6db5a941b0898d71cf2c', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '88e87d6cc8ab7c01c4a41c57a037b6a8', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '65a61feda0358cb741468a54cf5de9a3', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '258fda7407ec370b3d65e56d0c88b9e6', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6760cabf28872b1a8f1e154456411f00', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0be5cd474015c0bb80086ee6df1ca434', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9897c56079b5a33cde55197c3e438e1d', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6fb0bba447e8becf694d9a17e0e24b75', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:17:45', '2015-05-11 16:17:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cb84c75cd6258fe0b8f2061df77c913f', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '63956b1760bedb2a239dcc5ca5cae198', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd796dab197b67efb569cddb0f9461584', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'da41ab89f890d6d2d3f6f77495de2c3a', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c5e3a2fdcd7518cd9ac979ae1b59374b', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b5469dbbd8dc19a9688c1635c1625be', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:17:46', '2015-05-11 16:17:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:17:46', '2015-05-11 16:17:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:17:46', '2015-05-11 16:17:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '15bdf3df2c6e9344a1ff361991031126', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '385f560ec0a274c1624b1a241d3b62b0', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a332ca628adce6b8cb6534ee3c07673e', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7bd844830dd09f7ea28fe784470d2983', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '52ff20cc68d18b96a88220d1d75c2a69', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5bfdae9279fe7a303fc2a5beb653713f', '2015-05-11 16:17:46', '2015-05-11 16:17:46', 410780858)  (18.8ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-11 16:17:46.035490"], ["updated_at", "2015-05-11 16:17:46.035490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-11 16:17:46.037290"], ["updated_at", "2015-05-11 16:17:46.037290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-11 16:17:46.038591"], ["updated_at", "2015-05-11 16:17:46.038591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'be19eed6fc7572433d154a40c1100700', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4362f4f032e06f9d07b610470932dba0', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd52f112327dec687526cbfc7f7131566', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0cde9da913c7ba9d69977daeb46e9daf', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '756fd7cea3e0400e796ce02dacd03b2a', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8a8ba64f4413e91838c0679466806680', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd907612599b071a652ec5d0fe773177a', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '32049c57882329b8430c02a8c8012d7f', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '68c9c8d3f7c6b416571b32ebf4e3716b', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5918db377c8c11a5c4addb31b5be9491', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4c7fe65375a040d1c65d0fe3b71e08ea', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '894a097f9ea5bd4a7127142dd10f23d3', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '259d1d0549fa69f2395452afa12f5e2e', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '59041aadb00c0f9d2f1f8fbd99b1f6dc', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '80535aa7cb7c54a7696ac5101b17ce91', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:19:15', '2015-05-11 16:19:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:19:15', '2015-05-11 16:19:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:19:15', '2015-05-11 16:19:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '80c5d99df5628e938662cb6595517c62', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f549124cd26e59d64b109a89c4b631c8', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1de0b0da42b2ff1b5b556379543081c4', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '624617cb5f0461567db5b324a63f1a05', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a3056105f37cfe0fb3b46edba467075a', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6607b6fac1efefcb8ea2b100f47a9f0b', '2015-05-11 16:19:15', '2015-05-11 16:19:15', 410780858)  (43.1ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-11 16:19:15.770226"], ["updated_at", "2015-05-11 16:19:15.770226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-11 16:19:15.772054"], ["updated_at", "2015-05-11 16:19:15.772054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-11 16:19:15.773298"], ["updated_at", "2015-05-11 16:19:15.773298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '619cf2431e929fa60b419e13def9e3e7', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'af92f7dd082da4aa647cac469c71b77d', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2227ccc4a398a3f5cb6af80d988979f5', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7a0e42d403ac60222e84751a3deb02f7', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bc16c481533f1cbf1275d483c66162c3', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '70daaf9bbeff4c14875a3c7e31d6928f', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1964e4a35f70d23628254cf2f531340c', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c1d7dfb4cfbc15dd3758fe49f7240cab', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e03e4a22c859eb987943ca1a95ddb755', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5c806459471e46220567cb3df0fe183e', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fed864d0d8d9dd7d716482255f1fbf13', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'efafae78a4623eb180b11d1dd08ac9c1', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '79c489a6bf15d3e051f5e8391b1932fb', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b3b269fd102edec33edb3f69f93200c8', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e98cfe7ee347c595c8e96f197cbdf009', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:19:27', '2015-05-11 16:19:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:19:27', '2015-05-11 16:19:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:19:27', '2015-05-11 16:19:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c493a4217cff38061bd6fbb3e419d82d', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0aa333128375f28322428f0143f0452c', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '817feb931df9e7eb37ea988d6f07e4d2', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3cb2085ce6a82c4e3da4422635739349', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0a7a5ab935a85c13c58e214e2a5e08fc', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cafd66291961bf3dd807d6e6c0c2727b', '2015-05-11 16:19:27', '2015-05-11 16:19:27', 410780858)  (29.6ms) commit transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-11 16:19:27.169945"], ["updated_at", "2015-05-11 16:19:27.169945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-11 16:19:27.171825"], ["updated_at", "2015-05-11 16:19:27.171825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-11 16:19:27.173144"], ["updated_at", "2015-05-11 16:19:27.173144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '05659a72a073b66c591b94facdcc5f78', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '390d9bee3317238d27846a426dac6b27', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dbb9f7c58d9260b449f0ce775610ea68', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '799fe8190538c7e2cb0d1fd09f175cd1', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b23fd32d6367ff4808b58eb473f56560', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '67dbcb42c3842f041390b37937a1b515', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '69d9b7e83273ccb912ca1a2770272c73', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c4fc760b64c3541f96128a7c9309062f', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a4c1ffe50760efb4645f678897706e6f', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '39a93da47746e6adf842aa3ba389f311', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8cf6f1513532a6b3d5156fe878ac4cd3', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a3ab100a369ccd580beb36602f588450', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7393484493fef797b0e946bf2102d4a2', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a8628413a69b31ccba6d221c1502966c', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd7c8b3b0054b4d040710d0cca7c9e511', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:19:45', '2015-05-11 16:19:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:19:45', '2015-05-11 16:19:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:19:45', '2015-05-11 16:19:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '82d8e75ce1859eda97a25a36055b4164', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '41d318bf4ac5b9d1d79952d1d13db37b', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c62826273a955a93a3ec355af13e0ebc', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '103873776500d76fb3022e6d202bedbd', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3bab86b223f39f84690b60e077a1eb74', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8ec905d99dc900fa9076a45f3c9df9fc', '2015-05-11 16:19:45', '2015-05-11 16:19:45', 410780858)  (14.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-11 16:19:45.444341"], ["updated_at", "2015-05-11 16:19:45.444341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-11 16:19:45.446198"], ["updated_at", "2015-05-11 16:19:45.446198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-11 16:19:45.447470"], ["updated_at", "2015-05-11 16:19:45.447470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-11 16:19:45.448720"], ["updated_at", "2015-05-11 16:19:45.448720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-11 16:19:45.449999"], ["updated_at", "2015-05-11 16:19:45.449999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-11 16:19:45.451244"], ["updated_at", "2015-05-11 16:19:45.451244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b50803e6e34353625451e0518571fa3a', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ec135519f5dc8e8dfe751fca8a83f45d', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cd2715124ce873d1de2803643868ac7a', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dbe9fd8882498a70a96f9adec842947e', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4cfaf7bc720b2b02fc04afb8990487bb', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '35bd313f7692875b271191312128bdd6', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '003c097b573a1ec6f66e46a2cfa257b1', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '299032021ab256aaa83fc53a70407318', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0272cc9c451413ea4a422006627735c6', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd1f0f5be9306862695890f94a4b87d3a', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '79ea30e55af8961c95b4321210501140', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '826f5ce82f54913f3df5cb118c173f49', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '644d7b6fcc788a3ae5e46968d2ffe669', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '427d0491a9c61349010900fd6a11d9d3', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '66230b760b2e1965a4fb8fb2bc8ac219', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:20:20', '2015-05-11 16:20:20', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:20:20', '2015-05-11 16:20:20', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:20:20', '2015-05-11 16:20:20', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ac0d0710b55e911ddb46c776270aec4b', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '59edd8700beb1f92ab66b1009578be0b', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5a8f6f508fc434310bcf7eefa333a30e', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '12b0fc67b933ee0e670e47e859ce657c', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7531c18b8e409d704a01cc563af8df3e', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b295ee312af658b5721d596533a0cdb0', '2015-05-11 16:20:20', '2015-05-11 16:20:20', 410780858)  (26.9ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_valid_typed returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-11 16:20:20.712761"], ["updated_at", "2015-05-11 16:20:20.712761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-11 16:20:20.714487"], ["updated_at", "2015-05-11 16:20:20.714487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-11 16:20:20.715775"], ["updated_at", "2015-05-11 16:20:20.715775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6cf04590dcd17a838823f6194a5ff1cc', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be1a698d4620da5ce8ab96329dfb1be6', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7c69020e062f5e6f24b6308058bd9150', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '87ddcf4317fe45fe0849c36671896fc6', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '84154b22255eb06cafed1152a0f8dbff', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c2a770e2411a8d57dc5a2737f6475f44', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4d13a30dc812d2ce0a46d796138c8436', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bf6c9afb49c1dab771358c221e1aae49', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd1fc1a820e1bb8592891e591c013fe67', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9c95bac92eb432a9e0608951e27ae164', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7f4ed29125c619ae87ddccd2be4642c9', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a8f2663e419a6a805df1dfe3438f6960', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f0e5a174732195766876134b43406886', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6df57b38024826a662e2ac3d62b58eb7', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b6ac98efd839e005d05de39c2f5a5952', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:20:52', '2015-05-11 16:20:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:20:52', '2015-05-11 16:20:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:20:52', '2015-05-11 16:20:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b8b57b21ed92b85eaf189b1264a4c57c', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3667f779048c7b234806009e3fb539ac', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e9c2b843de276e76a0b9eb968bb044b5', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd71a5144441b1d4f007a2136d25df096', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'abe4d41047fbc7a70edf316cd789dbe9', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bf86e0ef9884c96f390b4f73abed4c7c', '2015-05-11 16:20:52', '2015-05-11 16:20:52', 410780858)  (14.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0041_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-11 16:20:53.029822"], ["updated_at", "2015-05-11 16:20:53.029822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-11 16:20:53.031600"], ["updated_at", "2015-05-11 16:20:53.031600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-11 16:20:53.032857"], ["updated_at", "2015-05-11 16:20:53.032857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.3ms) SELECT "coffees".* FROM "coffees" WHERE "coffees"."coffeeable_type" IN ('Class', 'Object', 'Squishable')  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '35fe267319d246a15bc10875d9e6802f', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a56fb294d2e694a660e81668042236ff', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f252484422038dbd57aadbe4f85e6681', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '99de4787a3df5af4c45323f892da9d4c', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1242005158440dc9e14c6d3dbe733ab4', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '36ac4322e4f96e8c1b3eb9bfb6e8f92d', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c9361540005c001affe0f14cfbe18d38', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2419ca60c7669e762a371d28910f2c12', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd595db27c7a8c3b9df708f2078f76e18', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '660c97cd7b7a0bb9ed80ee4660d3ec08', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c70c12147dbe7861d189756f49189619', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '65166aee42c5eae8379c31aa050fd8de', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '09cce0ad9516532de7ad9b9106e42690', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a085e0137939f8ed4ae37acb7a8baf3c', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '893bc443e77932a723dd202dad446353', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:21:19', '2015-05-11 16:21:19', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:21:19', '2015-05-11 16:21:19', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:21:19', '2015-05-11 16:21:19', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '49a9ca41771bb97201e0273dc7dbb901', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '243dca30031c776f5c7ed629d6683cf7', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a9cb1c9c4a84cbd1bf3ccbebc30be09a', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4b046f9838f41bfc93d8df1a1d25812b', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '98393720934b8732c9f111f36583c884', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eb8f7b917efe7a307aa851cd14d9d9a1', '2015-05-11 16:21:19', '2015-05-11 16:21:19', 410780858)  (19.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0041_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-11 16:21:19.642643"], ["updated_at", "2015-05-11 16:21:19.642643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-11 16:21:19.644747"], ["updated_at", "2015-05-11 16:21:19.644747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-11 16:21:19.646086"], ["updated_at", "2015-05-11 16:21:19.646086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '23c19191f094730910682d11ec021d28', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '075fbcc4d0fb667a803589bdc356a013', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2f5b5bda3a2238c2f5c2194bce84acce', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '84d045d624b88f571b4fa58073dd0845', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '37ca31ae975ee403a80caf1f935541ae', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f9d5e29fdc2a2abf10fd8db6a84a5ca1', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5d8685fc9b549b95361f6ebc122e6e29', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '60a8d53079a975e1d347740bd4a85d65', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '23966c6ea08de0539d068f1139eea5f3', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '49607ce8cbaab073c17cc33b6cc5d103', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '76861b02f7d8b88fbef91957306103e2', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b6cd8c3b0d923facec433e7bc4cc73e2', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb757441b5e2ad8f5dd10b8ba04c0a48', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2d82149e25bee5bcd08997940cd2a2a3', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f45286765589b10f61aa06f38105554', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:41:52', '2015-05-11 16:41:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:41:52', '2015-05-11 16:41:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:41:52', '2015-05-11 16:41:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2996d823913d5fb49484e08064ea2b41', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f40f0c7f4ef50e440e5ac9727362f3f0', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0ba46feedec6d4a2af263add21d99831', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '090bd79d355e5a5d0be3af9686941440', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5b8879d0cf2edf035c42cdcaaff94896', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '242953390b4cb004e82b55ca32830ee6', '2015-05-11 16:41:52', '2015-05-11 16:41:52', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-11 16:41:52.874291"], ["updated_at", "2015-05-11 16:41:52.874291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b950086663b1fecffc5e61d9395f3386', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9f0a7d632f84d781a8ccb5462624fe91', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d5238666fcf8acf577a4b96d9fe5910', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '35f6bdd6f88becedc11a8e4b93f261b9', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '232e8989a6112c9b3017939089ddd740', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e54e3a74d01434c862aa6e73b780f3e3', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e2b314673c221fbfb2a84df7baf8ceba', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3ffef2b37ced4ced6ba8e0bcfaf2e160', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e11db566c9895c52bed423f994734b29', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8881422f0697cee2f3a778e350616119', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '996a64bf49cd7d569b28c1b83086d128', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '766b3b7a9529ba10a23cab3b9eea8642', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '001e9b90fa57379495c329cfa7e8273a', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9c2ab03ffa43eba36d306f4121c59396', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd6cba36dd37ec0b1ecf7d2b6f3a98709', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:42:56', '2015-05-11 16:42:56', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:42:56', '2015-05-11 16:42:56', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-11 16:42:56', '2015-05-11 16:42:56', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ae2bded8d340dc2c1dae4418683299d3', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '986e0a0ec560a1f84eff840ca43317d1', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9080d8f6d398687f6772ca9ecd967aa5', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '33350e04e29f5e209dc5d9e5823d34e7', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e59e782e57e2e13387d9ba19496cb2a5', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '72b4fe4fa958aa9b6435e8f34ab29eb5', '2015-05-11 16:42:56', '2015-05-11 16:42:56', 410780858)  (14.0ms) commit transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-11 16:42:56.787013"], ["updated_at", "2015-05-11 16:42:56.787013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-12 20:09:14.882238"], ["updated_at", "2015-05-12 20:09:14.882238"]]  (47.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 199], ["created_at", "2015-05-12 20:09:14.961011"], ["updated_at", "2015-05-12 20:09:14.961011"]]  (27.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 199], ["created_at", "2015-05-12 20:09:15.003405"], ["updated_at", "2015-05-12 20:09:15.003405"]]  (22.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 199], ["created_at", "2015-05-12 20:09:15.039028"], ["updated_at", "2015-05-12 20:09:15.039028"]]  (26.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 199], ["updated_at", "2015-05-12 20:09:15.068155"], ["id", 199]]  (34.5ms) commit transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e47252e6c81e26413b610cc803ac46ec', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '23acc4692da239fb63a1be5f26edd690', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5d83ab382e2960d601be7b4eb760d972', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8a2c9e78e38a5fbff48dddb465398be1', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '983d0ebf7b8cf031558a4c096cbe4cc1', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6dd53d196f31615600ae0d3beffde9b2', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a8bb0fa4400b78bf8437c6207ee4e785', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '81b113fd9a5b2295a2a3efb51ff95614', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fe4dec13d2d6aa6a5dbc288249c2d44f', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '116524765def892c088314d265c05d93', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6eac263a2fbc52d1bddafe2b39811a23', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4691ea2f7c9117f1587fa34a8c7c91a6', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6902bf78e5d9e51807541e61590f9b83', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9c9ecf2b45886ae7aa03bc9c6767ff37', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c9e5baf3f2196b401331d5c8f0c6d96f', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-12 20:09:15', '2015-05-12 20:09:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-12 20:09:15', '2015-05-12 20:09:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-12 20:09:15', '2015-05-12 20:09:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a9800dc7dcd0dccd87bf0f1e1b5654ba', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '06893686569c9e5aa06a98c9c3dc3a60', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '015b9b9d8bd8c9df45cbb603a6ae8528', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b3036b2d7440aef0b77ea0833b5e00e6', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0016758cc715711ee72343b58aa8f02c', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'aaeb39a77577e42e9a70791eecd09ec8', '2015-05-12 20:09:15', '2015-05-12 20:09:15', 410780858)  (27.6ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-12 20:09:15.392089"], ["updated_at", "2015-05-12 20:09:15.392089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 200], ["created_at", "2015-05-12 20:09:15.394182"], ["updated_at", "2015-05-12 20:09:15.394182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 200], ["created_at", "2015-05-12 20:09:15.396208"], ["updated_at", "2015-05-12 20:09:15.396208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 200], ["created_at", "2015-05-12 20:09:15.398116"], ["updated_at", "2015-05-12 20:09:15.398116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-12 20:09:15.406846"], ["updated_at", "2015-05-12 20:09:15.406846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 200], ["created_at", "2015-05-12 20:09:15.408842"], ["updated_at", "2015-05-12 20:09:15.408842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-12 20:09:15.411450"], ["updated_at", "2015-05-12 20:09:15.411450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-12 20:09:15.429262"], ["updated_at", "2015-05-12 20:09:15.429262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-12 20:09:15.430785"], ["updated_at", "2015-05-12 20:09:15.430785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-12 20:09:15.432207"], ["updated_at", "2015-05-12 20:09:15.432207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-12 20:09:15.434927"], ["updated_at", "2015-05-12 20:09:15.434927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 200], ["created_at", "2015-05-12 20:09:15.436729"], ["updated_at", "2015-05-12 20:09:15.436729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 200], ["created_at", "2015-05-12 20:09:15.438543"], ["updated_at", "2015-05-12 20:09:15.438543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 200], ["created_at", "2015-05-12 20:09:15.440573"], ["updated_at", "2015-05-12 20:09:15.440573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 200], ["updated_at", "2015-05-12 20:09:15.441891"], ["id", 200]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 200]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 200]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 200]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 200]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 200]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 200]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 200]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 200]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-12 20:09:15.469050"], ["updated_at", "2015-05-12 20:09:15.469050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "phones"."id" FROM "phones" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-12 20:09:15.475139"], ["updated_at", "2015-05-12 20:09:15.475139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT "phones"."id" FROM "phones" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (1053526200, 689259936, 762608046) AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-12 20:09:15.478609"], ["updated_at", "2015-05-12 20:09:15.478609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-12 20:09:15.488024"], ["updated_at", "2015-05-12 20:09:15.488024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-12 20:09:15.500186"], ["updated_at", "2015-05-12 20:09:15.500186"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-12 20:09:15.502207"], ["updated_at", "2015-05-12 20:09:15.502207"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-12 20:09:15.503522"], ["updated_at", "2015-05-12 20:09:15.503522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-12 20:09:15.517098"], ["updated_at", "2015-05-12 20:09:15.517098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-12 20:09:15.518484"], ["updated_at", "2015-05-12 20:09:15.518484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-12 20:09:15.519767"], ["updated_at", "2015-05-12 20:09:15.519767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-12 20:09:15.523692"], ["updated_at", "2015-05-12 20:09:15.523692"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-12 20:09:15.524821"], ["updated_at", "2015-05-12 20:09:15.524821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-12 20:09:15.529023"], ["updated_at", "2015-05-12 20:09:15.529023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-12 20:09:15.530404"], ["updated_at", "2015-05-12 20:09:15.530404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-12 20:09:15.531909"], ["updated_at", "2015-05-12 20:09:15.531909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-12 20:09:15.533773"], ["updated_at", "2015-05-12 20:09:15.533773"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-12 20:09:15.535972"], ["updated_at", "2015-05-12 20:09:15.535972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-12 20:09:15.537703"], ["updated_at", "2015-05-12 20:09:15.537703"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-12 20:09:15.541807"], ["updated_at", "2015-05-12 20:09:15.541807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-12 20:09:15.543144"], ["updated_at", "2015-05-12 20:09:15.543144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-12 20:09:15.544419"], ["updated_at", "2015-05-12 20:09:15.544419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT "addresses"."id" FROM "addresses"  (0.1ms) SELECT "geo_locations"."id" FROM "geo_locations"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (761411935, 1057142427, 633598004) AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (483796712, 343404421, 102195269) AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-12 20:09:15.548447"], ["updated_at", "2015-05-12 20:09:15.548447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-12 20:09:15.550353"], ["updated_at", "2015-05-12 20:09:15.550353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-12 20:09:15.552266"], ["updated_at", "2015-05-12 20:09:15.552266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-12 20:09:15.555328"], ["updated_at", "2015-05-12 20:09:15.555328"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-12 20:09:15.556529"], ["updated_at", "2015-05-12 20:09:15.556529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-12 20:09:15.560046"], ["updated_at", "2015-05-12 20:09:15.560046"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-12 20:09:15.566575"], ["updated_at", "2015-05-12 20:09:15.566575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-12 20:09:15.568076"], ["updated_at", "2015-05-12 20:09:15.568076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-12 20:09:15.569356"], ["updated_at", "2015-05-12 20:09:15.569356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-12 20:09:15.576020"], ["updated_at", "2015-05-12 20:09:15.576020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-12 20:09:15.577350"], ["updated_at", "2015-05-12 20:09:15.577350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-12 20:09:15.578613"], ["updated_at", "2015-05-12 20:09:15.578613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-12 20:09:15.587838"], ["updated_at", "2015-05-12 20:09:15.587838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-12 20:09:15.591346"], ["updated_at", "2015-05-12 20:09:15.591346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-12 20:09:15.593822"], ["updated_at", "2015-05-12 20:09:15.593822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-12 20:09:15.595629"], ["updated_at", "2015-05-12 20:09:15.595629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-12 20:09:15.597130"], ["updated_at", "2015-05-12 20:09:15.597130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-12 20:09:15.598533"], ["updated_at", "2015-05-12 20:09:15.598533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-12 20:09:15.599773"], ["updated_at", "2015-05-12 20:09:15.599773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-12 20:09:15.603728"], ["updated_at", "2015-05-12 20:09:15.603728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-12 20:09:15.607086"], ["updated_at", "2015-05-12 20:09:15.607086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-12 20:09:15.608473"], ["updated_at", "2015-05-12 20:09:15.608473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-12 20:09:15.610248"], ["updated_at", "2015-05-12 20:09:15.610248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 199]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 199]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 199]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 199]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 199]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 199]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 199]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 199]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:52:56.430895"], ["updated_at", "2015-05-13 07:52:56.430895"]]  (18.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 200], ["created_at", "2015-05-13 07:52:56.484608"], ["updated_at", "2015-05-13 07:52:56.484608"]]  (17.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 200], ["created_at", "2015-05-13 07:52:56.521534"], ["updated_at", "2015-05-13 07:52:56.521534"]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 200], ["created_at", "2015-05-13 07:52:56.547112"], ["updated_at", "2015-05-13 07:52:56.547112"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 200], ["updated_at", "2015-05-13 07:52:56.561845"], ["id", 200]]  (12.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '92686672536d1624f8b105f56c3c1582', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e80b74111a547b08b2edc79564cb2fa4', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9014b0ef7a5f09524c26b5aec8c52f88', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7c4f641b9f7990d28edf1381076eedb1', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '14207c66ed432b3e630d75c748afcfa7', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'be5f93c4f83afd824edcc743888077d9', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e3311f3a0b831f67e5ef335e016c9fa0', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5f99bc199929522b83f8a63730951a59', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'eb6f29039e2e37523d921cef8f5b340d', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c766ef601f96c0771e6a96df3c4a5e1a', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0deb138af92cfba6095bc535243226cd', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'da387be7506167dc97aeeee00b948590', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9a9c4ab1447ab63b4d56284f84451ba6', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cc6b70835c0e201000954062e648d503', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '42585c62eaf1471a6b52d241759cea47', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 07:52:56', '2015-05-13 07:52:56', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 07:52:56', '2015-05-13 07:52:56', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 07:52:56', '2015-05-13 07:52:56', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2c5e90767cb60c7db4448b78765359f2', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '01e3b0b81c70f54cea7f0eca1040d3ce', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '490dc52194b828ebdf79e2e7176600ca', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3261c9d66a58414e31e79363ad3494e3', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bd25e18e4128503f976609a6a568626c', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '83a6d31629f2825c4bca05a768852c3e', '2015-05-13 07:52:56', '2015-05-13 07:52:56', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 07:52:56.688963"], ["updated_at", "2015-05-13 07:52:56.688963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:52:56.695470"], ["updated_at", "2015-05-13 07:52:56.695470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 07:52:56.697721"], ["updated_at", "2015-05-13 07:52:56.697721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 07:52:56.699133"], ["updated_at", "2015-05-13 07:52:56.699133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 07:52:56.700512"], ["updated_at", "2015-05-13 07:52:56.700512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 07:52:56.711896"], ["updated_at", "2015-05-13 07:52:56.711896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 07:52:56.713444"], ["updated_at", "2015-05-13 07:52:56.713444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 07:52:56.714748"], ["updated_at", "2015-05-13 07:52:56.714748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 07:52:56.715987"], ["updated_at", "2015-05-13 07:52:56.715987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 07:52:56.717214"], ["updated_at", "2015-05-13 07:52:56.717214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 07:52:56.718434"], ["updated_at", "2015-05-13 07:52:56.718434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:52:56.723018"], ["updated_at", "2015-05-13 07:52:56.723018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 201], ["created_at", "2015-05-13 07:52:56.725000"], ["updated_at", "2015-05-13 07:52:56.725000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 201], ["created_at", "2015-05-13 07:52:56.726864"], ["updated_at", "2015-05-13 07:52:56.726864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 201], ["created_at", "2015-05-13 07:52:56.728723"], ["updated_at", "2015-05-13 07:52:56.728723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 07:52:56.736286"], ["updated_at", "2015-05-13 07:52:56.736286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 07:52:56.737657"], ["updated_at", "2015-05-13 07:52:56.737657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 07:52:56.738957"], ["updated_at", "2015-05-13 07:52:56.738957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 07:52:56.754396"], ["updated_at", "2015-05-13 07:52:56.754396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 07:52:56.757025"], ["updated_at", "2015-05-13 07:52:56.757025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 07:52:56.759056"], ["updated_at", "2015-05-13 07:52:56.759056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:52:56.761170"], ["updated_at", "2015-05-13 07:52:56.761170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 07:52:56.768879"], ["updated_at", "2015-05-13 07:52:56.768879"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 07:52:56.769979"], ["updated_at", "2015-05-13 07:52:56.769979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:52:56.773142"], ["updated_at", "2015-05-13 07:52:56.773142"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:52:56.775394"], ["updated_at", "2015-05-13 07:52:56.775394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 201], ["created_at", "2015-05-13 07:52:56.777225"], ["updated_at", "2015-05-13 07:52:56.777225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 07:52:56.779786"], ["updated_at", "2015-05-13 07:52:56.779786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:52:56.794369"], ["updated_at", "2015-05-13 07:52:56.794369"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 201], ["created_at", "2015-05-13 07:52:56.797157"], ["updated_at", "2015-05-13 07:52:56.797157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 201], ["created_at", "2015-05-13 07:52:56.799814"], ["updated_at", "2015-05-13 07:52:56.799814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 201], ["created_at", "2015-05-13 07:52:56.801736"], ["updated_at", "2015-05-13 07:52:56.801736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 201], ["updated_at", "2015-05-13 07:52:56.803070"], ["id", 201]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 201]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 201]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 201]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 201]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 201]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 201]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 201]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 201]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 07:52:56.826755"], ["updated_at", "2015-05-13 07:52:56.826755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 07:52:56.828286"], ["updated_at", "2015-05-13 07:52:56.828286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 07:52:56.829577"], ["updated_at", "2015-05-13 07:52:56.829577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 07:52:56.830761"], ["updated_at", "2015-05-13 07:52:56.830761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 07:52:56.832071"], ["updated_at", "2015-05-13 07:52:56.832071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 07:52:56.833288"], ["updated_at", "2015-05-13 07:52:56.833288"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 07:52:56.835854"], ["updated_at", "2015-05-13 07:52:56.835854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 07:52:56.837188"], ["updated_at", "2015-05-13 07:52:56.837188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 07:52:56.838788"], ["updated_at", "2015-05-13 07:52:56.838788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 07:52:56.846273"], ["updated_at", "2015-05-13 07:52:56.846273"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 07:52:56.847397"], ["updated_at", "2015-05-13 07:52:56.847397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 07:52:56.850518"], ["updated_at", "2015-05-13 07:52:56.850518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 07:52:56.851909"], ["updated_at", "2015-05-13 07:52:56.851909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 07:52:56.853190"], ["updated_at", "2015-05-13 07:52:56.853190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 07:52:56.861836"], ["updated_at", "2015-05-13 07:52:56.861836"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 07:52:56.862930"], ["updated_at", "2015-05-13 07:52:56.862930"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 07:52:56.863911"], ["updated_at", "2015-05-13 07:52:56.863911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 07:52:56.882467"], ["updated_at", "2015-05-13 07:52:56.882467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 07:52:56.883941"], ["updated_at", "2015-05-13 07:52:56.883941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 07:52:56.885216"], ["updated_at", "2015-05-13 07:52:56.885216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 07:52:56.890710"], ["updated_at", "2015-05-13 07:52:56.890710"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 07:52:56.905039"], ["updated_at", "2015-05-13 07:52:56.905039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 07:52:56.906792"], ["updated_at", "2015-05-13 07:52:56.906792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 07:52:56.909216"], ["updated_at", "2015-05-13 07:52:56.909216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.2ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 200]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 200]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 200]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 200]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 200]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 200]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:53:25.720411"], ["updated_at", "2015-05-13 07:53:25.720411"]]  (13.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 201], ["created_at", "2015-05-13 07:53:25.762139"], ["updated_at", "2015-05-13 07:53:25.762139"]]  (28.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 201], ["created_at", "2015-05-13 07:53:25.803731"], ["updated_at", "2015-05-13 07:53:25.803731"]]  (29.4ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 201], ["created_at", "2015-05-13 07:53:25.849309"], ["updated_at", "2015-05-13 07:53:25.849309"]]  (25.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 201], ["updated_at", "2015-05-13 07:53:25.877549"], ["id", 201]]  (26.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4629d241f26759b26c59498db88ea118', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '45afaecca13624c7640d7e43217330fb', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '35a81d7bc44d22a63a1bd5f93e97d751', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f51d778ff0b722bc9c1ab7aa4c0a9d73', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f912bf0b318ae6b2d34a61c2853476e0', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '06430e255b8460fbe0102a55f08207a3', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e5334b7a60f1e6d92667b6ace4a6dc64', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0f96057a97eeb68c7851c629abd50644', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '111d94cf136836c45907d7aee8c81a0b', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '36e0fe1986e0dc6c49694c7462199da9', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'de125008ea5e1faf30224103d98e2e3c', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fd90f7f8d0da71205be076a42e6bd260', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '59b7cfffd2e9d8ee158b68177215a0d0', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9ab8ba546632eda425639e753c047c35', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'abd2d8c7d87b234afcb4705877f1c521', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 07:53:25', '2015-05-13 07:53:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 07:53:25', '2015-05-13 07:53:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 07:53:25', '2015-05-13 07:53:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0c1efb533798607f158c11789534d5c5', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2036b615eb7b996003925b32d144c143', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f12dba711c7a1190c9514ed8ef96ceec', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9621070ef9154258046943445fc8dac8', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cc945d49a5e2adaa410cf6dd772ed266', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '10c8f8196cb61b95e23129444400696f', '2015-05-13 07:53:25', '2015-05-13 07:53:25', 410780858)  (25.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 201]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 201]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 201]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 201]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 201]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 201]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 201]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 201]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) [1mINSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:53:26.189154"], ["updated_at", "2015-05-13 07:53:26.189154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 202], ["created_at", "2015-05-13 07:53:26.191183"], ["updated_at", "2015-05-13 07:53:26.191183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 07:53:26.193861"], ["updated_at", "2015-05-13 07:53:26.193861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 07:53:26.196929"], ["updated_at", "2015-05-13 07:53:26.196929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 07:53:26.199120"], ["updated_at", "2015-05-13 07:53:26.199120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:53:26.201091"], ["updated_at", "2015-05-13 07:53:26.201091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 07:53:26.204325"], ["updated_at", "2015-05-13 07:53:26.204325"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 07:53:26.205409"], ["updated_at", "2015-05-13 07:53:26.205409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:53:26.208594"], ["updated_at", "2015-05-13 07:53:26.208594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 07:53:26.230818"], ["updated_at", "2015-05-13 07:53:26.230818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 07:53:26.238496"], ["updated_at", "2015-05-13 07:53:26.238496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 07:53:26.239850"], ["updated_at", "2015-05-13 07:53:26.239850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 07:53:26.241151"], ["updated_at", "2015-05-13 07:53:26.241151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 07:53:26.245829"], ["updated_at", "2015-05-13 07:53:26.245829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 07:53:26.247111"], ["updated_at", "2015-05-13 07:53:26.247111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 07:53:26.248403"], ["updated_at", "2015-05-13 07:53:26.248403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 07:53:26.249652"], ["updated_at", "2015-05-13 07:53:26.249652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 07:53:26.250834"], ["updated_at", "2015-05-13 07:53:26.250834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 07:53:26.252047"], ["updated_at", "2015-05-13 07:53:26.252047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 07:53:26.254368"], ["updated_at", "2015-05-13 07:53:26.254368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 07:53:26.255751"], ["updated_at", "2015-05-13 07:53:26.255751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 07:53:26.257048"], ["updated_at", "2015-05-13 07:53:26.257048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 07:53:26.260491"], ["updated_at", "2015-05-13 07:53:26.260491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 07:53:26.261883"], ["updated_at", "2015-05-13 07:53:26.261883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 07:53:26.263120"], ["updated_at", "2015-05-13 07:53:26.263120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 07:53:26.264323"], ["updated_at", "2015-05-13 07:53:26.264323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 07:53:26.265618"], ["updated_at", "2015-05-13 07:53:26.265618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 07:53:26.266889"], ["updated_at", "2015-05-13 07:53:26.266889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 07:53:26.270445"], ["updated_at", "2015-05-13 07:53:26.270445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 07:53:26.271880"], ["updated_at", "2015-05-13 07:53:26.271880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 07:53:26.273186"], ["updated_at", "2015-05-13 07:53:26.273186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:53:26.275397"], ["updated_at", "2015-05-13 07:53:26.275397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 202], ["created_at", "2015-05-13 07:53:26.277399"], ["updated_at", "2015-05-13 07:53:26.277399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 202], ["created_at", "2015-05-13 07:53:26.279262"], ["updated_at", "2015-05-13 07:53:26.279262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 202], ["created_at", "2015-05-13 07:53:26.281106"], ["updated_at", "2015-05-13 07:53:26.281106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 202], ["updated_at", "2015-05-13 07:53:26.282428"], ["id", 202]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 202]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 202]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 202]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 202]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 202]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 202]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 202]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 202]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 07:53:26.307778"], ["updated_at", "2015-05-13 07:53:26.307778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 07:53:26.312407"], ["updated_at", "2015-05-13 07:53:26.312407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 07:53:26.313866"], ["updated_at", "2015-05-13 07:53:26.313866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 07:53:26.315200"], ["updated_at", "2015-05-13 07:53:26.315200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 07:53:26.318083"], ["updated_at", "2015-05-13 07:53:26.318083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 07:53:26.319471"], ["updated_at", "2015-05-13 07:53:26.319471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 07:53:26.320925"], ["updated_at", "2015-05-13 07:53:26.320925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 07:53:26.325492"], ["updated_at", "2015-05-13 07:53:26.325492"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 07:53:26.326519"], ["updated_at", "2015-05-13 07:53:26.326519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 07:53:26.329647"], ["updated_at", "2015-05-13 07:53:26.329647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 07:53:26.332202"], ["updated_at", "2015-05-13 07:53:26.332202"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 07:53:26.334803"], ["updated_at", "2015-05-13 07:53:26.334803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:53:26.342139"], ["updated_at", "2015-05-13 07:53:26.342139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 07:53:26.349326"], ["updated_at", "2015-05-13 07:53:26.349326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 202], ["created_at", "2015-05-13 07:53:26.351317"], ["updated_at", "2015-05-13 07:53:26.351317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 202], ["created_at", "2015-05-13 07:53:26.353390"], ["updated_at", "2015-05-13 07:53:26.353390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 202], ["created_at", "2015-05-13 07:53:26.355302"], ["updated_at", "2015-05-13 07:53:26.355302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 07:53:26.364004"], ["updated_at", "2015-05-13 07:53:26.364004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 07:53:26.365476"], ["updated_at", "2015-05-13 07:53:26.365476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 07:53:26.366790"], ["updated_at", "2015-05-13 07:53:26.366790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 07:53:26.377792"], ["updated_at", "2015-05-13 07:53:26.377792"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 07:53:26.379075"], ["updated_at", "2015-05-13 07:53:26.379075"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 07:53:26.380102"], ["updated_at", "2015-05-13 07:53:26.380102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:01:16.964956"], ["updated_at", "2015-05-13 08:01:16.964956"]]  (18.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 202], ["created_at", "2015-05-13 08:01:17.017774"], ["updated_at", "2015-05-13 08:01:17.017774"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 202], ["created_at", "2015-05-13 08:01:17.048757"], ["updated_at", "2015-05-13 08:01:17.048757"]]  (17.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 202], ["created_at", "2015-05-13 08:01:17.074331"], ["updated_at", "2015-05-13 08:01:17.074331"]]  (25.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 202], ["updated_at", "2015-05-13 08:01:17.101775"], ["id", 202]]  (25.4ms) commit transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fd120c32e1edd0213f3692b7362850e4', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '493fdc6bf6f27254657e2d42f9d28a6b', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3c465fb03db6350b86d367b62e4907ae', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '556f9d721638695ead840b26cff3193d', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8a3d7cc6d4af574bd7a3f9b8073f50fe', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c0530c44506b98d94c2461679f1718b4', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'de883f53500a30c28a7a7decb7f6e1e1', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7a2c3526efe981658efa0389b417977e', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '43a3fbcc363c4811f1ad4854faab02e3', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '79ac503053130f33707aa160c60be0f6', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8d530a949ad1d1b930e90d8fb2c6f83e', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bce100be24371a25ef98f4a7f3c125cb', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e13b4b2a71d4501bd447773d4b309dd3', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '099543bb8ac08203492e2beb2e185cf3', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b661bb0cf713a78fc8413497cbd4bf56', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:01:17', '2015-05-13 08:01:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:01:17', '2015-05-13 08:01:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:01:17', '2015-05-13 08:01:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '275def7eb2e08dce72ec3b598930eed3', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ee4f0019f501c24a58c65e8718b0a4e0', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '28245e5ca22b6132cdf16513b310fb38', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e7946fdb961a4b43d0512ef9c27eb31a', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'af8094da98091d0f0f24772063087963', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6c11428f0a517d5d51dd59d61828cd14', '2015-05-13 08:01:17', '2015-05-13 08:01:17', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 202]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 202]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 202]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 202]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 202]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 202]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 202]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 202]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:01:17.430784"], ["updated_at", "2015-05-13 08:01:17.430784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:01:17.432377"], ["updated_at", "2015-05-13 08:01:17.432377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:01:17.433662"], ["updated_at", "2015-05-13 08:01:17.433662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:01:17.436297"], ["updated_at", "2015-05-13 08:01:17.436297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:01:17.437663"], ["updated_at", "2015-05-13 08:01:17.437663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:01:17.438975"], ["updated_at", "2015-05-13 08:01:17.438975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:01:17.440267"], ["updated_at", "2015-05-13 08:01:17.440267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:01:17.447095"], ["updated_at", "2015-05-13 08:01:17.447095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:01:17.448343"], ["updated_at", "2015-05-13 08:01:17.448343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:01:17.454081"], ["updated_at", "2015-05-13 08:01:17.454081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:01:17.455399"], ["updated_at", "2015-05-13 08:01:17.455399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:01:17.456675"], ["updated_at", "2015-05-13 08:01:17.456675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:01:17.460711"], ["updated_at", "2015-05-13 08:01:17.460711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:01:17.462020"], ["updated_at", "2015-05-13 08:01:17.462020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:01:17.463283"], ["updated_at", "2015-05-13 08:01:17.463283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:01:17.464515"], ["updated_at", "2015-05-13 08:01:17.464515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:01:17.465700"], ["updated_at", "2015-05-13 08:01:17.465700"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:01:17.466886"], ["updated_at", "2015-05-13 08:01:17.466886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:01:17.472516"], ["updated_at", "2015-05-13 08:01:17.472516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:01:17.474060"], ["updated_at", "2015-05-13 08:01:17.474060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:01:17.475380"], ["updated_at", "2015-05-13 08:01:17.475380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:01:17.482660"], ["updated_at", "2015-05-13 08:01:17.482660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 203], ["created_at", "2015-05-13 08:01:17.484585"], ["updated_at", "2015-05-13 08:01:17.484585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 203], ["created_at", "2015-05-13 08:01:17.486444"], ["updated_at", "2015-05-13 08:01:17.486444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 203], ["created_at", "2015-05-13 08:01:17.488205"], ["updated_at", "2015-05-13 08:01:17.488205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:01:17.495150"], ["updated_at", "2015-05-13 08:01:17.495150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:01:17.498660"], ["updated_at", "2015-05-13 08:01:17.498660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:01:17.501188"], ["updated_at", "2015-05-13 08:01:17.501188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (1.2ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN ('--- !ruby/object:Arel::SelectManager engine: &1 !ruby/class ''Alpha'' ctx: &2 !ruby/object:Arel::Nodes::SelectCore source: !ruby/object:Arel::Nodes::JoinSource left: !ruby/object:Arel::Table name: alphas engine: *1 columns: aliases: [] table_alias: primary_key: right: [] top: set_quantifier: projections: - !ruby/object:Arel::Nodes::SqlLiteral id wheres: [] groups: [] having: windows: [] bind_values: [] ast: !ruby/object:Arel::Nodes::SelectStatement cores: - *2 orders: [] limit: lock: offset: with: '))  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:01:17.543796"], ["updated_at", "2015-05-13 08:01:17.543796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:01:17.546083"], ["updated_at", "2015-05-13 08:01:17.546083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:01:17.548179"], ["updated_at", "2015-05-13 08:01:17.548179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:01:17.551312"], ["updated_at", "2015-05-13 08:01:17.551312"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:01:17.552401"], ["updated_at", "2015-05-13 08:01:17.552401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:01:17.555396"], ["updated_at", "2015-05-13 08:01:17.555396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:01:17.557701"], ["updated_at", "2015-05-13 08:01:17.557701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:01:17.559046"], ["updated_at", "2015-05-13 08:01:17.559046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:01:17.560326"], ["updated_at", "2015-05-13 08:01:17.560326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:01:17.564798"], ["updated_at", "2015-05-13 08:01:17.564798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:01:17.567268"], ["updated_at", "2015-05-13 08:01:17.567268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 203], ["created_at", "2015-05-13 08:01:17.569099"], ["updated_at", "2015-05-13 08:01:17.569099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:01:17.571471"], ["updated_at", "2015-05-13 08:01:17.571471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:01:17.577228"], ["updated_at", "2015-05-13 08:01:17.577228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:01:17.578768"], ["updated_at", "2015-05-13 08:01:17.578768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:01:17.580258"], ["updated_at", "2015-05-13 08:01:17.580258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:01:17.583014"], ["updated_at", "2015-05-13 08:01:17.583014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:01:17.584382"], ["updated_at", "2015-05-13 08:01:17.584382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:01:17.585612"], ["updated_at", "2015-05-13 08:01:17.585612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:01:17.593102"], ["updated_at", "2015-05-13 08:01:17.593102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 203], ["created_at", "2015-05-13 08:01:17.595011"], ["updated_at", "2015-05-13 08:01:17.595011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 203], ["created_at", "2015-05-13 08:01:17.596868"], ["updated_at", "2015-05-13 08:01:17.596868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 203], ["created_at", "2015-05-13 08:01:17.598632"], ["updated_at", "2015-05-13 08:01:17.598632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 203], ["updated_at", "2015-05-13 08:01:17.599914"], ["id", 203]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 203]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 203]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 203]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 203]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 203]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 203]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 203]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 203]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:01:17.623967"], ["updated_at", "2015-05-13 08:01:17.623967"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:01:17.625029"], ["updated_at", "2015-05-13 08:01:17.625029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:01:17.634087"], ["updated_at", "2015-05-13 08:01:17.634087"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:01:17.635134"], ["updated_at", "2015-05-13 08:01:17.635134"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:01:17.636106"], ["updated_at", "2015-05-13 08:01:17.636106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:01:17.648654"], ["updated_at", "2015-05-13 08:01:17.648654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:01:17.651871"], ["updated_at", "2015-05-13 08:01:17.651871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:26.823151"], ["updated_at", "2015-05-13 08:02:26.823151"]]  (18.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 203], ["created_at", "2015-05-13 08:02:26.868051"], ["updated_at", "2015-05-13 08:02:26.868051"]]  (13.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 203], ["created_at", "2015-05-13 08:02:26.894976"], ["updated_at", "2015-05-13 08:02:26.894976"]]  (25.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 203], ["created_at", "2015-05-13 08:02:26.932268"], ["updated_at", "2015-05-13 08:02:26.932268"]]  (28.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 203], ["updated_at", "2015-05-13 08:02:26.962955"], ["id", 203]]  (33.0ms) commit transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '17b65e11e1d660dc03f49b135f0b6812', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '21afa8db43f828d8a11b732eb64c909c', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7010ffdd5306023dcaed9b08e70b232f', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '701c64d467ea1d9aee6a0273ce433448', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4ab37848d9c43ba184ecfd482cef3d05', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6abba582b58292f8775e43bc3e57341b', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '668b75d8726f23b29d1f5c2ca0752d2b', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '49f36b16152a291a27839e28cf35b8c9', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a9cec617f5e9c22d7b61956aee210fce', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c9595db31ab9b2c847a383df0f407522', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c9c9573b3a6ee94cee18238f8035d592', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dfc7383604c9d5bea386ea5738128192', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1f9b4310947d7a9b63cce0a6abdc6e17', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ff915058003a70e21c42ccc55a9d58e7', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0127a77a9ea03e40f74c2fbaf5ab2314', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 762608046) Fixture Delete (0.0ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:02:27', '2015-05-13 08:02:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:02:27', '2015-05-13 08:02:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:02:27', '2015-05-13 08:02:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7d9667acee290a863aab61f04fd135e1', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c7964245132fb66941cab9d94da55a93', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '54c9a56f30489598f07ebe93ee0155da', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e25811ff92b3d4163de24f19995340a6', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8d4080b52ce568e0ce425a6d8d3d4d60', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '967f54032dfb129c6ff5efaaa27de377', '2015-05-13 08:02:27', '2015-05-13 08:02:27', 410780858)  (33.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.4ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:02:27.187709"], ["updated_at", "2015-05-13 08:02:27.187709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:02:27.197866"], ["updated_at", "2015-05-13 08:02:27.197866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:02:27.200754"], ["updated_at", "2015-05-13 08:02:27.200754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:02:27.202189"], ["updated_at", "2015-05-13 08:02:27.202189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:02:27.203577"], ["updated_at", "2015-05-13 08:02:27.203577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:02:27.214179"], ["updated_at", "2015-05-13 08:02:27.214179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:02:27.215822"], ["updated_at", "2015-05-13 08:02:27.215822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:02:27.217099"], ["updated_at", "2015-05-13 08:02:27.217099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:02:27.218292"], ["updated_at", "2015-05-13 08:02:27.218292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:02:27.219506"], ["updated_at", "2015-05-13 08:02:27.219506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:02:27.220813"], ["updated_at", "2015-05-13 08:02:27.220813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:27.223298"], ["updated_at", "2015-05-13 08:02:27.223298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 204], ["created_at", "2015-05-13 08:02:27.225365"], ["updated_at", "2015-05-13 08:02:27.225365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:02:27.228022"], ["updated_at", "2015-05-13 08:02:27.228022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:02:27.230742"], ["updated_at", "2015-05-13 08:02:27.230742"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:02:27.232092"], ["updated_at", "2015-05-13 08:02:27.232092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:02:27.233343"], ["updated_at", "2015-05-13 08:02:27.233343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:27.242647"], ["updated_at", "2015-05-13 08:02:27.242647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 204], ["created_at", "2015-05-13 08:02:27.244634"], ["updated_at", "2015-05-13 08:02:27.244634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 204], ["created_at", "2015-05-13 08:02:27.246471"], ["updated_at", "2015-05-13 08:02:27.246471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 204], ["created_at", "2015-05-13 08:02:27.248319"], ["updated_at", "2015-05-13 08:02:27.248319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:02:27.259640"], ["updated_at", "2015-05-13 08:02:27.259640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:02:27.261143"], ["updated_at", "2015-05-13 08:02:27.261143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:02:27.262515"], ["updated_at", "2015-05-13 08:02:27.262515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:02:27.266342"], ["updated_at", "2015-05-13 08:02:27.266342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:02:27.267770"], ["updated_at", "2015-05-13 08:02:27.267770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:02:27.269076"], ["updated_at", "2015-05-13 08:02:27.269076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:02:27.270310"], ["updated_at", "2015-05-13 08:02:27.270310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:02:27.271631"], ["updated_at", "2015-05-13 08:02:27.271631"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:02:27.272864"], ["updated_at", "2015-05-13 08:02:27.272864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:02:27.275419"], ["updated_at", "2015-05-13 08:02:27.275419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:02:27.278006"], ["updated_at", "2015-05-13 08:02:27.278006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:02:27.280652"], ["updated_at", "2015-05-13 08:02:27.280652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (1.0ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN ('SELECT id FROM "alphas"'))  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:02:27.328461"], ["updated_at", "2015-05-13 08:02:27.328461"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:02:27.330129"], ["updated_at", "2015-05-13 08:02:27.330129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:02:27.331647"], ["updated_at", "2015-05-13 08:02:27.331647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:02:27.334206"], ["updated_at", "2015-05-13 08:02:27.334206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:02:27.336597"], ["updated_at", "2015-05-13 08:02:27.336597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:27.338627"], ["updated_at", "2015-05-13 08:02:27.338627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:02:27.347302"], ["updated_at", "2015-05-13 08:02:27.347302"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:02:27.348410"], ["updated_at", "2015-05-13 08:02:27.348410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:27.351316"], ["updated_at", "2015-05-13 08:02:27.351316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:02:27.364432"], ["updated_at", "2015-05-13 08:02:27.364432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:02:27.365902"], ["updated_at", "2015-05-13 08:02:27.365902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:02:27.367174"], ["updated_at", "2015-05-13 08:02:27.367174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:02:27.371461"], ["updated_at", "2015-05-13 08:02:27.371461"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:02:27.372511"], ["updated_at", "2015-05-13 08:02:27.372511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:02:27.376383"], ["updated_at", "2015-05-13 08:02:27.376383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:02:27.377742"], ["updated_at", "2015-05-13 08:02:27.377742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:02:27.379016"], ["updated_at", "2015-05-13 08:02:27.379016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:27.382238"], ["updated_at", "2015-05-13 08:02:27.382238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 204], ["created_at", "2015-05-13 08:02:27.384303"], ["updated_at", "2015-05-13 08:02:27.384303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 204], ["created_at", "2015-05-13 08:02:27.386695"], ["updated_at", "2015-05-13 08:02:27.386695"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 204], ["created_at", "2015-05-13 08:02:27.389225"], ["updated_at", "2015-05-13 08:02:27.389225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 204], ["updated_at", "2015-05-13 08:02:27.390838"], ["id", 204]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 204]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 204]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 204]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 204]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 204]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 204]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 204]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 204]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:02:27.420359"], ["updated_at", "2015-05-13 08:02:27.420359"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:02:27.421717"], ["updated_at", "2015-05-13 08:02:27.421717"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:02:27.422709"], ["updated_at", "2015-05-13 08:02:27.422709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:27.439192"], ["updated_at", "2015-05-13 08:02:27.439192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 203]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 203]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 203]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 203]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 203]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 203]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 203]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 203]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:54.475391"], ["updated_at", "2015-05-13 08:02:54.475391"]]  (16.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 204], ["created_at", "2015-05-13 08:02:54.522503"], ["updated_at", "2015-05-13 08:02:54.522503"]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 204], ["created_at", "2015-05-13 08:02:54.565731"], ["updated_at", "2015-05-13 08:02:54.565731"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 204], ["created_at", "2015-05-13 08:02:54.588391"], ["updated_at", "2015-05-13 08:02:54.588391"]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 204], ["updated_at", "2015-05-13 08:02:54.604280"], ["id", 204]]  (12.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4fe6bbc27e34af33dae21a4f8a1c3b63', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a94b98b44d94a2c295855682d94a3766', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1ba241438f1746b3bae0ae4dc1f1d8b5', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5a6334d30f1da70ddbb73c15e1ea2144', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2619fadc7d3b8a30fc3b9ac36a0675e7', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '26b7fc822700fa2cc2a2efbd31d3c584', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '526d49062cb5f51e8ad65ae351be3e63', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '366db9a30116588d83b3aa646c4c3031', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '325ff22863e549ad2642ea554de6b581', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c6da8e009b1e11ecebbcd31719f25ce5', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f59524beeee338a8affbfe9a5fbfda4a', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b61529582d83c16cc4b40c787081f2e6', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '93bc557a742f2de79813ecf9ae786651', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '23cce5c5f08f9c327e32ad9ee2d2fde6', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5d780c0ca8e602bb1aa0257bdce4cbc2', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:02:54', '2015-05-13 08:02:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:02:54', '2015-05-13 08:02:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:02:54', '2015-05-13 08:02:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bde8728fc5d88f73e0dcb3f1f1fb7d4f', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'df0b7a25af79289ad1721f83337bc56e', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5c0a0da1bd891a6c4546890249c97d9a', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '12c7f9d89b769f855c52da5506813f4e', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd541dd617f78bd938af86fa1db444c14', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '73e52f92be971bcc6758b2dabde02ad6', '2015-05-13 08:02:54', '2015-05-13 08:02:54', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.3ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:02:54.736771"], ["updated_at", "2015-05-13 08:02:54.736771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:02:54.738380"], ["updated_at", "2015-05-13 08:02:54.738380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:02:54.739722"], ["updated_at", "2015-05-13 08:02:54.739722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:02:54.766393"], ["updated_at", "2015-05-13 08:02:54.766393"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:02:54.767688"], ["updated_at", "2015-05-13 08:02:54.767688"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:02:54.768666"], ["updated_at", "2015-05-13 08:02:54.768666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:54.790729"], ["updated_at", "2015-05-13 08:02:54.790729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 205], ["created_at", "2015-05-13 08:02:54.798508"], ["updated_at", "2015-05-13 08:02:54.798508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 205], ["created_at", "2015-05-13 08:02:54.800764"], ["updated_at", "2015-05-13 08:02:54.800764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 205], ["created_at", "2015-05-13 08:02:54.802603"], ["updated_at", "2015-05-13 08:02:54.802603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 205], ["updated_at", "2015-05-13 08:02:54.803974"], ["id", 205]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 205]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 205]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 205]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 205]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 205]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 205]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 205]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 205]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]]  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:02:54.828301"], ["updated_at", "2015-05-13 08:02:54.828301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:02:54.829719"], ["updated_at", "2015-05-13 08:02:54.829719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:02:54.830982"], ["updated_at", "2015-05-13 08:02:54.830982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:02:54.832195"], ["updated_at", "2015-05-13 08:02:54.832195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:02:54.833392"], ["updated_at", "2015-05-13 08:02:54.833392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:02:54.834588"], ["updated_at", "2015-05-13 08:02:54.834588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:02:54.837109"], ["updated_at", "2015-05-13 08:02:54.837109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:02:54.839211"], ["updated_at", "2015-05-13 08:02:54.839211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:54.841410"], ["updated_at", "2015-05-13 08:02:54.841410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:02:54.845107"], ["updated_at", "2015-05-13 08:02:54.845107"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:02:54.846331"], ["updated_at", "2015-05-13 08:02:54.846331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:54.849971"], ["updated_at", "2015-05-13 08:02:54.849971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:02:54.859358"], ["updated_at", "2015-05-13 08:02:54.859358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:02:54.860989"], ["updated_at", "2015-05-13 08:02:54.860989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:02:54.862351"], ["updated_at", "2015-05-13 08:02:54.862351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:02:54.866669"], ["updated_at", "2015-05-13 08:02:54.866669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:54.870883"], ["updated_at", "2015-05-13 08:02:54.870883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:02:54.873081"], ["updated_at", "2015-05-13 08:02:54.873081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:02:54.874502"], ["updated_at", "2015-05-13 08:02:54.874502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:02:54.875872"], ["updated_at", "2015-05-13 08:02:54.875872"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:02:54.880875"], ["updated_at", "2015-05-13 08:02:54.880875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:02:54.882339"], ["updated_at", "2015-05-13 08:02:54.882339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:02:54.883689"], ["updated_at", "2015-05-13 08:02:54.883689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:02:54.886945"], ["updated_at", "2015-05-13 08:02:54.886945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:02:54.888377"], ["updated_at", "2015-05-13 08:02:54.888377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:02:54.889649"], ["updated_at", "2015-05-13 08:02:54.889649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:54.894639"], ["updated_at", "2015-05-13 08:02:54.894639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 205], ["created_at", "2015-05-13 08:02:54.896671"], ["updated_at", "2015-05-13 08:02:54.896671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 205], ["created_at", "2015-05-13 08:02:54.898595"], ["updated_at", "2015-05-13 08:02:54.898595"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 205], ["created_at", "2015-05-13 08:02:54.900484"], ["updated_at", "2015-05-13 08:02:54.900484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:02:54.911058"], ["updated_at", "2015-05-13 08:02:54.911058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:02:54.912647"], ["updated_at", "2015-05-13 08:02:54.912647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:02:54.914092"], ["updated_at", "2015-05-13 08:02:54.914092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:02:54.915332"], ["updated_at", "2015-05-13 08:02:54.915332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:02:54.916629"], ["updated_at", "2015-05-13 08:02:54.916629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:02:54.917862"], ["updated_at", "2015-05-13 08:02:54.917862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:02:54.921979"], ["updated_at", "2015-05-13 08:02:54.921979"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:02:54.923001"], ["updated_at", "2015-05-13 08:02:54.923001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:02:54.925991"], ["updated_at", "2015-05-13 08:02:54.925991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 205], ["created_at", "2015-05-13 08:02:54.927900"], ["updated_at", "2015-05-13 08:02:54.927900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:02:54.930411"], ["updated_at", "2015-05-13 08:02:54.930411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:02:54.936444"], ["updated_at", "2015-05-13 08:02:54.936444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:02:54.939651"], ["updated_at", "2015-05-13 08:02:54.939651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:02:54.942357"], ["updated_at", "2015-05-13 08:02:54.942357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204))  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:02:54.949222"], ["updated_at", "2015-05-13 08:02:54.949222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:02:54.956908"], ["updated_at", "2015-05-13 08:02:54.956908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:02:54.958374"], ["updated_at", "2015-05-13 08:02:54.958374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:02:54.959790"], ["updated_at", "2015-05-13 08:02:54.959790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 204]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 204]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 204]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 204]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 204]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 204]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 204]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 204]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:04:24.887542"], ["updated_at", "2015-05-13 08:04:24.887542"]]  (13.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 205], ["created_at", "2015-05-13 08:04:24.933115"], ["updated_at", "2015-05-13 08:04:24.933115"]]  (12.5ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 205], ["created_at", "2015-05-13 08:04:24.961662"], ["updated_at", "2015-05-13 08:04:24.961662"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 205], ["created_at", "2015-05-13 08:04:24.987637"], ["updated_at", "2015-05-13 08:04:24.987637"]]  (26.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 205], ["updated_at", "2015-05-13 08:04:25.016960"], ["id", 205]]  (22.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cad64f364e2122da48a0d5fbea056bfa', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4e809223a15d0a00010be731a7afeafc', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b8a6ad72582673506d722851b220fb07', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '73323d3b8773a613900a13ac64fee58a', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5994fdf11d9b9637a21eeae00ad4db28', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd82e3b6b1954cb7844159a4258fd8c55', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '795862d3e13ef862d3d99e9f28bb16d5', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c396ec87aef8b5cdd8032ae9e0083c1b', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '053d1feee1330554f7652e46ee5e7c53', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9ca968c00a223a0fb6062fba0dcf3182', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '23af64cba9d055a38cb5fca690c2cf49', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9944853cd4b46c374e3ae4f02c24769d', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8d592ae0f740316e52532634578f36db', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9597de09df0311bf827a3a25922127e5', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '852260dcd6922ff10b50cc0d2daad223', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:04:25', '2015-05-13 08:04:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:04:25', '2015-05-13 08:04:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:04:25', '2015-05-13 08:04:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '48fdcddb4b74be0814ead738dc7c9805', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b0b7451bf1a164f5062362ae058e76a6', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c116576deaa36459a95584999c8797ad', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4113507cb6721c7c95a633e072f3d700', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bb28d568d4625acdbc5acce096927560', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c85a630724f94fed036058c4b3102f51', '2015-05-13 08:04:25', '2015-05-13 08:04:25', 410780858)  (13.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 205]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 205]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 205]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 205]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 205]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 205]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 205]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 205]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:04:25.285060"], ["updated_at", "2015-05-13 08:04:25.285060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:04:25.286526"], ["updated_at", "2015-05-13 08:04:25.286526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:04:25.287833"], ["updated_at", "2015-05-13 08:04:25.287833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:04:25.289054"], ["updated_at", "2015-05-13 08:04:25.289054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:04:25.290236"], ["updated_at", "2015-05-13 08:04:25.290236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:04:25.291472"], ["updated_at", "2015-05-13 08:04:25.291472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:04:25.299985"], ["updated_at", "2015-05-13 08:04:25.299985"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:04:25.301487"], ["updated_at", "2015-05-13 08:04:25.301487"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:04:25.305788"], ["updated_at", "2015-05-13 08:04:25.305788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:04:25.307352"], ["updated_at", "2015-05-13 08:04:25.307352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:04:25.308637"], ["updated_at", "2015-05-13 08:04:25.308637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:04:25.309794"], ["updated_at", "2015-05-13 08:04:25.309794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:04:25.310947"], ["updated_at", "2015-05-13 08:04:25.310947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:04:25.312193"], ["updated_at", "2015-05-13 08:04:25.312193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:04:25.314930"], ["updated_at", "2015-05-13 08:04:25.314930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:04:25.316497"], ["updated_at", "2015-05-13 08:04:25.316497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:04:25.317816"], ["updated_at", "2015-05-13 08:04:25.317816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:04:25.331503"], ["updated_at", "2015-05-13 08:04:25.331503"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:04:25.332818"], ["updated_at", "2015-05-13 08:04:25.332818"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:04:25.333798"], ["updated_at", "2015-05-13 08:04:25.333798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:04:25.361011"], ["updated_at", "2015-05-13 08:04:25.361011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 206], ["created_at", "2015-05-13 08:04:25.362958"], ["updated_at", "2015-05-13 08:04:25.362958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 206], ["created_at", "2015-05-13 08:04:25.364873"], ["updated_at", "2015-05-13 08:04:25.364873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 206], ["created_at", "2015-05-13 08:04:25.366676"], ["updated_at", "2015-05-13 08:04:25.366676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 206], ["updated_at", "2015-05-13 08:04:25.367993"], ["id", 206]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 206]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 206]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 206]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 206]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 206]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 206]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 206]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 206]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:04:25.389088"], ["updated_at", "2015-05-13 08:04:25.389088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:04:25.390428"], ["updated_at", "2015-05-13 08:04:25.390428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:04:25.391688"], ["updated_at", "2015-05-13 08:04:25.391688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:04:25.396268"], ["updated_at", "2015-05-13 08:04:25.396268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:04:25.399711"], ["updated_at", "2015-05-13 08:04:25.399711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:04:25.402281"], ["updated_at", "2015-05-13 08:04:25.402281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (1.0ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (SELECT "alpha.id"))  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:04:25.440823"], ["updated_at", "2015-05-13 08:04:25.440823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:04:25.443156"], ["updated_at", "2015-05-13 08:04:25.443156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:04:25.444634"], ["updated_at", "2015-05-13 08:04:25.444634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:04:25.446004"], ["updated_at", "2015-05-13 08:04:25.446004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:04:25.450052"], ["updated_at", "2015-05-13 08:04:25.450052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:04:25.451636"], ["updated_at", "2015-05-13 08:04:25.451636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:04:25.452962"], ["updated_at", "2015-05-13 08:04:25.452962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:04:25.455595"], ["updated_at", "2015-05-13 08:04:25.455595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 206], ["created_at", "2015-05-13 08:04:25.457461"], ["updated_at", "2015-05-13 08:04:25.457461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 206], ["created_at", "2015-05-13 08:04:25.459323"], ["updated_at", "2015-05-13 08:04:25.459323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 206], ["created_at", "2015-05-13 08:04:25.461253"], ["updated_at", "2015-05-13 08:04:25.461253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:04:25.470501"], ["updated_at", "2015-05-13 08:04:25.470501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:04:25.471886"], ["updated_at", "2015-05-13 08:04:25.471886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:04:25.473113"], ["updated_at", "2015-05-13 08:04:25.473113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:04:25.479264"], ["updated_at", "2015-05-13 08:04:25.479264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:04:25.484244"], ["updated_at", "2015-05-13 08:04:25.484244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:04:25.487842"], ["updated_at", "2015-05-13 08:04:25.487842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:04:25.489931"], ["updated_at", "2015-05-13 08:04:25.489931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:04:25.492017"], ["updated_at", "2015-05-13 08:04:25.492017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:04:25.494888"], ["updated_at", "2015-05-13 08:04:25.494888"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:04:25.495826"], ["updated_at", "2015-05-13 08:04:25.495826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:04:25.498649"], ["updated_at", "2015-05-13 08:04:25.498649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:04:25.500811"], ["updated_at", "2015-05-13 08:04:25.500811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 206], ["created_at", "2015-05-13 08:04:25.502603"], ["updated_at", "2015-05-13 08:04:25.502603"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:04:25.505115"], ["updated_at", "2015-05-13 08:04:25.505115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:04:25.509662"], ["updated_at", "2015-05-13 08:04:25.509662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:04:25.510974"], ["updated_at", "2015-05-13 08:04:25.510974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:04:25.512243"], ["updated_at", "2015-05-13 08:04:25.512243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:05:26.527809"], ["updated_at", "2015-05-13 08:05:26.527809"]]  (30.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 206], ["created_at", "2015-05-13 08:05:26.590007"], ["updated_at", "2015-05-13 08:05:26.590007"]]  (23.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 206], ["created_at", "2015-05-13 08:05:26.629154"], ["updated_at", "2015-05-13 08:05:26.629154"]]  (31.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 206], ["created_at", "2015-05-13 08:05:26.677772"], ["updated_at", "2015-05-13 08:05:26.677772"]]  (26.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 206], ["updated_at", "2015-05-13 08:05:26.706856"], ["id", 206]]  (22.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '467d5912e219f6f00d1d313176a568b4', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b3f40e71dca3256a7308ea13e02d4f1', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '52a1bf70017e589d731e1ec73b4fd546', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ccc04d15c1c2089cef87ba1e779c90f2', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f9d9918fcd276562d72e3e278437f59e', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b6f6c9fd861a482cd282403e24e13d2', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1922683eb1781cfc16fa031be90633cd', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '89f7b58b4931543bd2abb63953e5e3ce', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5c2078779b35124644081a546e68f0dc', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ee840da05a2eab58218e5370cd059bfb', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '54a023c66de435a3bd78d0360dbce2e9', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ea5412ffb16078125372f7225268c789', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e702965ff2e969d002d5fc08cc19285e', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '238b06f0db2c91cdbcdc3a9bfe789918', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '80d6e77914d0755a3ef8fd82c8bfb3e5', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:05:26', '2015-05-13 08:05:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:05:26', '2015-05-13 08:05:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:05:26', '2015-05-13 08:05:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2a22523011d176cd9efc9c6aaf63cf49', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fbdf446814b2542b4cb124b09f833ac2', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '10d15854d6462f3481746d64d38a0dc7', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4abd0949d0ea8836fee8e1bcd279f5ad', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '245050d8b43fcd734edf8b3cde063dd5', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0e998c02416ca1163f6c6d125041ddfb', '2015-05-13 08:05:26', '2015-05-13 08:05:26', 410780858)  (28.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:05:27.023908"], ["updated_at", "2015-05-13 08:05:27.023908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:05:27.025550"], ["updated_at", "2015-05-13 08:05:27.025550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:05:27.027280"], ["updated_at", "2015-05-13 08:05:27.027280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:05:27.060966"], ["updated_at", "2015-05-13 08:05:27.060966"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:05:27.062202"], ["updated_at", "2015-05-13 08:05:27.062202"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:05:27.063153"], ["updated_at", "2015-05-13 08:05:27.063153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:05:27.075818"], ["updated_at", "2015-05-13 08:05:27.075818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:05:27.077292"], ["updated_at", "2015-05-13 08:05:27.077292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:05:27.078520"], ["updated_at", "2015-05-13 08:05:27.078520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:05:27.083110"], ["updated_at", "2015-05-13 08:05:27.083110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 207], ["created_at", "2015-05-13 08:05:27.085042"], ["updated_at", "2015-05-13 08:05:27.085042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 207], ["created_at", "2015-05-13 08:05:27.087272"], ["updated_at", "2015-05-13 08:05:27.087272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 207], ["created_at", "2015-05-13 08:05:27.089119"], ["updated_at", "2015-05-13 08:05:27.089119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 207], ["updated_at", "2015-05-13 08:05:27.090401"], ["id", 207]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 207]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 207]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 207]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 207]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 207]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 207]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 207]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 207]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:05:27.112843"], ["updated_at", "2015-05-13 08:05:27.112843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:05:27.114268"], ["updated_at", "2015-05-13 08:05:27.114268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:05:27.115526"], ["updated_at", "2015-05-13 08:05:27.115526"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:05:27.121372"], ["updated_at", "2015-05-13 08:05:27.121372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:05:27.122739"], ["updated_at", "2015-05-13 08:05:27.122739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:05:27.124062"], ["updated_at", "2015-05-13 08:05:27.124062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:05:27.125254"], ["updated_at", "2015-05-13 08:05:27.125254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:05:27.126439"], ["updated_at", "2015-05-13 08:05:27.126439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:05:27.127635"], ["updated_at", "2015-05-13 08:05:27.127635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:05:27.130969"], ["updated_at", "2015-05-13 08:05:27.130969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:05:27.133468"], ["updated_at", "2015-05-13 08:05:27.133468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:05:27.136059"], ["updated_at", "2015-05-13 08:05:27.136059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (SELECT "alpha.id" FROM alpha)) SQLite3::SQLException: no such table: alpha: SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (SELECT "alpha.id" FROM alpha))  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:05:27.139211"], ["updated_at", "2015-05-13 08:05:27.139211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 207], ["created_at", "2015-05-13 08:05:27.141060"], ["updated_at", "2015-05-13 08:05:27.141060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:05:27.143512"], ["updated_at", "2015-05-13 08:05:27.143512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:05:27.146371"], ["updated_at", "2015-05-13 08:05:27.146371"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:05:27.148038"], ["updated_at", "2015-05-13 08:05:27.148038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:05:27.149405"], ["updated_at", "2015-05-13 08:05:27.149405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:05:27.150596"], ["updated_at", "2015-05-13 08:05:27.150596"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:05:27.151796"], ["updated_at", "2015-05-13 08:05:27.151796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:05:27.153004"], ["updated_at", "2015-05-13 08:05:27.153004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:05:27.156523"], ["updated_at", "2015-05-13 08:05:27.156523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 207], ["created_at", "2015-05-13 08:05:27.158350"], ["updated_at", "2015-05-13 08:05:27.158350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 207], ["created_at", "2015-05-13 08:05:27.160276"], ["updated_at", "2015-05-13 08:05:27.160276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 207], ["created_at", "2015-05-13 08:05:27.162095"], ["updated_at", "2015-05-13 08:05:27.162095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:05:27.169065"], ["updated_at", "2015-05-13 08:05:27.169065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:05:27.170417"], ["updated_at", "2015-05-13 08:05:27.170417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:05:27.171724"], ["updated_at", "2015-05-13 08:05:27.171724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:05:27.175078"], ["updated_at", "2015-05-13 08:05:27.175078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:05:27.177192"], ["updated_at", "2015-05-13 08:05:27.177192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:05:27.179407"], ["updated_at", "2015-05-13 08:05:27.179407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:05:27.182571"], ["updated_at", "2015-05-13 08:05:27.182571"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:05:27.183630"], ["updated_at", "2015-05-13 08:05:27.183630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:05:27.186443"], ["updated_at", "2015-05-13 08:05:27.186443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:05:27.189868"], ["updated_at", "2015-05-13 08:05:27.189868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:05:27.191218"], ["updated_at", "2015-05-13 08:05:27.191218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:05:27.192521"], ["updated_at", "2015-05-13 08:05:27.192521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:05:27.197829"], ["updated_at", "2015-05-13 08:05:27.197829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:05:27.202393"], ["updated_at", "2015-05-13 08:05:27.202393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:05:27.207150"], ["updated_at", "2015-05-13 08:05:27.207150"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:05:27.208430"], ["updated_at", "2015-05-13 08:05:27.208430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:05:27.211447"], ["updated_at", "2015-05-13 08:05:27.211447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:05:27.212913"], ["updated_at", "2015-05-13 08:05:27.212913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:05:27.214215"], ["updated_at", "2015-05-13 08:05:27.214215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:05:27.218079"], ["updated_at", "2015-05-13 08:05:27.218079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 206]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 206]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 206]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 206]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 206]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 206]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 206]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 206]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:11.594066"], ["updated_at", "2015-05-13 08:06:11.594066"]]  (13.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 207], ["created_at", "2015-05-13 08:06:11.636618"], ["updated_at", "2015-05-13 08:06:11.636618"]]  (12.4ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 207], ["created_at", "2015-05-13 08:06:11.664000"], ["updated_at", "2015-05-13 08:06:11.664000"]]  (24.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 207], ["created_at", "2015-05-13 08:06:11.703128"], ["updated_at", "2015-05-13 08:06:11.703128"]]  (23.0ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 207], ["updated_at", "2015-05-13 08:06:11.728458"], ["id", 207]]  (20.3ms) commit transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '545f9d04e1493b7828a47a320edfefe6', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a52fb8c881169cf635fe88107c229caf', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0e26246d414528da0eb1249911e61107', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '23feec59a4ec0a82109e6393797813f7', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '59359507da372cb148da67ed80978f51', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7183d4e7f85234912db41d4f8cb345f9', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4a3a3829530e2875b0a44f6689e1b536', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'afe64a847e67098fc18173e08c945f5a', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2046bb552571ccb78a0f83c2aed84401', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ec447940f7f6e64a521a5a7d1cd17273', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '62d28efa8e95ba0454b7520671a3477e', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '87adb1935236e2d80b94717afc4ffcca', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '014c52ddba3a2d1aeaca047e3cbd065f', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cfb64abfa8725ec4c42f434e0a29aaa1', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ad53b09a93428452af2040cce09f496e', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:06:11', '2015-05-13 08:06:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:06:11', '2015-05-13 08:06:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:06:11', '2015-05-13 08:06:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6d9a70dd47e278bfbbfc17a803ef7edf', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c15a2ae5712644282eccace663506e85', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e7f0c4bec4c0cbdb2c02b853cc4f500d', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '07ce0af05c38d700c88bee7787abd241', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c7c700071291a056a4087ccf5d833171', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2f23e465307e5fe101fa7ae105058fcb', '2015-05-13 08:06:11', '2015-05-13 08:06:11', 410780858)  (24.3ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:06:11.889028"], ["updated_at", "2015-05-13 08:06:11.889028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:11.894831"], ["updated_at", "2015-05-13 08:06:11.894831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:11.896420"], ["updated_at", "2015-05-13 08:06:11.896420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:06:11.897821"], ["updated_at", "2015-05-13 08:06:11.897821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:06:11.919188"], ["updated_at", "2015-05-13 08:06:11.919188"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:06:11.920467"], ["updated_at", "2015-05-13 08:06:11.920467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:11.927187"], ["updated_at", "2015-05-13 08:06:11.927187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:11.928596"], ["updated_at", "2015-05-13 08:06:11.928596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:11.929875"], ["updated_at", "2015-05-13 08:06:11.929875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:11.931073"], ["updated_at", "2015-05-13 08:06:11.931073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:11.932328"], ["updated_at", "2015-05-13 08:06:11.932328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:06:11.933495"], ["updated_at", "2015-05-13 08:06:11.933495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:11.936001"], ["updated_at", "2015-05-13 08:06:11.936001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 208], ["created_at", "2015-05-13 08:06:11.937930"], ["updated_at", "2015-05-13 08:06:11.937930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 208], ["created_at", "2015-05-13 08:06:11.939855"], ["updated_at", "2015-05-13 08:06:11.939855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 208], ["created_at", "2015-05-13 08:06:11.941964"], ["updated_at", "2015-05-13 08:06:11.941964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 208], ["updated_at", "2015-05-13 08:06:11.943765"], ["id", 208]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 208]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 208]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 208]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 208]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 208]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 208]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 208]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 208]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:06:11.972817"], ["updated_at", "2015-05-13 08:06:11.972817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:06:11.986028"], ["updated_at", "2015-05-13 08:06:11.986028"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:06:11.987270"], ["updated_at", "2015-05-13 08:06:11.987270"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:06:11.988283"], ["updated_at", "2015-05-13 08:06:11.988283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:12.004761"], ["updated_at", "2015-05-13 08:06:12.004761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:12.007241"], ["updated_at", "2015-05-13 08:06:12.007241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:12.009562"], ["updated_at", "2015-05-13 08:06:12.009562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:06:12.012696"], ["updated_at", "2015-05-13 08:06:12.012696"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:06:12.013681"], ["updated_at", "2015-05-13 08:06:12.013681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:12.016559"], ["updated_at", "2015-05-13 08:06:12.016559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:12.023234"], ["updated_at", "2015-05-13 08:06:12.023234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:12.026735"], ["updated_at", "2015-05-13 08:06:12.026735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:06:12.029475"], ["updated_at", "2015-05-13 08:06:12.029475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:12.032919"], ["updated_at", "2015-05-13 08:06:12.032919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:12.036967"], ["updated_at", "2015-05-13 08:06:12.036967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:12.038816"], ["updated_at", "2015-05-13 08:06:12.038816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:12.040315"], ["updated_at", "2015-05-13 08:06:12.040315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:12.041850"], ["updated_at", "2015-05-13 08:06:12.041850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:12.043105"], ["updated_at", "2015-05-13 08:06:12.043105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:06:12.044400"], ["updated_at", "2015-05-13 08:06:12.044400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:12.048806"], ["updated_at", "2015-05-13 08:06:12.048806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 208], ["created_at", "2015-05-13 08:06:12.050758"], ["updated_at", "2015-05-13 08:06:12.050758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 208], ["created_at", "2015-05-13 08:06:12.052670"], ["updated_at", "2015-05-13 08:06:12.052670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 208], ["created_at", "2015-05-13 08:06:12.054486"], ["updated_at", "2015-05-13 08:06:12.054486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:12.061679"], ["updated_at", "2015-05-13 08:06:12.061679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:12.063103"], ["updated_at", "2015-05-13 08:06:12.063103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:12.064492"], ["updated_at", "2015-05-13 08:06:12.064492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:06:12.067158"], ["updated_at", "2015-05-13 08:06:12.067158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:06:12.068637"], ["updated_at", "2015-05-13 08:06:12.068637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:06:12.069980"], ["updated_at", "2015-05-13 08:06:12.069980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:06:12.075339"], ["updated_at", "2015-05-13 08:06:12.075339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:06:12.076833"], ["updated_at", "2015-05-13 08:06:12.076833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:06:12.078179"], ["updated_at", "2015-05-13 08:06:12.078179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:12.084171"], ["updated_at", "2015-05-13 08:06:12.084171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:12.085618"], ["updated_at", "2015-05-13 08:06:12.085618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:12.092074"], ["updated_at", "2015-05-13 08:06:12.092074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:12.095816"], ["updated_at", "2015-05-13 08:06:12.095816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 208], ["created_at", "2015-05-13 08:06:12.097713"], ["updated_at", "2015-05-13 08:06:12.097713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:12.100204"], ["updated_at", "2015-05-13 08:06:12.100204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:12.111442"], ["updated_at", "2015-05-13 08:06:12.111442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:12.112875"], ["updated_at", "2015-05-13 08:06:12.112875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:12.114141"], ["updated_at", "2015-05-13 08:06:12.114141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 207]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 207]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 207]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 207]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 207]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 207]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 207]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 207]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:33.398611"], ["updated_at", "2015-05-13 08:06:33.398611"]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 208], ["created_at", "2015-05-13 08:06:33.442301"], ["updated_at", "2015-05-13 08:06:33.442301"]]  (28.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 208], ["created_at", "2015-05-13 08:06:33.485729"], ["updated_at", "2015-05-13 08:06:33.485729"]]  (18.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 208], ["created_at", "2015-05-13 08:06:33.513200"], ["updated_at", "2015-05-13 08:06:33.513200"]]  (24.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 208], ["updated_at", "2015-05-13 08:06:33.539617"], ["id", 208]]  (20.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e1b33f4064a9abc9167f961138d48465', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dd074975f1711e845b75dd46107a5229', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '779288d92f05cdd8e25f85ab713b1d23', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7129bc95854e83fcd191df14c0813be1', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f88f8a9f69d59587626adf3a0758a34e', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c757bced4c2e8b0db14414a8bc69797a', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c712eab1c3b65b2c9d05c27feb7c60f5', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fb32b04ba9bf49588e05022aafb2d303', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c20c3179019fa448637e8c2d97840c92', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f4e902c996bc58102abcb77d90ff65c2', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ab490d2f1d0ed3e5921af0ccf9fd69e0', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6d254e2a6486d066e7a0e9b50583ac76', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '872b2a606729e0ed7bff5cbd61649fad', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b86ff75356e3f3dbf3b900ef1bbf070', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a062c0a305617c004603725132d063b4', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:06:33', '2015-05-13 08:06:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:06:33', '2015-05-13 08:06:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:06:33', '2015-05-13 08:06:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cf3a5bac5ef0f0add936bee26d8e2a62', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e3c2f22ca58fe91a56fea36842f64a1f', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e91101d126fc26fe5e8482f4ef4083ae', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c42b09b438d0be47c22cf084dcdcbcc0', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6b437973331a44f9d3a88bd90b128d5b', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3352e78fbf5feed3c14a116d43d70c36', '2015-05-13 08:06:33', '2015-05-13 08:06:33', 410780858)  (31.1ms) commit transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.4ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 208]] Alpha Load (0.3ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 208]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 208]] Capa Load (0.3ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 208]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 208]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 208]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 208]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 208]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:33.879109"], ["updated_at", "2015-05-13 08:06:33.879109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:33.881590"], ["updated_at", "2015-05-13 08:06:33.881590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:33.883435"], ["updated_at", "2015-05-13 08:06:33.883435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:33.884977"], ["updated_at", "2015-05-13 08:06:33.884977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:33.886234"], ["updated_at", "2015-05-13 08:06:33.886234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:06:33.887460"], ["updated_at", "2015-05-13 08:06:33.887460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:33.892474"], ["updated_at", "2015-05-13 08:06:33.892474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:33.893788"], ["updated_at", "2015-05-13 08:06:33.893788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:33.894990"], ["updated_at", "2015-05-13 08:06:33.894990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:33.897350"], ["updated_at", "2015-05-13 08:06:33.897350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:33.899326"], ["updated_at", "2015-05-13 08:06:33.899326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:33.901392"], ["updated_at", "2015-05-13 08:06:33.901392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:06:33.904441"], ["updated_at", "2015-05-13 08:06:33.904441"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:06:33.905482"], ["updated_at", "2015-05-13 08:06:33.905482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:33.908916"], ["updated_at", "2015-05-13 08:06:33.908916"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:33.918601"], ["updated_at", "2015-05-13 08:06:33.918601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 209], ["created_at", "2015-05-13 08:06:33.920651"], ["updated_at", "2015-05-13 08:06:33.920651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 209], ["created_at", "2015-05-13 08:06:33.922517"], ["updated_at", "2015-05-13 08:06:33.922517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 209], ["created_at", "2015-05-13 08:06:33.924339"], ["updated_at", "2015-05-13 08:06:33.924339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:06:33.940810"], ["updated_at", "2015-05-13 08:06:33.940810"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:06:33.942400"], ["updated_at", "2015-05-13 08:06:33.942400"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:06:33.943615"], ["updated_at", "2015-05-13 08:06:33.943615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:33.957772"], ["updated_at", "2015-05-13 08:06:33.957772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:33.967512"], ["updated_at", "2015-05-13 08:06:33.967512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 209], ["created_at", "2015-05-13 08:06:33.969443"], ["updated_at", "2015-05-13 08:06:33.969443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:33.971946"], ["updated_at", "2015-05-13 08:06:33.971946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:06:33.977092"], ["updated_at", "2015-05-13 08:06:33.977092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:33.979493"], ["updated_at", "2015-05-13 08:06:33.979493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:33.980861"], ["updated_at", "2015-05-13 08:06:33.980861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:33.982118"], ["updated_at", "2015-05-13 08:06:33.982118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:33.983298"], ["updated_at", "2015-05-13 08:06:33.983298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:33.984515"], ["updated_at", "2015-05-13 08:06:33.984515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:06:33.985774"], ["updated_at", "2015-05-13 08:06:33.985774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:33.987945"], ["updated_at", "2015-05-13 08:06:33.987945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:33.989213"], ["updated_at", "2015-05-13 08:06:33.989213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:33.990461"], ["updated_at", "2015-05-13 08:06:33.990461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:06:33.995575"], ["updated_at", "2015-05-13 08:06:33.995575"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:06:33.996597"], ["updated_at", "2015-05-13 08:06:33.996597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:34.002133"], ["updated_at", "2015-05-13 08:06:34.002133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:34.004053"], ["updated_at", "2015-05-13 08:06:34.004053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:06:34.005689"], ["updated_at", "2015-05-13 08:06:34.005689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:06:34.010075"], ["updated_at", "2015-05-13 08:06:34.010075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:34.016464"], ["updated_at", "2015-05-13 08:06:34.016464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:34.017755"], ["updated_at", "2015-05-13 08:06:34.017755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:34.018961"], ["updated_at", "2015-05-13 08:06:34.018961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:06:34.023435"], ["updated_at", "2015-05-13 08:06:34.023435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:06:34.024960"], ["updated_at", "2015-05-13 08:06:34.024960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:06:34.026284"], ["updated_at", "2015-05-13 08:06:34.026284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:34.033979"], ["updated_at", "2015-05-13 08:06:34.033979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:34.037466"], ["updated_at", "2015-05-13 08:06:34.037466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:06:34.040168"], ["updated_at", "2015-05-13 08:06:34.040168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (1.1ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (SELECT "alpha.id" FROM alphas))  (0.4ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:34.092231"], ["updated_at", "2015-05-13 08:06:34.092231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 209], ["created_at", "2015-05-13 08:06:34.094181"], ["updated_at", "2015-05-13 08:06:34.094181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 209], ["created_at", "2015-05-13 08:06:34.096066"], ["updated_at", "2015-05-13 08:06:34.096066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 209], ["created_at", "2015-05-13 08:06:34.097803"], ["updated_at", "2015-05-13 08:06:34.097803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 209], ["updated_at", "2015-05-13 08:06:34.099024"], ["id", 209]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 209]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 209]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 209]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 209]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 209]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 209]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 209]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 209]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:06:34.121505"], ["updated_at", "2015-05-13 08:06:34.121505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:06:34.122970"], ["updated_at", "2015-05-13 08:06:34.122970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:06:34.124471"], ["updated_at", "2015-05-13 08:06:34.124471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:57.326553"], ["updated_at", "2015-05-13 08:06:57.326553"]]  (13.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 209], ["created_at", "2015-05-13 08:06:57.367838"], ["updated_at", "2015-05-13 08:06:57.367838"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 209], ["created_at", "2015-05-13 08:06:57.396343"], ["updated_at", "2015-05-13 08:06:57.396343"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 209], ["created_at", "2015-05-13 08:06:57.422588"], ["updated_at", "2015-05-13 08:06:57.422588"]]  (12.2ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 209], ["updated_at", "2015-05-13 08:06:57.436358"], ["id", 209]]  (19.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '628f7acb7367ab40918066a8bb4c3a98', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2f4b59d6bdc986681ecf266d9d9e9c0a', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '39c3ce74ed8e77e10811c3a137b7d7ed', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f55878c61f2b1a33b3abc8006836fea9', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '20b66d52b37637762df911437e5c4cc6', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cad8270d6afc2ae30a5622b75badcc4a', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f367508d7dbff7f7a7630d1b42362337', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '95e1caad829740537fe595a786088a44', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7f8ca4a9e4530e002ef8e4edffbc9736', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c400c00502fc63b9707ebafaea26dada', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a91ae4d288c620067e37b4e6278fa752', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '39674bf917c2f4e57d278f46c3dc22f0', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '193e1300fa0d3d7d3cf221307978d509', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b0484d7d0c66df0ff116bdd698918754', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a82de56c03646c6f3458799fd1b169b0', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:06:57', '2015-05-13 08:06:57', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:06:57', '2015-05-13 08:06:57', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:06:57', '2015-05-13 08:06:57', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd5e496d22d069a7900fe31fc0b855976', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a19c19ddb9d771ae7f9bd97604b8155a', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b28422d4d58af769e9bed5402aa1cd80', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'eb531ec76ce5a46195904580d4d7826f', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4431129b4c55739fec56b804fb97b920', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3999beacb9912e29aff225d5d56a446b', '2015-05-13 08:06:57', '2015-05-13 08:06:57', 410780858)  (18.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.3ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 209]] Alpha Load (0.3ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 209]] Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 209]] Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 209]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 209]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 209]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 209]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 209]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:57.641936"], ["updated_at", "2015-05-13 08:06:57.641936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 210], ["created_at", "2015-05-13 08:06:57.644013"], ["updated_at", "2015-05-13 08:06:57.644013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 210], ["created_at", "2015-05-13 08:06:57.645879"], ["updated_at", "2015-05-13 08:06:57.645879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 210], ["created_at", "2015-05-13 08:06:57.647642"], ["updated_at", "2015-05-13 08:06:57.647642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 210], ["updated_at", "2015-05-13 08:06:57.648950"], ["id", 210]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 210]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 210]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 210]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 210]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 210]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 210]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 210]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 210]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:57.673238"], ["updated_at", "2015-05-13 08:06:57.673238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 210], ["created_at", "2015-05-13 08:06:57.675188"], ["updated_at", "2015-05-13 08:06:57.675188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:57.680923"], ["updated_at", "2015-05-13 08:06:57.680923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:06:57.685485"], ["updated_at", "2015-05-13 08:06:57.685485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:57.688573"], ["updated_at", "2015-05-13 08:06:57.688573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:57.689997"], ["updated_at", "2015-05-13 08:06:57.689997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:57.691324"], ["updated_at", "2015-05-13 08:06:57.691324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:06:57.709357"], ["updated_at", "2015-05-13 08:06:57.709357"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:06:57.710517"], ["updated_at", "2015-05-13 08:06:57.710517"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:06:57.711515"], ["updated_at", "2015-05-13 08:06:57.711515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:57.727872"], ["updated_at", "2015-05-13 08:06:57.727872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:57.730182"], ["updated_at", "2015-05-13 08:06:57.730182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:57.732206"], ["updated_at", "2015-05-13 08:06:57.732206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:06:57.735264"], ["updated_at", "2015-05-13 08:06:57.735264"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:06:57.736316"], ["updated_at", "2015-05-13 08:06:57.736316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:57.739499"], ["updated_at", "2015-05-13 08:06:57.739499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:06:57.744597"], ["updated_at", "2015-05-13 08:06:57.744597"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:06:57.745622"], ["updated_at", "2015-05-13 08:06:57.745622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:57.749706"], ["updated_at", "2015-05-13 08:06:57.749706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:57.751136"], ["updated_at", "2015-05-13 08:06:57.751136"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:57.752556"], ["updated_at", "2015-05-13 08:06:57.752556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:06:57.761947"], ["updated_at", "2015-05-13 08:06:57.761947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:57.773067"], ["updated_at", "2015-05-13 08:06:57.773067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 210], ["created_at", "2015-05-13 08:06:57.775056"], ["updated_at", "2015-05-13 08:06:57.775056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 210], ["created_at", "2015-05-13 08:06:57.777004"], ["updated_at", "2015-05-13 08:06:57.777004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 210], ["created_at", "2015-05-13 08:06:57.778823"], ["updated_at", "2015-05-13 08:06:57.778823"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:06:57.785928"], ["updated_at", "2015-05-13 08:06:57.785928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:57.789091"], ["updated_at", "2015-05-13 08:06:57.789091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:57.790467"], ["updated_at", "2015-05-13 08:06:57.790467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:57.791770"], ["updated_at", "2015-05-13 08:06:57.791770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:57.796182"], ["updated_at", "2015-05-13 08:06:57.796182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:57.797535"], ["updated_at", "2015-05-13 08:06:57.797535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:57.798862"], ["updated_at", "2015-05-13 08:06:57.798862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:57.800121"], ["updated_at", "2015-05-13 08:06:57.800121"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:57.801343"], ["updated_at", "2015-05-13 08:06:57.801343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:06:57.802595"], ["updated_at", "2015-05-13 08:06:57.802595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:06:57.808652"], ["updated_at", "2015-05-13 08:06:57.808652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:06:57.810149"], ["updated_at", "2015-05-13 08:06:57.810149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:06:57.811505"], ["updated_at", "2015-05-13 08:06:57.811505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:57.815766"], ["updated_at", "2015-05-13 08:06:57.815766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:57.817144"], ["updated_at", "2015-05-13 08:06:57.817144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:06:57.818417"], ["updated_at", "2015-05-13 08:06:57.818417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:57.826947"], ["updated_at", "2015-05-13 08:06:57.826947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:57.829473"], ["updated_at", "2015-05-13 08:06:57.829473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:06:57.832082"], ["updated_at", "2015-05-13 08:06:57.832082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (1.1ms) SELECT "beta".* FROM "beta" WHERE ("alpha_id" NOT IN (SELECT "alpha.id" FROM alphas))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:06:57.869624"], ["updated_at", "2015-05-13 08:06:57.869624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:06:57.871280"], ["updated_at", "2015-05-13 08:06:57.871280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:06:57.872805"], ["updated_at", "2015-05-13 08:06:57.872805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:06:57.874239"], ["updated_at", "2015-05-13 08:06:57.874239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:06:57.875650"], ["updated_at", "2015-05-13 08:06:57.875650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:06:57.876911"], ["updated_at", "2015-05-13 08:06:57.876911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:06:57.880742"], ["updated_at", "2015-05-13 08:06:57.880742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:06:57.882282"], ["updated_at", "2015-05-13 08:06:57.882282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:06:57.883689"], ["updated_at", "2015-05-13 08:06:57.883689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:07:13.037705"], ["updated_at", "2015-05-13 08:07:13.037705"]]  (16.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 210], ["created_at", "2015-05-13 08:07:13.081101"], ["updated_at", "2015-05-13 08:07:13.081101"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 210], ["created_at", "2015-05-13 08:07:13.107014"], ["updated_at", "2015-05-13 08:07:13.107014"]]  (20.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 210], ["created_at", "2015-05-13 08:07:13.141852"], ["updated_at", "2015-05-13 08:07:13.141852"]]  (28.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 210], ["updated_at", "2015-05-13 08:07:13.171429"], ["id", 210]]  (29.1ms) commit transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e5f64b88fa37e61e8c9c9af19012f1b9', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ed82b883901b678bf8ef8aa681682eaf', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '957231fe9d56656db52c9f768569c739', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cf163aefaa513f40e95cf7db40bf0acf', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3cb5cdca3f6f92a9cefceba68a5d82b2', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5ee3bac87e61daaf7abc74ae1cbcc83a', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '545a6f7884ca8b0718ee726e765b077b', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a8d4dedf5cae4e385860e8594995c8d9', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2fad5feeddee5123d0a61320b34540c8', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '279844c0b586ee83e3bd936c3444e4ef', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '02cf65e3b43c9ca9dc736fb65da0cf75', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c20207508c8df5fd4070cc9395105ff8', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3dd8e549cde9fb1f76aa7b59c1c946b8', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0838184f4923afb1a18932a05007ed88', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b71161c83a27ed0dd5041f59260c6617', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:07:13', '2015-05-13 08:07:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:07:13', '2015-05-13 08:07:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:07:13', '2015-05-13 08:07:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'da57b75cf4347a47c8770c14d924681d', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'eccc080750ac327da6ef92f3c1501f70', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b2b9854c6cc91ee058ec20e547a52ecd', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '17536df231c31d8f756fd4727c0e8ffd', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '04958180636dc48665af0320cbb4886d', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '987d42148a263322e5ce2cc533ec51f9', '2015-05-13 08:07:13', '2015-05-13 08:07:13', 410780858)  (32.7ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:07:13.332231"], ["updated_at", "2015-05-13 08:07:13.332231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:07:13.333883"], ["updated_at", "2015-05-13 08:07:13.333883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:07:13.335288"], ["updated_at", "2015-05-13 08:07:13.335288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:07:13.346845"], ["updated_at", "2015-05-13 08:07:13.346845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:07:13.348467"], ["updated_at", "2015-05-13 08:07:13.348467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:07:13.349761"], ["updated_at", "2015-05-13 08:07:13.349761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:07:13.352293"], ["updated_at", "2015-05-13 08:07:13.352293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:07:13.354451"], ["updated_at", "2015-05-13 08:07:13.354451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:07:13.356722"], ["updated_at", "2015-05-13 08:07:13.356722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:07:13.371910"], ["updated_at", "2015-05-13 08:07:13.371910"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:07:13.373232"], ["updated_at", "2015-05-13 08:07:13.373232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:07:13.377237"], ["updated_at", "2015-05-13 08:07:13.377237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:07:13.388408"], ["updated_at", "2015-05-13 08:07:13.388408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:07:13.389861"], ["updated_at", "2015-05-13 08:07:13.389861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:07:13.391158"], ["updated_at", "2015-05-13 08:07:13.391158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:07:13.392440"], ["updated_at", "2015-05-13 08:07:13.392440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:07:13.393687"], ["updated_at", "2015-05-13 08:07:13.393687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:07:13.394929"], ["updated_at", "2015-05-13 08:07:13.394929"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:07:13.410446"], ["updated_at", "2015-05-13 08:07:13.410446"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:07:13.411685"], ["updated_at", "2015-05-13 08:07:13.411685"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:07:13.412678"], ["updated_at", "2015-05-13 08:07:13.412678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:07:13.435822"], ["updated_at", "2015-05-13 08:07:13.435822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 211], ["created_at", "2015-05-13 08:07:13.437806"], ["updated_at", "2015-05-13 08:07:13.437806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 211], ["created_at", "2015-05-13 08:07:13.439631"], ["updated_at", "2015-05-13 08:07:13.439631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 211], ["created_at", "2015-05-13 08:07:13.441435"], ["updated_at", "2015-05-13 08:07:13.441435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:07:13.449236"], ["updated_at", "2015-05-13 08:07:13.449236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:07:13.450633"], ["updated_at", "2015-05-13 08:07:13.450633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:07:13.451968"], ["updated_at", "2015-05-13 08:07:13.451968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:07:13.453267"], ["updated_at", "2015-05-13 08:07:13.453267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:07:13.454491"], ["updated_at", "2015-05-13 08:07:13.454491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:07:13.455761"], ["updated_at", "2015-05-13 08:07:13.455761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:07:13.462802"], ["updated_at", "2015-05-13 08:07:13.462802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:07:13.465851"], ["updated_at", "2015-05-13 08:07:13.465851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:07:13.467292"], ["updated_at", "2015-05-13 08:07:13.467292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:07:13.468632"], ["updated_at", "2015-05-13 08:07:13.468632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:07:13.478662"], ["updated_at", "2015-05-13 08:07:13.478662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:07:13.482198"], ["updated_at", "2015-05-13 08:07:13.482198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:07:13.484874"], ["updated_at", "2015-05-13 08:07:13.484874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (SELECT "alpha.id" FROM alpha)) SQLite3::SQLException: no such table: alpha: SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (SELECT "alpha.id" FROM alpha))  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:07:13.489857"], ["updated_at", "2015-05-13 08:07:13.489857"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:07:13.490951"], ["updated_at", "2015-05-13 08:07:13.490951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:07:13.494130"], ["updated_at", "2015-05-13 08:07:13.494130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 211], ["created_at", "2015-05-13 08:07:13.496030"], ["updated_at", "2015-05-13 08:07:13.496030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:07:13.498620"], ["updated_at", "2015-05-13 08:07:13.498620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:07:13.501398"], ["updated_at", "2015-05-13 08:07:13.501398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:07:13.502788"], ["updated_at", "2015-05-13 08:07:13.502788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:07:13.504124"], ["updated_at", "2015-05-13 08:07:13.504124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:07:13.507837"], ["updated_at", "2015-05-13 08:07:13.507837"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 211], ["created_at", "2015-05-13 08:07:13.509687"], ["updated_at", "2015-05-13 08:07:13.509687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 211], ["created_at", "2015-05-13 08:07:13.511593"], ["updated_at", "2015-05-13 08:07:13.511593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 211], ["created_at", "2015-05-13 08:07:13.513533"], ["updated_at", "2015-05-13 08:07:13.513533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 211], ["updated_at", "2015-05-13 08:07:13.514854"], ["id", 211]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 211]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 211]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 211]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 211]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 211]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 211]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 211]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 211]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (5.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:07:13.550038"], ["updated_at", "2015-05-13 08:07:13.550038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:07:13.551525"], ["updated_at", "2015-05-13 08:07:13.551525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:07:13.552869"], ["updated_at", "2015-05-13 08:07:13.552869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:07:13.557178"], ["updated_at", "2015-05-13 08:07:13.557178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:07:13.559373"], ["updated_at", "2015-05-13 08:07:13.559373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:07:13.563530"], ["updated_at", "2015-05-13 08:07:13.563530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:07:13.564929"], ["updated_at", "2015-05-13 08:07:13.564929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:07:13.566275"], ["updated_at", "2015-05-13 08:07:13.566275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 210]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 210]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 210]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 210]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 210]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 210]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 210]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 210]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:09.702767"], ["updated_at", "2015-05-13 08:08:09.702767"]]  (23.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 211], ["created_at", "2015-05-13 08:08:09.759809"], ["updated_at", "2015-05-13 08:08:09.759809"]]  (32.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 211], ["created_at", "2015-05-13 08:08:09.817539"], ["updated_at", "2015-05-13 08:08:09.817539"]]  (28.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 211], ["created_at", "2015-05-13 08:08:09.864495"], ["updated_at", "2015-05-13 08:08:09.864495"]]  (23.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 211], ["updated_at", "2015-05-13 08:08:09.890633"], ["id", 211]]  (24.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '840f8a57a187d684b8a4449596a065ab', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3970dcd2686eaeb505f93a91ebe1f8cb', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8a9d5bc808cb987231164db8c89f3f55', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3cd5ae17737729d35bd64710eb69c7a7', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '39c3c5468df5b082c42d77c239bf4847', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ca6c2d0625b24cd48864fd30c1322ea1', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5bd74ddf74394f8b2f9f4bf6b1220ad2', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '15c7f5c531a1e3f05d25c0388a84a8d9', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c22f81ada210567ba663040f6738d00b', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b9455f01976d9f9d92fd04f0915c977d', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7ef1bcfe9fc768ee1437dae74e27d8c5', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '95026c71d771c20d787258028389fa44', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e5a6d7cab7f219fa8d0f65e2b58cfe47', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '38c4ec1089a41999a262b9887844543d', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '55d1297d34059d32e7a1816c0b8bb0e5', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:08:09', '2015-05-13 08:08:09', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:08:09', '2015-05-13 08:08:09', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:08:09', '2015-05-13 08:08:09', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8e68ea823e2f8aa091884613ae06be64', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c16b0f79f1e857eccb3aae4fecc40b0c', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '05063fa8018ca06fbea6f0cb09fade99', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '77d8f7330938e9c7ea9b93f90aab3436', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0e459e74a33ea848626f721389eb6acc', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5e3c027999daf7c2c518d6561bbe74ed', '2015-05-13 08:08:09', '2015-05-13 08:08:09', 410780858)  (25.7ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:10.027286"], ["updated_at", "2015-05-13 08:08:10.027286"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 212], ["created_at", "2015-05-13 08:08:10.032121"], ["updated_at", "2015-05-13 08:08:10.032121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:08:10.038798"], ["updated_at", "2015-05-13 08:08:10.038798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:08:10.042006"], ["updated_at", "2015-05-13 08:08:10.042006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:08:10.043334"], ["updated_at", "2015-05-13 08:08:10.043334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:08:10.044667"], ["updated_at", "2015-05-13 08:08:10.044667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:08:10.062650"], ["updated_at", "2015-05-13 08:08:10.062650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:08:10.064822"], ["updated_at", "2015-05-13 08:08:10.064822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:10.066762"], ["updated_at", "2015-05-13 08:08:10.066762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:08:10.074659"], ["updated_at", "2015-05-13 08:08:10.074659"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:08:10.075821"], ["updated_at", "2015-05-13 08:08:10.075821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:10.079537"], ["updated_at", "2015-05-13 08:08:10.079537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:08:10.087585"], ["updated_at", "2015-05-13 08:08:10.087585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:08:10.089976"], ["updated_at", "2015-05-13 08:08:10.089976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:08:10.093588"], ["updated_at", "2015-05-13 08:08:10.093588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:08:10.096318"], ["updated_at", "2015-05-13 08:08:10.096318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (SELECT "alpha".id FROM "alpha")) SQLite3::SQLException: no such table: alpha: SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (SELECT "alpha".id FROM "alpha"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:10.098994"], ["updated_at", "2015-05-13 08:08:10.098994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:10.102317"], ["updated_at", "2015-05-13 08:08:10.102317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 212], ["created_at", "2015-05-13 08:08:10.109931"], ["updated_at", "2015-05-13 08:08:10.109931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 212], ["created_at", "2015-05-13 08:08:10.112008"], ["updated_at", "2015-05-13 08:08:10.112008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 212], ["created_at", "2015-05-13 08:08:10.113820"], ["updated_at", "2015-05-13 08:08:10.113820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:08:10.121371"], ["updated_at", "2015-05-13 08:08:10.121371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:08:10.122778"], ["updated_at", "2015-05-13 08:08:10.122778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:08:10.124133"], ["updated_at", "2015-05-13 08:08:10.124133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:08:10.125409"], ["updated_at", "2015-05-13 08:08:10.125409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:08:10.126584"], ["updated_at", "2015-05-13 08:08:10.126584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:08:10.127840"], ["updated_at", "2015-05-13 08:08:10.127840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:08:10.130335"], ["updated_at", "2015-05-13 08:08:10.130335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:08:10.131661"], ["updated_at", "2015-05-13 08:08:10.131661"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:08:10.132938"], ["updated_at", "2015-05-13 08:08:10.132938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:08:10.141538"], ["updated_at", "2015-05-13 08:08:10.141538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:08:10.144302"], ["updated_at", "2015-05-13 08:08:10.144302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:08:10.145698"], ["updated_at", "2015-05-13 08:08:10.145698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:08:10.146994"], ["updated_at", "2015-05-13 08:08:10.146994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:08:10.151003"], ["updated_at", "2015-05-13 08:08:10.151003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:08:10.152433"], ["updated_at", "2015-05-13 08:08:10.152433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:08:10.153666"], ["updated_at", "2015-05-13 08:08:10.153666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:08:10.157245"], ["updated_at", "2015-05-13 08:08:10.157245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:08:10.158705"], ["updated_at", "2015-05-13 08:08:10.158705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:08:10.160125"], ["updated_at", "2015-05-13 08:08:10.160125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:08:10.162804"], ["updated_at", "2015-05-13 08:08:10.162804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:08:10.164199"], ["updated_at", "2015-05-13 08:08:10.164199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:08:10.165485"], ["updated_at", "2015-05-13 08:08:10.165485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:08:10.173193"], ["updated_at", "2015-05-13 08:08:10.173193"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:08:10.174225"], ["updated_at", "2015-05-13 08:08:10.174225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:08:10.189440"], ["updated_at", "2015-05-13 08:08:10.189440"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:08:10.190637"], ["updated_at", "2015-05-13 08:08:10.190637"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:08:10.191614"], ["updated_at", "2015-05-13 08:08:10.191614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:10.216771"], ["updated_at", "2015-05-13 08:08:10.216771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 212], ["created_at", "2015-05-13 08:08:10.218777"], ["updated_at", "2015-05-13 08:08:10.218777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 212], ["created_at", "2015-05-13 08:08:10.220689"], ["updated_at", "2015-05-13 08:08:10.220689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 212], ["created_at", "2015-05-13 08:08:10.222472"], ["updated_at", "2015-05-13 08:08:10.222472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 212], ["updated_at", "2015-05-13 08:08:10.223800"], ["id", 212]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 212]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 212]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 212]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 212]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 212]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 212]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 212]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 212]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:08:10.249156"], ["updated_at", "2015-05-13 08:08:10.249156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:08:10.250639"], ["updated_at", "2015-05-13 08:08:10.250639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:08:10.251991"], ["updated_at", "2015-05-13 08:08:10.251991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:08:10.253243"], ["updated_at", "2015-05-13 08:08:10.253243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:08:10.254464"], ["updated_at", "2015-05-13 08:08:10.254464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:08:10.255696"], ["updated_at", "2015-05-13 08:08:10.255696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 211]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 211]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 211]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 211]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 211]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 211]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 211]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 211]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:43.345049"], ["updated_at", "2015-05-13 08:08:43.345049"]]  (14.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 212], ["created_at", "2015-05-13 08:08:43.388465"], ["updated_at", "2015-05-13 08:08:43.388465"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 212], ["created_at", "2015-05-13 08:08:43.409350"], ["updated_at", "2015-05-13 08:08:43.409350"]]  (12.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 212], ["created_at", "2015-05-13 08:08:43.432553"], ["updated_at", "2015-05-13 08:08:43.432553"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 212], ["updated_at", "2015-05-13 08:08:43.446500"], ["id", 212]]  (12.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5ddf93e3d1f6f3930d2cf704b85123aa', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ebfea356e222c34abd9dc242da147b3c', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9d9055a19ec6607f25add0b47ebb7fc6', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6fb75bf54d25e5482c0e4f4c21b4b9ea', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd7e9c18ce8680dba86a4f48f918cf7b1', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2bcdf16f63871178e27ec58662be9010', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b06f039bc18afb938ce3a8b7d6c0fbfc', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4cf40816570617da9ba9b052e03aec9b', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f557c5f362ae1867b6db10c6e77a2b09', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '06fae2bde6a381ad9f348597d9eb404b', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '11a1105fd93cdbfbc1e9cab86244cc0f', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f4daa83acbbf6eeceff1a0d8b56a8aa5', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0b956908245b0e8186e6a1aca2bda5ea', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8fd68e7f3c22377eea273855f25b5e99', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fc5dd1c3f5b48c6a434d498888859e8e', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:08:43', '2015-05-13 08:08:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:08:43', '2015-05-13 08:08:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:08:43', '2015-05-13 08:08:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9313bf7891d6c2a43504ee3a134c20af', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'befe8f58ee1a8b236e3e00d6f6551866', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '916cee99297b143da766676707a3424a', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '82a79ac9b1443002def947b3027a37c3', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ae9bd0c2d7fd6dc164064a4f02d3070e', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e8df1fd430341726aa86303f964f4a58', '2015-05-13 08:08:43', '2015-05-13 08:08:43', 410780858)  (23.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 212]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 212]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 212]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 212]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 212]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 212]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 212]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 212]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:08:43.786169"], ["updated_at", "2015-05-13 08:08:43.786169"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:08:43.787353"], ["updated_at", "2015-05-13 08:08:43.787353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:08:43.790642"], ["updated_at", "2015-05-13 08:08:43.790642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:08:43.792166"], ["updated_at", "2015-05-13 08:08:43.792166"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:08:43.793491"], ["updated_at", "2015-05-13 08:08:43.793491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:08:43.798419"], ["updated_at", "2015-05-13 08:08:43.798419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:08:43.799907"], ["updated_at", "2015-05-13 08:08:43.799907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:08:43.801148"], ["updated_at", "2015-05-13 08:08:43.801148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:08:43.807736"], ["updated_at", "2015-05-13 08:08:43.807736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:08:43.810576"], ["updated_at", "2015-05-13 08:08:43.810576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:08:43.812654"], ["updated_at", "2015-05-13 08:08:43.812654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:43.814698"], ["updated_at", "2015-05-13 08:08:43.814698"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:08:43.817587"], ["updated_at", "2015-05-13 08:08:43.817587"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:08:43.818507"], ["updated_at", "2015-05-13 08:08:43.818507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:43.821249"], ["updated_at", "2015-05-13 08:08:43.821249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:43.826780"], ["updated_at", "2015-05-13 08:08:43.826780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 213], ["created_at", "2015-05-13 08:08:43.828615"], ["updated_at", "2015-05-13 08:08:43.828615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:08:43.831019"], ["updated_at", "2015-05-13 08:08:43.831019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:08:43.833616"], ["updated_at", "2015-05-13 08:08:43.833616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:08:43.834928"], ["updated_at", "2015-05-13 08:08:43.834928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:08:43.836217"], ["updated_at", "2015-05-13 08:08:43.836217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:08:43.841529"], ["updated_at", "2015-05-13 08:08:43.841529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:08:43.842952"], ["updated_at", "2015-05-13 08:08:43.842952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:08:43.844335"], ["updated_at", "2015-05-13 08:08:43.844335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:08:43.847220"], ["updated_at", "2015-05-13 08:08:43.847220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:08:43.848590"], ["updated_at", "2015-05-13 08:08:43.848590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:08:43.849828"], ["updated_at", "2015-05-13 08:08:43.849828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:08:43.852241"], ["updated_at", "2015-05-13 08:08:43.852241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:08:43.853539"], ["updated_at", "2015-05-13 08:08:43.853539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:08:43.854785"], ["updated_at", "2015-05-13 08:08:43.854785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:08:43.855997"], ["updated_at", "2015-05-13 08:08:43.855997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:08:43.857195"], ["updated_at", "2015-05-13 08:08:43.857195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:08:43.858362"], ["updated_at", "2015-05-13 08:08:43.858362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:43.867813"], ["updated_at", "2015-05-13 08:08:43.867813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 213], ["created_at", "2015-05-13 08:08:43.869760"], ["updated_at", "2015-05-13 08:08:43.869760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 213], ["created_at", "2015-05-13 08:08:43.871649"], ["updated_at", "2015-05-13 08:08:43.871649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 213], ["created_at", "2015-05-13 08:08:43.873474"], ["updated_at", "2015-05-13 08:08:43.873474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 213], ["updated_at", "2015-05-13 08:08:43.874745"], ["id", 213]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 213]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 213]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 213]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 213]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 213]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 213]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 213]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 213]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:08:43.901200"], ["updated_at", "2015-05-13 08:08:43.901200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:08:43.902709"], ["updated_at", "2015-05-13 08:08:43.902709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:08:43.903989"], ["updated_at", "2015-05-13 08:08:43.903989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:08:43.905180"], ["updated_at", "2015-05-13 08:08:43.905180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:08:43.906353"], ["updated_at", "2015-05-13 08:08:43.906353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:08:43.907530"], ["updated_at", "2015-05-13 08:08:43.907530"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:43.910957"], ["updated_at", "2015-05-13 08:08:43.910957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:08:43.915116"], ["updated_at", "2015-05-13 08:08:43.915116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:08:43.921383"], ["updated_at", "2015-05-13 08:08:43.921383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:08:43.922760"], ["updated_at", "2015-05-13 08:08:43.922760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:08:43.924034"], ["updated_at", "2015-05-13 08:08:43.924034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:08:43.927147"], ["updated_at", "2015-05-13 08:08:43.927147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:08:43.929606"], ["updated_at", "2015-05-13 08:08:43.929606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:08:43.932209"], ["updated_at", "2015-05-13 08:08:43.932209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.1ms) SELECT "beta".* FROM "beta" INNER JOIN "alphas" ON "alphas"."id" = "beta"."alpha_id" WHERE (alpha_id NOT IN (SELECT "alpha".id FROM "alpha")) SQLite3::SQLException: no such table: alpha: SELECT "beta".* FROM "beta" INNER JOIN "alphas" ON "alphas"."id" = "beta"."alpha_id" WHERE (alpha_id NOT IN (SELECT "alpha".id FROM "alpha"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:08:43.943235"], ["updated_at", "2015-05-13 08:08:43.943235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 213], ["created_at", "2015-05-13 08:08:43.945354"], ["updated_at", "2015-05-13 08:08:43.945354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 213], ["created_at", "2015-05-13 08:08:43.947627"], ["updated_at", "2015-05-13 08:08:43.947627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 213], ["created_at", "2015-05-13 08:08:43.949666"], ["updated_at", "2015-05-13 08:08:43.949666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:08:43.968341"], ["updated_at", "2015-05-13 08:08:43.968341"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:08:43.969476"], ["updated_at", "2015-05-13 08:08:43.969476"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:08:43.970432"], ["updated_at", "2015-05-13 08:08:43.970432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:09:11.327909"], ["updated_at", "2015-05-13 08:09:11.327909"]]  (13.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 213], ["created_at", "2015-05-13 08:09:11.378800"], ["updated_at", "2015-05-13 08:09:11.378800"]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 213], ["created_at", "2015-05-13 08:09:11.414667"], ["updated_at", "2015-05-13 08:09:11.414667"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 213], ["created_at", "2015-05-13 08:09:11.441345"], ["updated_at", "2015-05-13 08:09:11.441345"]]  (25.3ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 213], ["updated_at", "2015-05-13 08:09:11.469446"], ["id", 213]]  (29.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7f31933413a73efb2309ac07bef6ecf9', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1c7dc624f7e1466c6342c05e5651f008', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1766084d169d75c63bc185208427afb8', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '06dbb43115ec9b48ab0b8227bb1c0570', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '76e316ca5240fadc5ae1e14bcb53eba4', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '74a4e27af5e55ae7b7e0e4811059c432', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '07449a3aa0e0e7d62acb6d858ad3bfdf', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f330cf9e50e63e4be79d758ae9882aca', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '622d1ef96d625f068c4cd2daa2c433a2', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1fe8f84a8e3d6b6ad29551940ea85a46', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4acbe0dc2f2c37810c42081293d0f12c', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '60db3bdb3df13d9b213eb945e66d3852', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c2b396b85092fa9aff4daf083535dad3', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6ae8866d6f8ad0ac968cd2a4c537d301', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dd8b02f5cff47560171be63f0cac2750', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 762608046) Fixture Delete (0.0ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:09:11', '2015-05-13 08:09:11', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:09:11', '2015-05-13 08:09:11', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:09:11', '2015-05-13 08:09:11', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '942b3ecfdcd8dcefc6a4bf58d4222b7b', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '66b0eaceb9ecf75d606ae5e89ae849a1', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0a30ad1c4919523accd0143cac01c12d', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f127209856628123bbb9d2f6430a52cf', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '49466d469904233d4d9f81e7ce799f60', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '28d7b4e82a647cae59c877769980ea58', '2015-05-13 08:09:11', '2015-05-13 08:09:11', 410780858)  (26.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 213]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 213]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 213]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 213]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 213]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 213]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 213]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 213]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:09:11.758729"], ["updated_at", "2015-05-13 08:09:11.758729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:09:11.760362"], ["updated_at", "2015-05-13 08:09:11.760362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:09:11.761666"], ["updated_at", "2015-05-13 08:09:11.761666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:09:11.762889"], ["updated_at", "2015-05-13 08:09:11.762889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:09:11.764135"], ["updated_at", "2015-05-13 08:09:11.764135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:09:11.765348"], ["updated_at", "2015-05-13 08:09:11.765348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:09:11.769148"], ["updated_at", "2015-05-13 08:09:11.769148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:09:11.777889"], ["updated_at", "2015-05-13 08:09:11.777889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:09:11.784858"], ["updated_at", "2015-05-13 08:09:11.784858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 214], ["created_at", "2015-05-13 08:09:11.786783"], ["updated_at", "2015-05-13 08:09:11.786783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 214], ["created_at", "2015-05-13 08:09:11.788662"], ["updated_at", "2015-05-13 08:09:11.788662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 214], ["created_at", "2015-05-13 08:09:11.790424"], ["updated_at", "2015-05-13 08:09:11.790424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:09:11.797353"], ["updated_at", "2015-05-13 08:09:11.797353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:09:11.799505"], ["updated_at", "2015-05-13 08:09:11.799505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:09:11.801617"], ["updated_at", "2015-05-13 08:09:11.801617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:09:11.804706"], ["updated_at", "2015-05-13 08:09:11.804706"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:09:11.805735"], ["updated_at", "2015-05-13 08:09:11.805735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:09:11.808859"], ["updated_at", "2015-05-13 08:09:11.808859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:09:11.816406"], ["updated_at", "2015-05-13 08:09:11.816406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:09:11.817755"], ["updated_at", "2015-05-13 08:09:11.817755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:09:11.819011"], ["updated_at", "2015-05-13 08:09:11.819011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:09:11.826557"], ["updated_at", "2015-05-13 08:09:11.826557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:09:11.827931"], ["updated_at", "2015-05-13 08:09:11.827931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:09:11.829191"], ["updated_at", "2015-05-13 08:09:11.829191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:09:11.833598"], ["updated_at", "2015-05-13 08:09:11.833598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:09:11.834926"], ["updated_at", "2015-05-13 08:09:11.834926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:09:11.836211"], ["updated_at", "2015-05-13 08:09:11.836211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:09:11.842532"], ["updated_at", "2015-05-13 08:09:11.842532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:09:11.845023"], ["updated_at", "2015-05-13 08:09:11.845023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:09:11.847533"], ["updated_at", "2015-05-13 08:09:11.847533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT "alphas"."id" FROM "alphas" Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE (alpha_id NOT IN (5,137,1,2,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:09:11.853902"], ["updated_at", "2015-05-13 08:09:11.853902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 214], ["created_at", "2015-05-13 08:09:11.855744"], ["updated_at", "2015-05-13 08:09:11.855744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 214], ["created_at", "2015-05-13 08:09:11.857575"], ["updated_at", "2015-05-13 08:09:11.857575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 214], ["created_at", "2015-05-13 08:09:11.859337"], ["updated_at", "2015-05-13 08:09:11.859337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 214], ["updated_at", "2015-05-13 08:09:11.860668"], ["id", 214]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 214]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 214]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 214]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 214]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 214]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 214]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 214]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 214]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:09:11.884868"], ["updated_at", "2015-05-13 08:09:11.884868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 214], ["created_at", "2015-05-13 08:09:11.886705"], ["updated_at", "2015-05-13 08:09:11.886705"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:09:11.889214"], ["updated_at", "2015-05-13 08:09:11.889214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:09:11.891842"], ["updated_at", "2015-05-13 08:09:11.891842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:09:11.893122"], ["updated_at", "2015-05-13 08:09:11.893122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:09:11.894340"], ["updated_at", "2015-05-13 08:09:11.894340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:09:11.895539"], ["updated_at", "2015-05-13 08:09:11.895539"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:09:11.896709"], ["updated_at", "2015-05-13 08:09:11.896709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:09:11.897872"], ["updated_at", "2015-05-13 08:09:11.897872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:09:11.900473"], ["updated_at", "2015-05-13 08:09:11.900473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:09:11.901906"], ["updated_at", "2015-05-13 08:09:11.901906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:09:11.903198"], ["updated_at", "2015-05-13 08:09:11.903198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:09:11.908149"], ["updated_at", "2015-05-13 08:09:11.908149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:09:11.909559"], ["updated_at", "2015-05-13 08:09:11.909559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:09:11.910909"], ["updated_at", "2015-05-13 08:09:11.910909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:09:11.920978"], ["updated_at", "2015-05-13 08:09:11.920978"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:09:11.922095"], ["updated_at", "2015-05-13 08:09:11.922095"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:09:11.923053"], ["updated_at", "2015-05-13 08:09:11.923053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:09:11.940737"], ["updated_at", "2015-05-13 08:09:11.940737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:09:11.942117"], ["updated_at", "2015-05-13 08:09:11.942117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:09:11.943358"], ["updated_at", "2015-05-13 08:09:11.943358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:09:11.947526"], ["updated_at", "2015-05-13 08:09:11.947526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:09:11.951656"], ["updated_at", "2015-05-13 08:09:11.951656"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:09:11.952656"], ["updated_at", "2015-05-13 08:09:11.952656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:11:02.441861"], ["updated_at", "2015-05-13 08:11:02.441861"]]  (32.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 214], ["created_at", "2015-05-13 08:11:02.505595"], ["updated_at", "2015-05-13 08:11:02.505595"]]  (22.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 214], ["created_at", "2015-05-13 08:11:02.547225"], ["updated_at", "2015-05-13 08:11:02.547225"]]  (31.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 214], ["created_at", "2015-05-13 08:11:02.596761"], ["updated_at", "2015-05-13 08:11:02.596761"]]  (28.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 214], ["updated_at", "2015-05-13 08:11:02.628268"], ["id", 214]]  (24.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7a1e14daa3b0920a8ab6f089fdbbcbd5', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '12f491762f6f6e17d345f7ec151f6625', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7a03a768907795dac1d7984a0b48aa1a', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c9a81354ca4c69d12c1167d2cc587d3b', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ddcc7d363e91e09582f3a19e55b9d787', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0be9bc895e7dc074acb4b7c8f826d27', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a2a1d761528d801a614db0209aa935dd', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ef16defc975aaac6d4529e7f5fa2e508', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'eb1eae4e3c1b22c81097125db55a2e4e', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cbcea989dde64794643696b8aae754ec', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0ea06c94f35c7e07dcc279123b400bdd', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ea2ee815fc431e7960c7b900dafe7769', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6360be6a448effcc5170898ad9245d7b', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ef5e20fcc97f90f430b5d30a8cea9730', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7192c010a26d5e2a51ac959fbc83aa25', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:11:02', '2015-05-13 08:11:02', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:11:02', '2015-05-13 08:11:02', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:11:02', '2015-05-13 08:11:02', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd9e6c2973d48060317879937d82fbb34', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a1bb540f9ae0f1db25cf3faf4cb41e4d', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '231d4afc651e1bf86308d4ad1d37d6e1', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '68143a36db9f08a350bbcdff14a928f6', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '79cd7a3da4d361714d78268313e69e84', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cac1263ca863926bcfae66a70f018a53', '2015-05-13 08:11:02', '2015-05-13 08:11:02', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (5.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:11:02.939947"], ["updated_at", "2015-05-13 08:11:02.939947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:11:02.942181"], ["updated_at", "2015-05-13 08:11:02.942181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:11:02.944237"], ["updated_at", "2015-05-13 08:11:02.944237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:11:02.947245"], ["updated_at", "2015-05-13 08:11:02.947245"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:11:02.948305"], ["updated_at", "2015-05-13 08:11:02.948305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:11:02.951418"], ["updated_at", "2015-05-13 08:11:02.951418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:11:02.956507"], ["updated_at", "2015-05-13 08:11:02.956507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 215], ["created_at", "2015-05-13 08:11:02.958363"], ["updated_at", "2015-05-13 08:11:02.958363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:11:02.961031"], ["updated_at", "2015-05-13 08:11:02.961031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:11:02.965618"], ["updated_at", "2015-05-13 08:11:02.965618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:11:02.977523"], ["updated_at", "2015-05-13 08:11:02.977523"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:11:02.978684"], ["updated_at", "2015-05-13 08:11:02.978684"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:11:02.979653"], ["updated_at", "2015-05-13 08:11:02.979653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:11:02.992333"], ["updated_at", "2015-05-13 08:11:02.992333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:11:02.994402"], ["updated_at", "2015-05-13 08:11:02.994402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:11:02.995771"], ["updated_at", "2015-05-13 08:11:02.995771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:11:02.997030"], ["updated_at", "2015-05-13 08:11:02.997030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:11:03.000959"], ["updated_at", "2015-05-13 08:11:03.000959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 215], ["created_at", "2015-05-13 08:11:03.002847"], ["updated_at", "2015-05-13 08:11:03.002847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 215], ["created_at", "2015-05-13 08:11:03.004780"], ["updated_at", "2015-05-13 08:11:03.004780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 215], ["created_at", "2015-05-13 08:11:03.006584"], ["updated_at", "2015-05-13 08:11:03.006584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:11:03.019178"], ["updated_at", "2015-05-13 08:11:03.019178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:11:03.020788"], ["updated_at", "2015-05-13 08:11:03.020788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:11:03.022102"], ["updated_at", "2015-05-13 08:11:03.022102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:11:03.026062"], ["updated_at", "2015-05-13 08:11:03.026062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:11:03.027457"], ["updated_at", "2015-05-13 08:11:03.027457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:11:03.028801"], ["updated_at", "2015-05-13 08:11:03.028801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:11:03.031729"], ["updated_at", "2015-05-13 08:11:03.031729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:11:03.035234"], ["updated_at", "2015-05-13 08:11:03.035234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:11:03.037852"], ["updated_at", "2015-05-13 08:11:03.037852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:11:03.045196"], ["updated_at", "2015-05-13 08:11:03.045196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 215], ["created_at", "2015-05-13 08:11:03.047057"], ["updated_at", "2015-05-13 08:11:03.047057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 215], ["created_at", "2015-05-13 08:11:03.048930"], ["updated_at", "2015-05-13 08:11:03.048930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 215], ["created_at", "2015-05-13 08:11:03.050647"], ["updated_at", "2015-05-13 08:11:03.050647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 215], ["updated_at", "2015-05-13 08:11:03.051971"], ["id", 215]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 215]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 215]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 215]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 215]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 215]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 215]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 215]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 215]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:11:03.075360"], ["updated_at", "2015-05-13 08:11:03.075360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:11:03.076835"], ["updated_at", "2015-05-13 08:11:03.076835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:11:03.078095"], ["updated_at", "2015-05-13 08:11:03.078095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:11:03.080669"], ["updated_at", "2015-05-13 08:11:03.080669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:11:03.082781"], ["updated_at", "2015-05-13 08:11:03.082781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:11:03.084149"], ["updated_at", "2015-05-13 08:11:03.084149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:11:03.085399"], ["updated_at", "2015-05-13 08:11:03.085399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:11:03.086577"], ["updated_at", "2015-05-13 08:11:03.086577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:11:03.087793"], ["updated_at", "2015-05-13 08:11:03.087793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:11:03.088970"], ["updated_at", "2015-05-13 08:11:03.088970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:11:03.092291"], ["updated_at", "2015-05-13 08:11:03.092291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:11:03.093621"], ["updated_at", "2015-05-13 08:11:03.093621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:11:03.094879"], ["updated_at", "2015-05-13 08:11:03.094879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:11:03.096081"], ["updated_at", "2015-05-13 08:11:03.096081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:11:03.097266"], ["updated_at", "2015-05-13 08:11:03.097266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:11:03.098409"], ["updated_at", "2015-05-13 08:11:03.098409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:11:03.103422"], ["updated_at", "2015-05-13 08:11:03.103422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:11:03.104773"], ["updated_at", "2015-05-13 08:11:03.104773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:11:03.106030"], ["updated_at", "2015-05-13 08:11:03.106030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:11:03.111465"], ["updated_at", "2015-05-13 08:11:03.111465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:11:03.112827"], ["updated_at", "2015-05-13 08:11:03.112827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:11:03.114070"], ["updated_at", "2015-05-13 08:11:03.114070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:11:03.123502"], ["updated_at", "2015-05-13 08:11:03.123502"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:11:03.124602"], ["updated_at", "2015-05-13 08:11:03.124602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 214]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 214]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 214]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 214]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 214]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 214]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 214]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 214]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:17:51.404485"], ["updated_at", "2015-05-13 08:17:51.404485"]]  (24.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 215], ["created_at", "2015-05-13 08:17:51.456142"], ["updated_at", "2015-05-13 08:17:51.456142"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 215], ["created_at", "2015-05-13 08:17:51.493695"], ["updated_at", "2015-05-13 08:17:51.493695"]]  (22.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 215], ["created_at", "2015-05-13 08:17:51.533463"], ["updated_at", "2015-05-13 08:17:51.533463"]]  (21.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 215], ["updated_at", "2015-05-13 08:17:51.558912"], ["id", 215]]  (16.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '10f9b444e9db4be0f802d760a6443625', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3b0f8171148439c48d048130d31b8fea', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9ce2a4a909cb3bde2da9eb9abe28efbf', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b3e8d277a83a90314682791fc0472a2a', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ca3269d8941149d69d4044b38e582b2c', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '46c78009d8fe99ad4965d302f922256a', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b2115b8a79e119812d9790ecb8565806', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6bdfbdf94f07f100292e218effe8357e', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ca6afd5f7c5babe1cbb32bff204a0516', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4e1848479573464619ccd27d62900574', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fd9845beed03633d9e09778e3d0c78ec', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '099812f53408b6d4892a4ded198eafc9', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dff37f824315dfa1456acb8988e963cf', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '022e1f56aea71725776c8ee93cb43550', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2c8b5cc8c8c4301519d6a2e70d6568c5', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:17:51', '2015-05-13 08:17:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:17:51', '2015-05-13 08:17:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:17:51', '2015-05-13 08:17:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e6eed7997b7fff959c7c82ac6e1005da', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '40c147d46e7ac361b467fea08db16eb9', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b1454817741f83dd054638bfa4d88861', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bdce9fa5fcd6a68e3f0b463297b05201', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c2c94121201b6907a51cbbde85f10f94', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '30cef638be86373ccaa3609602d14812', '2015-05-13 08:17:51', '2015-05-13 08:17:51', 410780858)  (17.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.5ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 215]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 215]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 215]] Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 215]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 215]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 215]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 215]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 215]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:17:51.887619"], ["updated_at", "2015-05-13 08:17:51.887619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:17:51.889160"], ["updated_at", "2015-05-13 08:17:51.889160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:17:51.890445"], ["updated_at", "2015-05-13 08:17:51.890445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:17:51.895126"], ["updated_at", "2015-05-13 08:17:51.895126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 216], ["created_at", "2015-05-13 08:17:51.897208"], ["updated_at", "2015-05-13 08:17:51.897208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:17:51.905491"], ["updated_at", "2015-05-13 08:17:51.905491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:17:51.912970"], ["updated_at", "2015-05-13 08:17:51.912970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:17:51.914293"], ["updated_at", "2015-05-13 08:17:51.914293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:17:51.915984"], ["updated_at", "2015-05-13 08:17:51.915984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:17:51.927733"], ["updated_at", "2015-05-13 08:17:51.927733"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:17:51.928886"], ["updated_at", "2015-05-13 08:17:51.928886"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:17:51.929873"], ["updated_at", "2015-05-13 08:17:51.929873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:17:51.945434"], ["updated_at", "2015-05-13 08:17:51.945434"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:17:51.946532"], ["updated_at", "2015-05-13 08:17:51.946532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:17:51.949704"], ["updated_at", "2015-05-13 08:17:51.949704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:17:51.951047"], ["updated_at", "2015-05-13 08:17:51.951047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:17:51.952317"], ["updated_at", "2015-05-13 08:17:51.952317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:17:51.953484"], ["updated_at", "2015-05-13 08:17:51.953484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:17:51.954649"], ["updated_at", "2015-05-13 08:17:51.954649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:17:51.955915"], ["updated_at", "2015-05-13 08:17:51.955915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:17:51.959210"], ["updated_at", "2015-05-13 08:17:51.959210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:17:51.961701"], ["updated_at", "2015-05-13 08:17:51.961701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:17:51.964271"], ["updated_at", "2015-05-13 08:17:51.964271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:17:51.975537"], ["updated_at", "2015-05-13 08:17:51.975537"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:17:51.977261"], ["updated_at", "2015-05-13 08:17:51.977261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:17:51.978518"], ["updated_at", "2015-05-13 08:17:51.978518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:17:51.981584"], ["updated_at", "2015-05-13 08:17:51.981584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:17:51.982857"], ["updated_at", "2015-05-13 08:17:51.982857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:17:51.984125"], ["updated_at", "2015-05-13 08:17:51.984125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:17:51.987343"], ["updated_at", "2015-05-13 08:17:51.987343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:17:51.989898"], ["updated_at", "2015-05-13 08:17:51.989898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:17:51.991935"], ["updated_at", "2015-05-13 08:17:51.991935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:17:51.993240"], ["updated_at", "2015-05-13 08:17:51.993240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:17:51.994487"], ["updated_at", "2015-05-13 08:17:51.994487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:17:51.995711"], ["updated_at", "2015-05-13 08:17:51.995711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:17:51.996927"], ["updated_at", "2015-05-13 08:17:51.996927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:17:51.998097"], ["updated_at", "2015-05-13 08:17:51.998097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:17:52.000795"], ["updated_at", "2015-05-13 08:17:52.000795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:17:52.002339"], ["updated_at", "2015-05-13 08:17:52.002339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:17:52.003705"], ["updated_at", "2015-05-13 08:17:52.003705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:17:52.007844"], ["updated_at", "2015-05-13 08:17:52.007844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 216], ["created_at", "2015-05-13 08:17:52.009727"], ["updated_at", "2015-05-13 08:17:52.009727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 216], ["created_at", "2015-05-13 08:17:52.011627"], ["updated_at", "2015-05-13 08:17:52.011627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 216], ["created_at", "2015-05-13 08:17:52.013407"], ["updated_at", "2015-05-13 08:17:52.013407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:17:52.020417"], ["updated_at", "2015-05-13 08:17:52.020417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:17:52.022523"], ["updated_at", "2015-05-13 08:17:52.022523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:17:52.024458"], ["updated_at", "2015-05-13 08:17:52.024458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:17:52.027299"], ["updated_at", "2015-05-13 08:17:52.027299"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:17:52.028239"], ["updated_at", "2015-05-13 08:17:52.028239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:17:52.030962"], ["updated_at", "2015-05-13 08:17:52.030962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:17:52.033291"], ["updated_at", "2015-05-13 08:17:52.033291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:17:52.043014"], ["updated_at", "2015-05-13 08:17:52.043014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:17:52.044470"], ["updated_at", "2015-05-13 08:17:52.044470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:17:52.045785"], ["updated_at", "2015-05-13 08:17:52.045785"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:17:52.050040"], ["updated_at", "2015-05-13 08:17:52.050040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 216], ["created_at", "2015-05-13 08:17:52.051954"], ["updated_at", "2015-05-13 08:17:52.051954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 216], ["created_at", "2015-05-13 08:17:52.053742"], ["updated_at", "2015-05-13 08:17:52.053742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 216], ["created_at", "2015-05-13 08:17:52.055536"], ["updated_at", "2015-05-13 08:17:52.055536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 216], ["updated_at", "2015-05-13 08:17:52.056845"], ["id", 216]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 216]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 216]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 216]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 216]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 216]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 216]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 216]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 216]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:18:46.231206"], ["updated_at", "2015-05-13 08:18:46.231206"]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 216], ["created_at", "2015-05-13 08:18:46.275203"], ["updated_at", "2015-05-13 08:18:46.275203"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 216], ["created_at", "2015-05-13 08:18:46.310567"], ["updated_at", "2015-05-13 08:18:46.310567"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 216], ["created_at", "2015-05-13 08:18:46.338030"], ["updated_at", "2015-05-13 08:18:46.338030"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 216], ["updated_at", "2015-05-13 08:18:46.352454"], ["id", 216]]  (24.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8be3b583a2eee52ca02d5a4dfed71309', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ecf1dbbc77dbb8f0256883dbded1d393', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '14403600ebb4431cdfab21390381cbee', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '794f1db88bc0c9169133fa3cc0a3b78c', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d394312f32a14d00480a97819fbab81', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7472ba91eaf7dd70e8e24b15e7e02e89', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f0030710b540315f87cb3b5364fb9c6f', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b019d9c0b99346063854ff2938b7bfd2', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '96ff32eb41fbb6be14f0d76b4c359549', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd3d06d34c3dd94a53790f57fefc3c5b3', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd3ed64860206b6e0c200d2c9e83175ff', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'be9cd45f0528dff5aecab9bf15b38b88', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '546d5681a534f6d004aa33fe2a70d557', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '96b8bfd617e7a954522372533fb8b830', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b05dea87cf82b97f99ba82c55675cef', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:18:46', '2015-05-13 08:18:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:18:46', '2015-05-13 08:18:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:18:46', '2015-05-13 08:18:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '01521aa88534f67e1b6adc6da7a1f0a0', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'dc240c80618cf28708d7d35cc822bae8', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f1f15704dc61a66d807c1a720ee64f67', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ea50d1ac5c9e50f891593a1aae94c419', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5bc9a17a4cc8816d672aa5742dcbe7b9', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c6c66efdc6b37b3d64bb21213e2e3013', '2015-05-13 08:18:46', '2015-05-13 08:18:46', 410780858)  (33.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 216]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 216]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 216]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 216]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 216]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 216]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 216]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 216]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:18:46.661445"], ["updated_at", "2015-05-13 08:18:46.661445"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:18:46.662702"], ["updated_at", "2015-05-13 08:18:46.662702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:18:46.667023"], ["updated_at", "2015-05-13 08:18:46.667023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:18:46.670060"], ["updated_at", "2015-05-13 08:18:46.670060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:18:46.673870"], ["updated_at", "2015-05-13 08:18:46.673870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:18:46.676688"], ["updated_at", "2015-05-13 08:18:46.676688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:18:46.684734"], ["updated_at", "2015-05-13 08:18:46.684734"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:18:46.694018"], ["updated_at", "2015-05-13 08:18:46.694018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:18:46.700756"], ["updated_at", "2015-05-13 08:18:46.700756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:18:46.702154"], ["updated_at", "2015-05-13 08:18:46.702154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:18:46.703451"], ["updated_at", "2015-05-13 08:18:46.703451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:18:46.706846"], ["updated_at", "2015-05-13 08:18:46.706846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:18:46.708237"], ["updated_at", "2015-05-13 08:18:46.708237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:18:46.709818"], ["updated_at", "2015-05-13 08:18:46.709818"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:18:46.716578"], ["updated_at", "2015-05-13 08:18:46.716578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:18:46.718112"], ["updated_at", "2015-05-13 08:18:46.718112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:18:46.719514"], ["updated_at", "2015-05-13 08:18:46.719514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:18:46.720859"], ["updated_at", "2015-05-13 08:18:46.720859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:18:46.722168"], ["updated_at", "2015-05-13 08:18:46.722168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:18:46.723401"], ["updated_at", "2015-05-13 08:18:46.723401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:18:46.726921"], ["updated_at", "2015-05-13 08:18:46.726921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 217], ["created_at", "2015-05-13 08:18:46.728955"], ["updated_at", "2015-05-13 08:18:46.728955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 217], ["created_at", "2015-05-13 08:18:46.730954"], ["updated_at", "2015-05-13 08:18:46.730954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 217], ["created_at", "2015-05-13 08:18:46.732902"], ["updated_at", "2015-05-13 08:18:46.732902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:18:46.740346"], ["updated_at", "2015-05-13 08:18:46.740346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 217], ["created_at", "2015-05-13 08:18:46.743198"], ["updated_at", "2015-05-13 08:18:46.743198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 217], ["created_at", "2015-05-13 08:18:46.746265"], ["updated_at", "2015-05-13 08:18:46.746265"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 217], ["created_at", "2015-05-13 08:18:46.748551"], ["updated_at", "2015-05-13 08:18:46.748551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 217], ["updated_at", "2015-05-13 08:18:46.750043"], ["id", 217]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 217]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 217]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 217]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 217]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 217]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 217]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 217]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 217]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:18:46.784417"], ["updated_at", "2015-05-13 08:18:46.784417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:18:46.785895"], ["updated_at", "2015-05-13 08:18:46.785895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:18:46.787186"], ["updated_at", "2015-05-13 08:18:46.787186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:18:46.801305"], ["updated_at", "2015-05-13 08:18:46.801305"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:18:46.802513"], ["updated_at", "2015-05-13 08:18:46.802513"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:18:46.803528"], ["updated_at", "2015-05-13 08:18:46.803528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:18:46.816529"], ["updated_at", "2015-05-13 08:18:46.816529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:18:46.818010"], ["updated_at", "2015-05-13 08:18:46.818010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:18:46.819304"], ["updated_at", "2015-05-13 08:18:46.819304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:18:46.820576"], ["updated_at", "2015-05-13 08:18:46.820576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:18:46.821807"], ["updated_at", "2015-05-13 08:18:46.821807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:18:46.823022"], ["updated_at", "2015-05-13 08:18:46.823022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:18:46.825972"], ["updated_at", "2015-05-13 08:18:46.825972"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:18:46.827907"], ["updated_at", "2015-05-13 08:18:46.827907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:18:46.829393"], ["updated_at", "2015-05-13 08:18:46.829393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:18:46.834694"], ["updated_at", "2015-05-13 08:18:46.834694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 217], ["created_at", "2015-05-13 08:18:46.836710"], ["updated_at", "2015-05-13 08:18:46.836710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:18:46.839354"], ["updated_at", "2015-05-13 08:18:46.839354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:18:46.842640"], ["updated_at", "2015-05-13 08:18:46.842640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:18:46.844258"], ["updated_at", "2015-05-13 08:18:46.844258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:18:46.845660"], ["updated_at", "2015-05-13 08:18:46.845660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:18:46.850303"], ["updated_at", "2015-05-13 08:18:46.850303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:18:46.852548"], ["updated_at", "2015-05-13 08:18:46.852548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:18:46.854426"], ["updated_at", "2015-05-13 08:18:46.854426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:18:46.858005"], ["updated_at", "2015-05-13 08:18:46.858005"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:18:46.859258"], ["updated_at", "2015-05-13 08:18:46.859258"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:18:46.862262"], ["updated_at", "2015-05-13 08:18:46.862262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:18:46.876495"], ["updated_at", "2015-05-13 08:18:46.876495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:18:46.877956"], ["updated_at", "2015-05-13 08:18:46.877956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:18:46.879272"], ["updated_at", "2015-05-13 08:18:46.879272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:19:49.175891"], ["updated_at", "2015-05-13 08:19:49.175891"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 217], ["created_at", "2015-05-13 08:19:49.215038"], ["updated_at", "2015-05-13 08:19:49.215038"]]  (11.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 217], ["created_at", "2015-05-13 08:19:49.237423"], ["updated_at", "2015-05-13 08:19:49.237423"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 217], ["created_at", "2015-05-13 08:19:49.257439"], ["updated_at", "2015-05-13 08:19:49.257439"]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 217], ["updated_at", "2015-05-13 08:19:49.276932"], ["id", 217]]  (17.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2e9e033bcd207187b8390ecdf6dd1004', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8a7634e175c9f708141691329fb963fb', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '406f42cc40517a2f4f89182b233b0609', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '48b964362caa6571a37c86d915e0757d', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b4f2b011fbd557b57a307b261908243e', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '312a8a824042982f05013d0c7f96de94', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0b3523f61aca86f2747fdfe19989f474', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a047b84a7280926480f9767416c2aab5', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '641a859cda7fab132bbc811be485ab0c', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'da1f49b711bd6d6ff594a25a337b8e5a', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e20f4d3f90f73500e536240be0f3e6f0', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dc2e174a4e5f33b0168d955e92cfac5f', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3f20b9b55b3bff479e27b9f1a657ecfa', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a390404fbfea2c9e0ec64a91f86ff2fd', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8861e0830c42976fc88fec8b94b318c6', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:19:49', '2015-05-13 08:19:49', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:19:49', '2015-05-13 08:19:49', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-13 08:19:49', '2015-05-13 08:19:49', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a2400484644b9204dec5bbaea70a8746', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f30d92b87c3818a7087f326194cfdd0a', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '057d56242299d96fe2e1b23e7de056ce', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '725fd63c4769da3060d64e0008366866', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fa9afcbf5b890b8e7a337c17f7caceef', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f4625d1016c5812a6bd8b215b4d695b0', '2015-05-13 08:19:49', '2015-05-13 08:19:49', 410780858)  (31.7ms) commit transaction  (0.2ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 217]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 217]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 217]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 217]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 217]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 217]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 217]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 217]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:19:49.513472"], ["updated_at", "2015-05-13 08:19:49.513472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:19:49.515116"], ["updated_at", "2015-05-13 08:19:49.515116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:19:49.516467"], ["updated_at", "2015-05-13 08:19:49.516467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:19:49.525244"], ["updated_at", "2015-05-13 08:19:49.525244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:19:49.528126"], ["updated_at", "2015-05-13 08:19:49.528126"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:19:49.530987"], ["updated_at", "2015-05-13 08:19:49.530987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-13 08:19:49.533749"], ["updated_at", "2015-05-13 08:19:49.533749"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:19:49.543453"], ["updated_at", "2015-05-13 08:19:49.543453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 218], ["created_at", "2015-05-13 08:19:49.545547"], ["updated_at", "2015-05-13 08:19:49.545547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 218], ["created_at", "2015-05-13 08:19:49.547405"], ["updated_at", "2015-05-13 08:19:49.547405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 218], ["created_at", "2015-05-13 08:19:49.549353"], ["updated_at", "2015-05-13 08:19:49.549353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 218], ["updated_at", "2015-05-13 08:19:49.550675"], ["id", 218]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 218]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 218]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 218]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 218]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 218]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 218]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 218]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 218]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]]  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:19:49.573118"], ["updated_at", "2015-05-13 08:19:49.573118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:19:49.574624"], ["updated_at", "2015-05-13 08:19:49.574624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:19:49.575983"], ["updated_at", "2015-05-13 08:19:49.575983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:19:49.582856"], ["updated_at", "2015-05-13 08:19:49.582856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:19:49.584305"], ["updated_at", "2015-05-13 08:19:49.584305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:19:49.585625"], ["updated_at", "2015-05-13 08:19:49.585625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-13 08:19:49.588585"], ["updated_at", "2015-05-13 08:19:49.588585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-13 08:19:49.590592"], ["updated_at", "2015-05-13 08:19:49.590592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-13 08:19:49.592542"], ["updated_at", "2015-05-13 08:19:49.592542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-13 08:19:49.615889"], ["updated_at", "2015-05-13 08:19:49.615889"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-13 08:19:49.617168"], ["updated_at", "2015-05-13 08:19:49.617168"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-13 08:19:49.618179"], ["updated_at", "2015-05-13 08:19:49.618179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:19:49.645824"], ["updated_at", "2015-05-13 08:19:49.645824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:19:49.647212"], ["updated_at", "2015-05-13 08:19:49.647212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:19:49.648516"], ["updated_at", "2015-05-13 08:19:49.648516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:19:49.649881"], ["updated_at", "2015-05-13 08:19:49.649881"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:19:49.651475"], ["updated_at", "2015-05-13 08:19:49.651475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:19:49.653024"], ["updated_at", "2015-05-13 08:19:49.653024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:19:49.656727"], ["updated_at", "2015-05-13 08:19:49.656727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:19:49.658622"], ["updated_at", "2015-05-13 08:19:49.658622"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:19:49.660294"], ["updated_at", "2015-05-13 08:19:49.660294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-13 08:19:49.664139"], ["updated_at", "2015-05-13 08:19:49.664139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-13 08:19:49.665578"], ["updated_at", "2015-05-13 08:19:49.665578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-13 08:19:49.666895"], ["updated_at", "2015-05-13 08:19:49.666895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:19:49.671276"], ["updated_at", "2015-05-13 08:19:49.671276"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:19:49.672367"], ["updated_at", "2015-05-13 08:19:49.672367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:19:49.675213"], ["updated_at", "2015-05-13 08:19:49.675213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:19:49.677326"], ["updated_at", "2015-05-13 08:19:49.677326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:19:49.679425"], ["updated_at", "2015-05-13 08:19:49.679425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:19:49.681467"], ["updated_at", "2015-05-13 08:19:49.681467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-13 08:19:49.684306"], ["updated_at", "2015-05-13 08:19:49.684306"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-13 08:19:49.685246"], ["updated_at", "2015-05-13 08:19:49.685246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:19:49.688055"], ["updated_at", "2015-05-13 08:19:49.688055"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:19:49.694401"], ["updated_at", "2015-05-13 08:19:49.694401"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 218], ["created_at", "2015-05-13 08:19:49.696648"], ["updated_at", "2015-05-13 08:19:49.696648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:19:49.699224"], ["updated_at", "2015-05-13 08:19:49.699224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-13 08:19:49.701845"], ["updated_at", "2015-05-13 08:19:49.701845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-13 08:19:49.703176"], ["updated_at", "2015-05-13 08:19:49.703176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-13 08:19:49.704490"], ["updated_at", "2015-05-13 08:19:49.704490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-13 08:19:49.705696"], ["updated_at", "2015-05-13 08:19:49.705696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-13 08:19:49.706875"], ["updated_at", "2015-05-13 08:19:49.706875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-13 08:19:49.708097"], ["updated_at", "2015-05-13 08:19:49.708097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-13 08:19:49.713821"], ["updated_at", "2015-05-13 08:19:49.713821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-13 08:19:49.717354"], ["updated_at", "2015-05-13 08:19:49.717354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 218], ["created_at", "2015-05-13 08:19:49.719957"], ["updated_at", "2015-05-13 08:19:49.719957"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 218], ["created_at", "2015-05-13 08:19:49.722750"], ["updated_at", "2015-05-13 08:19:49.722750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 218], ["created_at", "2015-05-13 08:19:49.724655"], ["updated_at", "2015-05-13 08:19:49.724655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.0ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0024_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0015_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0016_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dbb86ef7c7a6a1dd01225f2ffc943f08', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b0a2e82910e2daddf6cf59180ca2c735', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ebbee97e852505a1dc5430b1f4e7640b', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c074a0a59306d39c800346ed6ddeb6c4', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f3e68fed041b6d089524426898befb88', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '79b9dce77917fc1d9f2b3934d7befec6', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'aaaf2a9bb07afaf8df831185c3d3d622', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c8499b80fbce5c8aae8056888313570a', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e5ad2d67df133b9ad2bf98009f254358', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e67e0ce895969684aa33ad0d87ea1818', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2928a574e4ace2ca68c3ca77f2161abd', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '647866f89f3bacff804b9ad4e8836a5c', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b67dcb2ebcd3a13ec273c9404f92dbf', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fa362cda0fac4ed841e309062aa0cd98', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1bdc9fa4009e45aaed9999cbf0622abb', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:51:50', '2015-05-14 22:51:50', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:51:50', '2015-05-14 22:51:50', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:51:50', '2015-05-14 22:51:50', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.5ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'dd66feb3950b1d93249cd775a99ab4ef', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bf410fbb74f53e20a9f941406de7fcac', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f213351e35251cf7d96e6fde0bcce812', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8b900df3d6ed85791024db04254989bb', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '78f469f980ce169cf1e04464f7af1650', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c46696170eb64a01aa540a044611b76e', '2015-05-14 22:51:50', '2015-05-14 22:51:50', 410780858)  (55.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.4ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '09167a14fa5fb1d2fa4e2c76626ad341', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '03cfe2fd0375c681aad535745e6e6144', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3becbba3ba3bdf1f2c38f75da0a7b372', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '068f3adcfc875212d8f124888ae13b7d', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e42da818df5efe204f15bf9ab6b8d660', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fde1e0458f6f3b618da9d97226fd2fc7', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd49d024ada668d1176df1587d4c7bc14', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '22c2b8dc98b6b253a9229bbdddb57633', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'afcee71d9f186b8f27125a619dee373e', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 873565849, 336964236, 849808553) Fixture Insert (0.4ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f3d46f3238789bd99b837e0216ef8c76', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7dfe816c7e0067f64e4ad62fc946753d', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f50f744693a770393977b99e483c66ac', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2dd71986abda644fb69746e379fe81f9', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0280b8efeb399a6fa19dd5962e4015b6', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4c419bc1398b60a41c63a26e57d53c7f', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:52:07', '2015-05-14 22:52:07', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:52:07', '2015-05-14 22:52:07', 380377255) Fixture Insert (0.0ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:52:07', '2015-05-14 22:52:07', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '81d9703fd89288d618e527e9d3f65bc6', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3450ebd6c41096658f517c26cc144055', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8432e8ae276ac602a18169bcf4e544be', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '50be67a9873b085c29abe71865207bfb', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 819246218) Fixture Insert (0.3ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9aae7d6e05b9b2be84a7ad2e813349c1', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ef9f8384675008eeb0946ac8c88581da', '2015-05-14 22:52:07', '2015-05-14 22:52:07', 410780858)  (28.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.5ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0859a460f3a93dc8278dd9d83a7712ad', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4ff5936e2a51740e34834426a3ecaa32', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6a080adebc3bcece33b9eb22e947c8b4', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '083d5e7c14d098e0aaf1a388950b5395', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '03e684143e69283807328b0d51e5e851', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b4286a25e6c946ad0739a090e4fb49b8', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c8995e4679975321372bb2997e48cb23', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '28923bb608ceb2397b350c52fadb85e5', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c99c7a1306d570f75796ed5338e08e30', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 51822084, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'dab993f991e1097abf1ede9f21915b3d', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '28cf13d73ff7737d5a1e6c454c294fa8', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f3fd306e2e07c2f1fd1613e5655d1427', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a2ce2b1833c78fc4fda2dd3940ee19d9', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1ef51bde6197e03f6e4973202b68cdcc', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3cd8c68e4d00cacbc931a7a65d05e899', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:52:25', '2015-05-14 22:52:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:52:25', '2015-05-14 22:52:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:52:25', '2015-05-14 22:52:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '15d5769736552f105486ca8589a81089', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1b92ac91a9dd9e11d2b29d01a22dfb65', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7450ade78db7b13526d903d3967e2c21', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '191291559006cec5cfce85087ec15d9c', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0534db2e6c005d01a8aa0944efcf1500', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c168de9548394c4471079addac72ac22', '2015-05-14 22:52:25', '2015-05-14 22:52:25', 410780858)  (31.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.5ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '982b26c3f52f66f2f7e6f9e0bc8fd239', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '43afad46a3ac269272a5246de235df73', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '47eefbd6004865f2ca20a368cee51e5c', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '347726b121303f979d60635e95a7e3ab', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd8cdf70b889983d6bef024e5c64a62e4', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '846172e44dfd57bdb0a6366f377b0383', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '629a4f6c7d88f5bd5fe12f35c4c5a933', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5d1c34e91195af41e2cd7f9d7473d555', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e977d5fac09c9a32b534085740ea78d0', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8c0f0ab32a511c98cf87c3d3bec8af1d', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b3205e1a59a2bf282b869aacdbf01e87', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c5c186478ace6e996fe43e206a17ed38', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b221d9a01a974857f2131556b6701010', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7d4ae4818a868add5728f9d0c0f8d39e', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd28a614f60852db9c57ffc8e1b96c1d6', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:52:52', '2015-05-14 22:52:52', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:52:52', '2015-05-14 22:52:52', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:52:52', '2015-05-14 22:52:52', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5d49b7cd2f2cc24368dfeafc6a8f5dd6', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9f88462b5c26b53c440732fd62b824be', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '22e48a43f4dd62ce3cb0d9abbb257d13', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '299291d2d5cf9bd4cf37f62ac893a879', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'abb0347c7a291b798db0e9f037ce70ba', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7430990d77009801caa182224f882ad1', '2015-05-14 22:52:52', '2015-05-14 22:52:52', 410780858)  (22.5ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '110cb6295501822062629b14224ec2cd', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ef6d947ca449ba726bc17b4a14a42bc1', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a08151fc061bc31dd3de73a086ec47bf', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5620f7591c4b6e87c162b6e45ad01380', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f3cc6736e3a780ab60562a73e29ad6c0', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2f214cad37fda0c58e1b2fe3c1e70380', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'bb06ce28312e95efc5bcc776aeba9c99', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f08ca8d0c06565f7efb3e5f1f1c6e5f3', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fb6f3fd48a1e2d376065ffa91b2a2466', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 966629572) Fixture Delete (0.2ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5b2ccfde9918a0f18a160e442cb85ae0', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ab8f167752c56ce507481e90becca44e', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '18d2cdc86a27290c0678a56f014059dc', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1bb963d4e9c84cb21e685f2ca06069bf', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '81e42f3cb275bd87e52ada66a3f65c07', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f1b8039b6eeae3b447aa91b331826d9', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:53:43', '2015-05-14 22:53:43', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:53:43', '2015-05-14 22:53:43', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:53:43', '2015-05-14 22:53:43', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd1c4b55d95298f223b9379d084e38b0a', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '96ba8177e0751facb9ce7fa0bfe306fd', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '19e1bb373fc83a8c55333321b3061855', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e2022b5cbd83a8fe8d9a7c026b3c28cf', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '955c47abb406e262a0b75d9ccdd36d0c', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1dacb2cb0eda54299f9ddc42f3e151a6', '2015-05-14 22:53:43', '2015-05-14 22:53:43', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '35b4ec52e8c0ac9c9a58beb45d6b1e8f', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01732fd81609c605a369fe1b40be5071', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '605829e6be12d106875a43d1b2497e02', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98b7b16826f2c6b3d8b2743cbe131884', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b44d1b2c534ef4ab9796fe1a4a2c0983', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e9070d1cdb729f38b71286cdbb90e9ee', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7b69de657387c9d43bbe163e7cce5926', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a27e1acd5d731e8d122f49b4070a0c1b', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2114a2ac8b45c0de1e1d6e5604035e62', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 873565849, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e6952a691723506858058cc4054e0b1b', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '79ccbec0949df2f17ecd01fbc168b727', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f9b43f32c17caed5edf78ea4d3a772bf', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '286c44ba9a585cefaa8ec22c4feed2b6', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7deee5b5148ded3db9fbf6ff2a42b83f', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'baf37cd5f91f00c2247d9b5417ac48cd', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:54:35', '2015-05-14 22:54:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:54:35', '2015-05-14 22:54:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:54:35', '2015-05-14 22:54:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fcdfddfa48ae1665e0010db3b71d51cc', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3cbd23b146fd73d7cbbd1a9db515a599', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c0b9ad1440b5dca42cd50078e777f2a5', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '33994675918837f28ed0f270a9eb2ed5', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '80029a95d40ff57dc5492513816b6146', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ee6239d5b7a60f4d73ad63c27b315001', '2015-05-14 22:54:35', '2015-05-14 22:54:35', 410780858)  (15.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '604972bf3ea3f7554e49468689538dba', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b4adf3d0aa768bb4c58e87ca600a776f', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b7318464428e9d13e2c0e2935083516d', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '813de23780d806d39de1028c8bbb3667', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fbb961d6eede643d03057053007d87c2', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '69d49d3431de711f0aa6dff7d8729b7c', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '20cae207ff522b7326ae19ffba0c6c7e', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '875d01b381de29a7e447809072265e38', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 478996145) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '304c239365c0ffd0af25709ad23156d3', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '21e3b6234b72d9e52013f08dec46edaa', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dc7181d3c6b3d1d377377409962775e0', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a6f9a254b0a77e9d6f3b00f5fbe2c990', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ca9d59c5bc92b02e0adbb81418cfa298', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01e98b5a1730a89d42ee63167ee7f4e5', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb2a733d1ff207ac81238e68a79ecc39', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:56:00', '2015-05-14 22:56:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:56:00', '2015-05-14 22:56:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:56:00', '2015-05-14 22:56:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '042a3ce65c905b154ba816e234f422a7', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9372e2af0bcaa4c4993329701ed08624', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cc8e94eba29ae1805fd1c5fef78a4c44', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '0e33763389728aa72712e6c2bc823e9d', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7704ffaceac5e7f13a79ed7545ea9f21', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cfea51b9396c514832d8baccf69cfd27', '2015-05-14 22:56:00', '2015-05-14 22:56:00', 410780858)  (13.8ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f58fd4ade9bf2edceef58ec61322ee56', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ea94deb216b6e7c22ff82a38586ce3ff', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'baf10b8d4a52f074221d591d2159e687', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '71e9ee1b039d0d4519b725455632a8e1', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '544713dca9673d0cec96fb56cc34564a', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 971855462) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8896e2dadff03401dea3e407c401d0b1', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ace761e93f798075ac11a55e70d176ed', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '00a4476d1c0378d9545fb938d9f880c2', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '007525038fb582ee50a72d1ae2224439', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '366b08be6b2069cbf10dd234aee8a6a4', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '36a9c87bffcc7e2bbcbb5ce16d478253', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '100655df5462d21590e35eff62383824', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1c48371c3393ef0c628d08f38d92342b', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '999c576fe67bf5e1efb03f495c753b03', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7394699a18fcb3b2895665e25ba83e63', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:56:44', '2015-05-14 22:56:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:56:44', '2015-05-14 22:56:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:56:44', '2015-05-14 22:56:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2e55c869b5149e1c8f37a0baaa50a33b', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0a9c1bfefe3fb1ee85d346ef6e2f3c24', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a5847f9e54ba551fcaa6ff352e76495f', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3fdd1b26364f202367a4ff37478bc25c', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ed0e3c6ab51c31e89b917b9e1f44196a', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6f56db66694076e5696b6ffb63297c0b', '2015-05-14 22:56:44', '2015-05-14 22:56:44', 410780858)  (14.1ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 106545386, 'Address', 633598004) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.3ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5ba8908c56016eb4c8c0e7c8cc18b13e', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '52b10b3acef3b27d9d9c497bae06bb50', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '621db48390ba5950d22bfc545d538e93', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c7a3515139acb170497f34c64eaaf231', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f390b62a7eb6ee8c76fa2fc615ac5636', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2cab1b04c8452cbb742b0033572dcff2', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f1f93bca9389f0df61614766c21db067', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6a699dff14be28a26c4ed18d1804833e', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fbfd034610bcf99daaf26a66813dc96f', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5442689bf97e112dfc37e5072857aac8', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2eb8c10a374e09ad8f962fc1089d6df2', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 102195269) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3264ce2df59ad231b43680e081999147', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'edb1d9c02fb08ed97c4e395f92da63ca', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a3d28f7c91c37863cb43d3132ad8a36d', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a18ab648f5df9155460690c4e705cd6b', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 762608046) Fixture Delete (0.0ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:57:14', '2015-05-14 22:57:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:57:14', '2015-05-14 22:57:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:57:14', '2015-05-14 22:57:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bc73fc9da1eee54617487d99643a50d0', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7f0dcde35dc7dc5e432f9b8f52b7eb92', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd7b65eddc5e28aca46692ba8895a008b', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ab828816e7498ff577dc7ec51a57913e', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f5b8479cd96ec41ea233e6c77dc90a82', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e649ff2ea8f53f50c6d2c32c9d7a6989', '2015-05-14 22:57:14', '2015-05-14 22:57:14', 410780858)  (13.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f29581d44dde276143f9da0a9cb7de77', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dabaa866799c106a79ed8c8f46f36811', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7b5b66ba9a44b8fa9975d8d49e4a88be', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e293a9a09d58dc617a3ef86553348317', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a1b2d26be47e74d1a837f938a086dcf4', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1a979cc8c4bea571a161cdc3271942fc', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e37a5392d6b8b883a0c830ca31ef33d9', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f6f57e7611841ca9679b90821046faac', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2d898642d415f05c20a3384e2e624dee', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0fcc6db89a8db1854843f8ed6a7d8ca6', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b05df808befefeeabeea39de2719a59c', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '483a20fa22064374bb0f5781ffe63023', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3990f47c1b80d218772847b9bc457add', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6be0707a9eb7bd5a194169423fc98278', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '846fdc71a28a975da006472f14f9300a', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:58:37', '2015-05-14 22:58:37', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:58:37', '2015-05-14 22:58:37', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:58:37', '2015-05-14 22:58:37', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9be1faf6a996f63bc90c63bd69b7ee76', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0ca0f3c993db8d76eed790b8b828c361', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fc25083b0d742d8299abcb2ab603a990', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e8b2d6f6d2b3269e16af2313736f9ae3', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '55c60c5b2c1d834da132153af636b4b6', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '078046ba1c62fe66e0052be5dc3d6447', '2015-05-14 22:58:37', '2015-05-14 22:58:37', 410780858)  (14.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1e198368baaeb2c252e6611f61f0b9cf', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e5ad6fef8dcd54aa740d97f719725ac2', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 1057142427) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e3e479a25fea21f105113cc650780d49', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bad1e029c08bde9346871bd96d6dbce3', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd1bd6cbad5a1e165faf4facb21e99200', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '87c3693fa61034ee2d101432cbc853b2', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '641052a9143555b679888340073ad100', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6b18c48f3426aaf7ad72becb0fffe628', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ce79f70833278f549382ba044176afa6', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1607ffe83259ed7c86f0d930440f25d4', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 343404421) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '14264f46797c2ff8ec2fed47f54a018c', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '12ad7d90c9fe7348ea37ec4ffb7d14f6', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '639bfb547f67162649d6ad5d45f28906', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd521c88ebce44c192e4fa585ead46dce', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 689259936) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e23b93a2a0647cc706a6bb2519056b27', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:58:53', '2015-05-14 22:58:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:58:53', '2015-05-14 22:58:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:58:53', '2015-05-14 22:58:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '90db04eda057dfbd310f088707ce8b88', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a3004f584c920c11e8a45c9e16782a01', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'efbc58368b0af59614e6858d8566308a', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c15ef954e76c284ec46762c7128dde0a', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4864632fa5b92bd21590532846ad7e3a', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a60bf96b609d3785457592c7376eed5c', '2015-05-14 22:58:53', '2015-05-14 22:58:53', 410780858)  (26.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '27efba06e894bc7ff813c6448324e978', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '313dc93cec7aae1660ab6379884155ad', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b0f8df13848da652bb23b3bd37b780e8', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c87d15dd6ac65654c6adece0589e067e', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b2af5155ca92f987cc0a1ab5ad0160e2', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7cc4fa97eed2c34c19914b52063126c6', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1049effeb98e578d783ee60c7aa95017', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8df4599de1b047cfdbc33b49ce47531b', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4ce3f8f7fc5f3c26b1691bb26c8fe94b', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2bed706073b2a9e2630bbf1973911093', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '648254cfb89b08cf7cb8729e36cb7062', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '072a4886810876ed4066f3acc7a7aee4', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '94dd5b120809357dba7ad75fc98df74c', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '20ff087dd1612563c1d0d94c1b8b51e0', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5371e71312a8e7214e407b8b3dad7a50', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:59:51', '2015-05-14 22:59:51', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:59:51', '2015-05-14 22:59:51', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 22:59:51', '2015-05-14 22:59:51', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '217f5ec3369dd4337ced98404baad73e', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '33afdc8f66e78b095896198b99bcc177', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a8c48273baa41e2b905813675283e15c', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '53dce67ef4bc6168859e462b25486dc8', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '35a89abbc15744c04bb0744af7296daf', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '845ef3b9c78f131bd4094306ca5e3986', '2015-05-14 22:59:51', '2015-05-14 22:59:51', 410780858)  (13.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-14 23:00:04.210248"], ["updated_at", "2015-05-14 23:00:04.210248"]]  (13.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 218], ["created_at", "2015-05-14 23:00:04.250618"], ["updated_at", "2015-05-14 23:00:04.250618"]]  (17.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 218], ["created_at", "2015-05-14 23:00:04.282868"], ["updated_at", "2015-05-14 23:00:04.282868"]]  (28.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 218], ["created_at", "2015-05-14 23:00:04.325031"], ["updated_at", "2015-05-14 23:00:04.325031"]]  (12.4ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 218], ["updated_at", "2015-05-14 23:00:04.339686"], ["id", 218]]  (22.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '651dd894857934bdb1aa0a8f4e96b72c', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4700cd7bfffa392810a4cf729d6cf5a6', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb45edf8c9f129a43eafca031caa9c71', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '26737d5c255645a84a757d43c4c668ac', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2e6b5a0f0b91a2bb4eb719f5343236e0', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '64c599e8a8b26dddb29a21970e036221', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2ee48f46f64606b623361817146c79f8', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e2fd4a98f3b0bc97d9191f8e57dc4709', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b1311e7e31e1f02b802ab0385dc281e3', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a04826ff6a4b70e5dc20df622c3a22e0', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 343404421) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1a804f2d74233e1c4e73dc4c67355fa1', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fb1e213d7018798612a27bad1381d767', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '384af1140cd1a74036d76cb2d511ed10', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '11e00a8ee319f8d512d22d002b153171', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '278427e5b7f01933ecf8b44f280a6a9c', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 23:00:04', '2015-05-14 23:00:04', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 23:00:04', '2015-05-14 23:00:04', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2015-05-14 23:00:04', '2015-05-14 23:00:04', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2a69bee1f5b4b6cf72389c0e837bf4e7', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '11e5d03f9fd23e8bde69b0edfa22f5b9', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '23468aca6feb112280ecf1745753da39', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1282bcdd56dea66ecf5cc595987b9a6f', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f5b149cc3bca05f48a6ab97ed45a6aea', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b443af0336413cc11527b576fa62ad9c', '2015-05-14 23:00:04', '2015-05-14 23:00:04', 410780858)  (31.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-14 23:00:04.490062"], ["updated_at", "2015-05-14 23:00:04.490062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-14 23:00:04.494012"], ["updated_at", "2015-05-14 23:00:04.494012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2015-05-14 23:00:04.496860"], ["updated_at", "2015-05-14 23:00:04.496860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-14 23:00:04.499786"], ["updated_at", "2015-05-14 23:00:04.499786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-14 23:00:04.501198"], ["updated_at", "2015-05-14 23:00:04.501198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-14 23:00:04.502610"], ["updated_at", "2015-05-14 23:00:04.502610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-14 23:00:04.504060"], ["updated_at", "2015-05-14 23:00:04.504060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-14 23:00:04.505342"], ["updated_at", "2015-05-14 23:00:04.505342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-14 23:00:04.506595"], ["updated_at", "2015-05-14 23:00:04.506595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-14 23:00:04.513339"], ["updated_at", "2015-05-14 23:00:04.513339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-14 23:00:04.514770"], ["updated_at", "2015-05-14 23:00:04.514770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-14 23:00:04.516149"], ["updated_at", "2015-05-14 23:00:04.516149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-14 23:00:04.545443"], ["updated_at", "2015-05-14 23:00:04.545443"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-14 23:00:04.546739"], ["updated_at", "2015-05-14 23:00:04.546739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-14 23:00:04.549983"], ["updated_at", "2015-05-14 23:00:04.549983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-14 23:00:04.551671"], ["updated_at", "2015-05-14 23:00:04.551671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-14 23:00:04.553026"], ["updated_at", "2015-05-14 23:00:04.553026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-14 23:00:04.557710"], ["updated_at", "2015-05-14 23:00:04.557710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-14 23:00:04.559095"], ["updated_at", "2015-05-14 23:00:04.559095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-14 23:00:04.560570"], ["updated_at", "2015-05-14 23:00:04.560570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-14 23:00:04.561809"], ["updated_at", "2015-05-14 23:00:04.561809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-14 23:00:04.563030"], ["updated_at", "2015-05-14 23:00:04.563030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-14 23:00:04.564322"], ["updated_at", "2015-05-14 23:00:04.564322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-14 23:00:04.569931"], ["updated_at", "2015-05-14 23:00:04.569931"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 219], ["created_at", "2015-05-14 23:00:04.571971"], ["updated_at", "2015-05-14 23:00:04.571971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 219], ["created_at", "2015-05-14 23:00:04.573918"], ["updated_at", "2015-05-14 23:00:04.573918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 219], ["created_at", "2015-05-14 23:00:04.575958"], ["updated_at", "2015-05-14 23:00:04.575958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2015-05-14 23:00:04.585138"], ["updated_at", "2015-05-14 23:00:04.585138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2015-05-14 23:00:04.586601"], ["updated_at", "2015-05-14 23:00:04.586601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2015-05-14 23:00:04.587961"], ["updated_at", "2015-05-14 23:00:04.587961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-14 23:00:04.596713"], ["updated_at", "2015-05-14 23:00:04.596713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2015-05-14 23:00:04.604952"], ["updated_at", "2015-05-14 23:00:04.604952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2015-05-14 23:00:04.609340"], ["updated_at", "2015-05-14 23:00:04.609340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2015-05-14 23:00:04.610762"], ["updated_at", "2015-05-14 23:00:04.610762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2015-05-14 23:00:04.612226"], ["updated_at", "2015-05-14 23:00:04.612226"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2015-05-14 23:00:04.625015"], ["updated_at", "2015-05-14 23:00:04.625015"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2015-05-14 23:00:04.626280"], ["updated_at", "2015-05-14 23:00:04.626280"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2015-05-14 23:00:04.627254"], ["updated_at", "2015-05-14 23:00:04.627254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2015-05-14 23:00:04.649255"], ["updated_at", "2015-05-14 23:00:04.649255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2015-05-14 23:00:04.650805"], ["updated_at", "2015-05-14 23:00:04.650805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2015-05-14 23:00:04.652230"], ["updated_at", "2015-05-14 23:00:04.652230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-14 23:00:04.656299"], ["updated_at", "2015-05-14 23:00:04.656299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-14 23:00:04.657844"], ["updated_at", "2015-05-14 23:00:04.657844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2015-05-14 23:00:04.659303"], ["updated_at", "2015-05-14 23:00:04.659303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2015-05-14 23:00:04.661683"], ["updated_at", "2015-05-14 23:00:04.661683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-14 23:00:04.664031"], ["updated_at", "2015-05-14 23:00:04.664031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-14 23:00:04.666154"], ["updated_at", "2015-05-14 23:00:04.666154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2015-05-14 23:00:04.669253"], ["updated_at", "2015-05-14 23:00:04.669253"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2015-05-14 23:00:04.670230"], ["updated_at", "2015-05-14 23:00:04.670230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-14 23:00:04.673375"], ["updated_at", "2015-05-14 23:00:04.673375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-14 23:00:04.677365"], ["updated_at", "2015-05-14 23:00:04.677365"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 219], ["created_at", "2015-05-14 23:00:04.680420"], ["updated_at", "2015-05-14 23:00:04.680420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 219], ["created_at", "2015-05-14 23:00:04.683290"], ["updated_at", "2015-05-14 23:00:04.683290"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 219], ["created_at", "2015-05-14 23:00:04.686102"], ["updated_at", "2015-05-14 23:00:04.686102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 219], ["updated_at", "2015-05-14 23:00:04.688038"], ["id", 219]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 219]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 219]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 219]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 219]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 219]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 219]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 219]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 219]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-14 23:00:04.720831"], ["updated_at", "2015-05-14 23:00:04.720831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 219], ["created_at", "2015-05-14 23:00:04.722819"], ["updated_at", "2015-05-14 23:00:04.722819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2015-05-14 23:00:04.725401"], ["updated_at", "2015-05-14 23:00:04.725401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-05-14 23:00:04.729323"], ["updated_at", "2015-05-14 23:00:04.729323"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 218]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 218]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 218]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 218]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 218]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 218]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 218]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 218]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 22:06:27.183335"], ["updated_at", "2016-01-20 22:06:27.183335"]]  (34.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 219], ["created_at", "2016-01-20 22:06:27.254672"], ["updated_at", "2016-01-20 22:06:27.254672"]]  (26.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 219], ["created_at", "2016-01-20 22:06:27.299868"], ["updated_at", "2016-01-20 22:06:27.299868"]]  (31.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 219], ["created_at", "2016-01-20 22:06:27.343713"], ["updated_at", "2016-01-20 22:06:27.343713"]]  (24.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 219], ["updated_at", "2016-01-20 22:06:27.370825"], ["id", 219]]  (29.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8e227fa3bd311e5713f31965fa4f126d', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd16c720ab2db51b09ed24535b227f000', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1e9ae79a754c2039515bca69460cfaa5', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7ce2ab6cf2e7cac2dde4b0319090efb9', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b8277455edfd6c1b5ec29cb7101cffe9', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '896635362ffe483bb635e9dd96660d55', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'facb1384127ebcbd73013aee5cee113c', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f544c747199ff16a7562f46099f134f1', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0726ae2c704206022edcc4144c15ff01', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ba037e11d03cfc5fa0be08baf26e5724', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6edb524d7e7efa621cd13228c8ae3c60', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '588ed73d062b20aea9e16a161ff61fa9', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '36cd66ba41d2a068708c21733554d03c', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '04bd82b9f435ce26eda89a5a066c9711', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5c51d50ac93d42136cc4f31e721d4ad', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 22:06:27', '2016-01-20 22:06:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 22:06:27', '2016-01-20 22:06:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 22:06:27', '2016-01-20 22:06:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '12f1cf23258715c2c3bd645f11bf4a16', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9817d8fc14d44d37da5359aa58281e83', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0657847e6606cded8c0ece37f14d5501', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6cea2022f7bb3e1aefad44f7c1177aa8', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2610543d21bc5769ebc9a3767c96bfa7', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eff8242c9456ebb87ae33e32eb78aa08', '2016-01-20 22:06:27', '2016-01-20 22:06:27', 410780858)  (33.0ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (2.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 219]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 219]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 219]] Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 219]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 219]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 219]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 219]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 219]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 22:06:27.688289"], ["updated_at", "2016-01-20 22:06:27.688289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 220], ["created_at", "2016-01-20 22:06:27.690264"], ["updated_at", "2016-01-20 22:06:27.690264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 220], ["created_at", "2016-01-20 22:06:27.692170"], ["updated_at", "2016-01-20 22:06:27.692170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 220], ["created_at", "2016-01-20 22:06:27.693958"], ["updated_at", "2016-01-20 22:06:27.693958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 220], ["updated_at", "2016-01-20 22:06:27.695332"], ["id", 220]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 220]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 220]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 220]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 220]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 220]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 220]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 220]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 220]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-01-20 22:06:27.726185"], ["updated_at", "2016-01-20 22:06:27.726185"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-01-20 22:06:27.728019"], ["updated_at", "2016-01-20 22:06:27.728019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-01-20 22:06:27.729450"], ["updated_at", "2016-01-20 22:06:27.729450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-01-20 22:06:27.732729"], ["updated_at", "2016-01-20 22:06:27.732729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 22:06:27.744340"], ["updated_at", "2016-01-20 22:06:27.744340"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 22:06:27.745581"], ["updated_at", "2016-01-20 22:06:27.745581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 22:06:27.749839"], ["updated_at", "2016-01-20 22:06:27.749839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 22:06:27.760896"], ["updated_at", "2016-01-20 22:06:27.760896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 22:06:27.765854"], ["updated_at", "2016-01-20 22:06:27.765854"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-01-20 22:06:27.770088"], ["updated_at", "2016-01-20 22:06:27.770088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 22:06:27.773381"], ["updated_at", "2016-01-20 22:06:27.773381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 22:06:27.774915"], ["updated_at", "2016-01-20 22:06:27.774915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 22:06:27.776436"], ["updated_at", "2016-01-20 22:06:27.776436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 22:06:27.777741"], ["updated_at", "2016-01-20 22:06:27.777741"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 22:06:27.779036"], ["updated_at", "2016-01-20 22:06:27.779036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 22:06:27.780435"], ["updated_at", "2016-01-20 22:06:27.780435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 22:06:27.786397"], ["updated_at", "2016-01-20 22:06:27.786397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-01-20 22:06:27.804312"], ["updated_at", "2016-01-20 22:06:27.804312"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-01-20 22:06:27.805565"], ["updated_at", "2016-01-20 22:06:27.805565"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-01-20 22:06:27.806536"], ["updated_at", "2016-01-20 22:06:27.806536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.2ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 22:06:27.828544"], ["updated_at", "2016-01-20 22:06:27.828544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 22:06:27.830156"], ["updated_at", "2016-01-20 22:06:27.830156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 22:06:27.831499"], ["updated_at", "2016-01-20 22:06:27.831499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 22:06:27.840756"], ["updated_at", "2016-01-20 22:06:27.840756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 22:06:27.842281"], ["updated_at", "2016-01-20 22:06:27.842281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 22:06:27.843641"], ["updated_at", "2016-01-20 22:06:27.843641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 22:06:27.844906"], ["updated_at", "2016-01-20 22:06:27.844906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 22:06:27.846158"], ["updated_at", "2016-01-20 22:06:27.846158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 22:06:27.847476"], ["updated_at", "2016-01-20 22:06:27.847476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 22:06:27.852535"], ["updated_at", "2016-01-20 22:06:27.852535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 22:06:27.853942"], ["updated_at", "2016-01-20 22:06:27.853942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 22:06:27.855450"], ["updated_at", "2016-01-20 22:06:27.855450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 22:06:27.859604"], ["updated_at", "2016-01-20 22:06:27.859604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 220], ["created_at", "2016-01-20 22:06:27.861941"], ["updated_at", "2016-01-20 22:06:27.861941"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 22:06:27.865262"], ["updated_at", "2016-01-20 22:06:27.865262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-01-20 22:06:27.868328"], ["updated_at", "2016-01-20 22:06:27.868328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-01-20 22:06:27.869807"], ["updated_at", "2016-01-20 22:06:27.869807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-01-20 22:06:27.871253"], ["updated_at", "2016-01-20 22:06:27.871253"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 22:06:27.876973"], ["updated_at", "2016-01-20 22:06:27.876973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 220], ["created_at", "2016-01-20 22:06:27.879198"], ["updated_at", "2016-01-20 22:06:27.879198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 220], ["created_at", "2016-01-20 22:06:27.881277"], ["updated_at", "2016-01-20 22:06:27.881277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 220], ["created_at", "2016-01-20 22:06:27.883058"], ["updated_at", "2016-01-20 22:06:27.883058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 22:06:27.896391"], ["updated_at", "2016-01-20 22:06:27.896391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 22:06:27.897890"], ["updated_at", "2016-01-20 22:06:27.897890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 22:06:27.899191"], ["updated_at", "2016-01-20 22:06:27.899191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 22:06:27.903335"], ["updated_at", "2016-01-20 22:06:27.903335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 22:06:27.905710"], ["updated_at", "2016-01-20 22:06:27.905710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 22:06:27.907798"], ["updated_at", "2016-01-20 22:06:27.907798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 22:06:27.910914"], ["updated_at", "2016-01-20 22:06:27.910914"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 22:06:27.911917"], ["updated_at", "2016-01-20 22:06:27.911917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 22:06:27.914849"], ["updated_at", "2016-01-20 22:06:27.914849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 22:06:27.919848"], ["updated_at", "2016-01-20 22:06:27.919848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 22:06:27.921254"], ["updated_at", "2016-01-20 22:06:27.921254"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 22:06:27.922935"], ["updated_at", "2016-01-20 22:06:27.922935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddContactableToContacts (20160120224015)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "contacts" ADD "contactable_id" integer  (0.2ms) ALTER TABLE "contacts" ADD "contactable_type" varchar  (0.1ms) select sqlite_version(*)  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_contacts_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_user_id' AND type='index'  (0.2ms) CREATE INDEX "index_contacts_on_contactable_type_and_contactable_id" ON "contacts" ("contactable_type", "contactable_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160120224015"]]  (18.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_alphas_on_delta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_alphas_on_delta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_beta_on_alpha_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_beta_on_alpha_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_capas_on_beta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_capas_on_beta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cars_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cars_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_contacts_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_delta_on_capa_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_delta_on_capa_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_geo_locations_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_geo_locations_on_address_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ssns_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ssns_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_tags_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tags_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tires_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_tires_on_car_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_car_id' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateAddressBooks (20160120231645)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "address_books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160120231645"]]  (27.4ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_alphas_on_delta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_alphas_on_delta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_beta_on_alpha_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_beta_on_alpha_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_capas_on_beta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_capas_on_beta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cars_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cars_on_user_id' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_contacts_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_delta_on_capa_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_delta_on_capa_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_geo_locations_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_geo_locations_on_address_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_ssns_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ssns_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_tags_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tags_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tires_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_tires_on_car_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_car_id' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:21:00.294751"], ["updated_at", "2016-01-20 23:21:00.294751"]]  (14.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 220], ["created_at", "2016-01-20 23:21:00.332704"], ["updated_at", "2016-01-20 23:21:00.332704"]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 220], ["created_at", "2016-01-20 23:21:00.359577"], ["updated_at", "2016-01-20 23:21:00.359577"]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 220], ["created_at", "2016-01-20 23:21:00.384985"], ["updated_at", "2016-01-20 23:21:00.384985"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 220], ["updated_at", "2016-01-20 23:21:00.399075"], ["id", 220]]  (12.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b6f3ad24af75cd98ee3e5e2e101b697a', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '22424929acef8f0c9bde1dfd835ac6b2', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c36a94f8e08dcacc3676f84206ca5314', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '086cbd23a97a913aa9e8993b01a6668e', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '321d1139081103e9be3ea449bd8a0f1c', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd683c4f6397e95303fe5095a69541c76', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2a4980945b9c48acc2d1b3971c4eff11', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '57770b2f79bad976f8c9c3d38b93522b', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6c20f95c4ca6cc5c425f198849786b6e', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a9e640775c7cce920cc0b47d87b2e15b', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '252dea51150b7d39942ea5d67986e0e3', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'de76fa573d075b5b002e32449be49189', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '843765ad0015b49f739a6e4eaf60103c', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '83e39a8ced9875ee8bf3edbdd7d6c0f0', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2ac31fc4f07de62d141391e3ba0a4eae', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:21:00', '2016-01-20 23:21:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:21:00', '2016-01-20 23:21:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:21:00', '2016-01-20 23:21:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '8d9696393af51c2dc494a63f05ab22fe', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c3b0464fccf0f88e2eed1401ca9787ed', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0aee39f2927a38e029775467487923e2', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '7dda83204e84afe8990d5135d9e388c5', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 743354599) Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 521111460, 'AddressBook', '1a0ecb5d1ddd5d6b05f5e935f454d408', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 1043218211) Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 1027911713, 'AddressBook', '6f5feb9ed1b2310b04ebefdbbf3265c1', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 619673994) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:21:00', '2016-01-20 23:21:00', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:21:00', '2016-01-20 23:21:00', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:21:00', '2016-01-20 23:21:00', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3c359294c5ba0bf833af78cafc56475b', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'd3db9a37272911717e7a62adc2c34088', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9d534aecb8c90697d4e2bf8bb98febd4', '2016-01-20 23:21:00', '2016-01-20 23:21:00', 410780858)  (23.4ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:21:00.634668"], ["updated_at", "2016-01-20 23:21:00.634668"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:21:00.635952"], ["updated_at", "2016-01-20 23:21:00.635952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:21:00.642420"], ["updated_at", "2016-01-20 23:21:00.642420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:21:00.643967"], ["updated_at", "2016-01-20 23:21:00.643967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:21:00.645243"], ["updated_at", "2016-01-20 23:21:00.645243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:21:00.646446"], ["updated_at", "2016-01-20 23:21:00.646446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:21:00.647636"], ["updated_at", "2016-01-20 23:21:00.647636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:21:00.648876"], ["updated_at", "2016-01-20 23:21:00.648876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:21:00.651556"], ["updated_at", "2016-01-20 23:21:00.651556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:21:00.655033"], ["updated_at", "2016-01-20 23:21:00.655033"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-01-20 23:21:00.658330"], ["updated_at", "2016-01-20 23:21:00.658330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:21:00.661658"], ["updated_at", "2016-01-20 23:21:00.661658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-01-20 23:21:00.676715"], ["updated_at", "2016-01-20 23:21:00.676715"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-01-20 23:21:00.677975"], ["updated_at", "2016-01-20 23:21:00.677975"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-01-20 23:21:00.678959"], ["updated_at", "2016-01-20 23:21:00.678959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:21:00.699801"], ["updated_at", "2016-01-20 23:21:00.699801"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:21:00.701634"], ["updated_at", "2016-01-20 23:21:00.701634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:21:00.702950"], ["updated_at", "2016-01-20 23:21:00.702950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:21:00.706375"], ["updated_at", "2016-01-20 23:21:00.706375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:21:00.708556"], ["updated_at", "2016-01-20 23:21:00.708556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:21:00.710663"], ["updated_at", "2016-01-20 23:21:00.710663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:21:00.713764"], ["updated_at", "2016-01-20 23:21:00.713764"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:21:00.714742"], ["updated_at", "2016-01-20 23:21:00.714742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:21:00.717786"], ["updated_at", "2016-01-20 23:21:00.717786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:21:00.725713"], ["updated_at", "2016-01-20 23:21:00.725713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:21:00.727111"], ["updated_at", "2016-01-20 23:21:00.727111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:21:00.728537"], ["updated_at", "2016-01-20 23:21:00.728537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:21:00.729780"], ["updated_at", "2016-01-20 23:21:00.729780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:21:00.731036"], ["updated_at", "2016-01-20 23:21:00.731036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:21:00.732308"], ["updated_at", "2016-01-20 23:21:00.732308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:21:00.735659"], ["updated_at", "2016-01-20 23:21:00.735659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:21:00.737080"], ["updated_at", "2016-01-20 23:21:00.737080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:21:00.738412"], ["updated_at", "2016-01-20 23:21:00.738412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:21:00.740924"], ["updated_at", "2016-01-20 23:21:00.740924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:21:00.742322"], ["updated_at", "2016-01-20 23:21:00.742322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:21:00.743660"], ["updated_at", "2016-01-20 23:21:00.743660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:21:00.748954"], ["updated_at", "2016-01-20 23:21:00.748954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:21:00.750383"], ["updated_at", "2016-01-20 23:21:00.750383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:21:00.751733"], ["updated_at", "2016-01-20 23:21:00.751733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:21:00.764115"], ["updated_at", "2016-01-20 23:21:00.764115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 221], ["created_at", "2016-01-20 23:21:00.766239"], ["updated_at", "2016-01-20 23:21:00.766239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:21:00.769104"], ["updated_at", "2016-01-20 23:21:00.769104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:21:00.772938"], ["updated_at", "2016-01-20 23:21:00.772938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:21:00.781126"], ["updated_at", "2016-01-20 23:21:00.781126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 221], ["created_at", "2016-01-20 23:21:00.783145"], ["updated_at", "2016-01-20 23:21:00.783145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 221], ["created_at", "2016-01-20 23:21:00.785147"], ["updated_at", "2016-01-20 23:21:00.785147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 221], ["created_at", "2016-01-20 23:21:00.786945"], ["updated_at", "2016-01-20 23:21:00.786945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 221], ["updated_at", "2016-01-20 23:21:00.788273"], ["id", 221]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 221]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 221]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 221]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 221]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 221]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 221]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 221]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 221]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-01-20 23:21:00.818989"], ["updated_at", "2016-01-20 23:21:00.818989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-01-20 23:21:00.821334"], ["updated_at", "2016-01-20 23:21:00.821334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-01-20 23:21:00.822750"], ["updated_at", "2016-01-20 23:21:00.822750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-01-20 23:21:00.824170"], ["updated_at", "2016-01-20 23:21:00.824170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-01-20 23:21:00.828397"], ["updated_at", "2016-01-20 23:21:00.828397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-01-20 23:21:00.829834"], ["updated_at", "2016-01-20 23:21:00.829834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-01-20 23:21:00.831222"], ["updated_at", "2016-01-20 23:21:00.831222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:21:00.835080"], ["updated_at", "2016-01-20 23:21:00.835080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 221], ["created_at", "2016-01-20 23:21:00.837733"], ["updated_at", "2016-01-20 23:21:00.837733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 221], ["created_at", "2016-01-20 23:21:00.840335"], ["updated_at", "2016-01-20 23:21:00.840335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 221], ["created_at", "2016-01-20 23:21:00.842151"], ["updated_at", "2016-01-20 23:21:00.842151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 221]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 220]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 220]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 220]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 220]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 220]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 220]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 220]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 220]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation ---------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_post 1.0.0 first polymorphic parent relation ----------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:31:03.061487"], ["updated_at", "2016-01-20 23:31:03.061487"]]  (13.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 221], ["created_at", "2016-01-20 23:31:03.101187"], ["updated_at", "2016-01-20 23:31:03.101187"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 221], ["created_at", "2016-01-20 23:31:03.125149"], ["updated_at", "2016-01-20 23:31:03.125149"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 221], ["created_at", "2016-01-20 23:31:03.154036"], ["updated_at", "2016-01-20 23:31:03.154036"]]  (22.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 221], ["updated_at", "2016-01-20 23:31:03.178719"], ["id", 221]]  (15.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:08.360796"], ["updated_at", "2016-01-20 23:32:08.360796"]]  (26.3ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 222], ["created_at", "2016-01-20 23:32:08.411485"], ["updated_at", "2016-01-20 23:32:08.411485"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 222], ["created_at", "2016-01-20 23:32:08.435797"], ["updated_at", "2016-01-20 23:32:08.435797"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 222], ["created_at", "2016-01-20 23:32:08.461028"], ["updated_at", "2016-01-20 23:32:08.461028"]]  (35.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 222], ["updated_at", "2016-01-20 23:32:08.499195"], ["id", 222]]  (12.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a570e3d05d30d3687e41406933da4664', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2f0a2f853c2f0d09b2a85fcfa89c1443', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ea37f61e2744d08e2bb42b9806ed148e', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2553b01d1cb6648bc7ec0d37743eefef', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6af5dc7f9638fcb1512ae2bfb6aec040', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7e32d0e5a6a88018fbd7af66bc701a4d', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd67383ddfdace3c6d408685a3f275975', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '84a39350e98e30d4b07428fc1125c9fd', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a9ca7b0b324d3b9cb4c07bf3cab8cd06', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '995813533d8f966c73bc6b511ebd8f76', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4817d23f6a6b9c036049367916fa0124', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '691f8c592b0715351de406c894b1a10f', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8496db363d8934eef63f3bc691f8a6f7', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1741b0b2d1458e01ea01e54650da7920', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f3e13be0c7b8dc358efc55175fb1b520', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:32:08', '2016-01-20 23:32:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:32:08', '2016-01-20 23:32:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:32:08', '2016-01-20 23:32:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '641f1dcc401fb74468aaf69ce1550b1e', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0ca16218bc0e0617ebd8dbe75518466b', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5bfd4e3473dfd669958de15b279b0e1c', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '7506ba33c926e501a6066d2f90322692', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 743354599) Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 521111460, 'AddressBook', 'e6000f16e2a37faa745d16c3771b23a4', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 1043218211) Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 1027911713, 'AddressBook', 'ebd9d852e7bc51c7371e2371437b4813', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 619673994) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:32:08', '2016-01-20 23:32:08', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:32:08', '2016-01-20 23:32:08', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:32:08', '2016-01-20 23:32:08', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.4ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'aa213b1e830069e5fb1d2738a3fb5083', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f443ba51778cde4f6a2e2f9de23780a3', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '28e82369bbbb4ca8901a189ab8f20195', '2016-01-20 23:32:08', '2016-01-20 23:32:08', 410780858)  (24.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-01-20 23:32:08.660815"], ["updated_at", "2016-01-20 23:32:08.660815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-01-20 23:32:08.662513"], ["updated_at", "2016-01-20 23:32:08.662513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-01-20 23:32:08.663918"], ["updated_at", "2016-01-20 23:32:08.663918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:32:08.691030"], ["updated_at", "2016-01-20 23:32:08.691030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:32:08.692738"], ["updated_at", "2016-01-20 23:32:08.692738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:32:08.694029"], ["updated_at", "2016-01-20 23:32:08.694029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:32:08.695207"], ["updated_at", "2016-01-20 23:32:08.695207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:32:08.696470"], ["updated_at", "2016-01-20 23:32:08.696470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:32:08.697841"], ["updated_at", "2016-01-20 23:32:08.697841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:08.706464"], ["updated_at", "2016-01-20 23:32:08.706464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 223], ["created_at", "2016-01-20 23:32:08.708517"], ["updated_at", "2016-01-20 23:32:08.708517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 223], ["created_at", "2016-01-20 23:32:08.710469"], ["updated_at", "2016-01-20 23:32:08.710469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 223], ["created_at", "2016-01-20 23:32:08.712906"], ["updated_at", "2016-01-20 23:32:08.712906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 223], ["updated_at", "2016-01-20 23:32:08.714692"], ["id", 223]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 223]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 223]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 223]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 223]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 223]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 223]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 223]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 223]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]]  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:32:08.748144"], ["updated_at", "2016-01-20 23:32:08.748144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:32:08.749872"], ["updated_at", "2016-01-20 23:32:08.749872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:32:08.751572"], ["updated_at", "2016-01-20 23:32:08.751572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:08.756380"], ["updated_at", "2016-01-20 23:32:08.756380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 223], ["created_at", "2016-01-20 23:32:08.758272"], ["updated_at", "2016-01-20 23:32:08.758272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:32:08.760711"], ["updated_at", "2016-01-20 23:32:08.760711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:32:08.763683"], ["updated_at", "2016-01-20 23:32:08.763683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:32:08.765086"], ["updated_at", "2016-01-20 23:32:08.765086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:32:08.766425"], ["updated_at", "2016-01-20 23:32:08.766425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:32:08.767638"], ["updated_at", "2016-01-20 23:32:08.767638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:32:08.768884"], ["updated_at", "2016-01-20 23:32:08.768884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:32:08.770424"], ["updated_at", "2016-01-20 23:32:08.770424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:08.781407"], ["updated_at", "2016-01-20 23:32:08.781407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 223], ["created_at", "2016-01-20 23:32:08.783309"], ["updated_at", "2016-01-20 23:32:08.783309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 223], ["created_at", "2016-01-20 23:32:08.785442"], ["updated_at", "2016-01-20 23:32:08.785442"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 223], ["created_at", "2016-01-20 23:32:08.787563"], ["updated_at", "2016-01-20 23:32:08.787563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:32:08.795146"], ["updated_at", "2016-01-20 23:32:08.795146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:32:08.799183"], ["updated_at", "2016-01-20 23:32:08.799183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-01-20 23:32:08.802296"], ["updated_at", "2016-01-20 23:32:08.802296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:32:08.806329"], ["updated_at", "2016-01-20 23:32:08.806329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:32:08.807740"], ["updated_at", "2016-01-20 23:32:08.807740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:32:08.809204"], ["updated_at", "2016-01-20 23:32:08.809204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:32:08.816469"], ["updated_at", "2016-01-20 23:32:08.816469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-01-20 23:32:08.827551"], ["updated_at", "2016-01-20 23:32:08.827551"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-01-20 23:32:08.828872"], ["updated_at", "2016-01-20 23:32:08.828872"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-01-20 23:32:08.830029"], ["updated_at", "2016-01-20 23:32:08.830029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:32:08.846439"], ["updated_at", "2016-01-20 23:32:08.846439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:32:08.848816"], ["updated_at", "2016-01-20 23:32:08.848816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:08.850882"], ["updated_at", "2016-01-20 23:32:08.850882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:32:08.854451"], ["updated_at", "2016-01-20 23:32:08.854451"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:32:08.855474"], ["updated_at", "2016-01-20 23:32:08.855474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:08.858576"], ["updated_at", "2016-01-20 23:32:08.858576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:32:08.862581"], ["updated_at", "2016-01-20 23:32:08.862581"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:32:08.863594"], ["updated_at", "2016-01-20 23:32:08.863594"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-01-20 23:32:08.869875"], ["updated_at", "2016-01-20 23:32:08.869875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-01-20 23:32:08.872099"], ["updated_at", "2016-01-20 23:32:08.872099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-01-20 23:32:08.873612"], ["updated_at", "2016-01-20 23:32:08.873612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-01-20 23:32:08.875071"], ["updated_at", "2016-01-20 23:32:08.875071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:32:08.878021"], ["updated_at", "2016-01-20 23:32:08.878021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:32:08.879464"], ["updated_at", "2016-01-20 23:32:08.879464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:32:08.880862"], ["updated_at", "2016-01-20 23:32:08.880862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:08.884515"], ["updated_at", "2016-01-20 23:32:08.884515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:32:08.886688"], ["updated_at", "2016-01-20 23:32:08.886688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:32:08.893521"], ["updated_at", "2016-01-20 23:32:08.893521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:32:08.895025"], ["updated_at", "2016-01-20 23:32:08.895025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 222]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 222]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 222]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 222]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 222]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 222]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 222]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 222]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:45.438760"], ["updated_at", "2016-01-20 23:32:45.438760"]]  (17.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 223], ["created_at", "2016-01-20 23:32:45.481664"], ["updated_at", "2016-01-20 23:32:45.481664"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 223], ["created_at", "2016-01-20 23:32:45.507239"], ["updated_at", "2016-01-20 23:32:45.507239"]]  (17.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 223], ["created_at", "2016-01-20 23:32:45.539068"], ["updated_at", "2016-01-20 23:32:45.539068"]]  (26.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 223], ["updated_at", "2016-01-20 23:32:45.566937"], ["id", 223]]  (16.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '162be914e8cfda81692613beb4a212c1', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62773362e801e047645202c660e1bb55', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '905658bfb7ca136094374fd8863b8b72', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f21f230b272af479e18a67e2cf12d77d', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b19c51f97a976e1d86e18f727396562e', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b1c116681b437db7ab30d4b810a8fe9d', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6f0c981658315471f68827e477de9801', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f78e0af5cb51c3d5d24e2bf4cc5c2ddc', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c196b7afa18b6eea2d00d7cb7ab42cd6', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '619b02f788af384cd5c404289b8a55c6', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ae80a1982368e85f46009fbeca6829db', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '49e7c736dc021734c305450a18845518', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '52fd757ad82722c5f02e5194b956e2c0', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '036f4a83aa7918dbc7f7511998f86487', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f71c8ba4fd6698c3049ad925284587e', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:32:45', '2016-01-20 23:32:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:32:45', '2016-01-20 23:32:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:32:45', '2016-01-20 23:32:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '09cf674caf54a3ac49e8ca333011f096', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'cf511139dca18889bb85e6c0ff3530cc', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2f5262510b632e3277e51ef969c67102', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'cf4f91e32802ef1823bc69300c9d4581', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 743354599) Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 521111460, 'AddressBook', 'ad650d2d6cedc89bd191773579a38241', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 1043218211) Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 1027911713, 'AddressBook', '6880b75191675a29ad771e600b72fe51', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 619673994) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:32:45', '2016-01-20 23:32:45', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:32:45', '2016-01-20 23:32:45', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:32:45', '2016-01-20 23:32:45', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2683238e5e4c3a8bf35daf6a62be53ee', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9baccc55704df6accb33ee38cb874c73', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '17ca9b52f4db87e60038a6ab334c91aa', '2016-01-20 23:32:45', '2016-01-20 23:32:45', 410780858)  (30.3ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:32:45.789763"], ["updated_at", "2016-01-20 23:32:45.789763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:32:45.791507"], ["updated_at", "2016-01-20 23:32:45.791507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:32:45.792920"], ["updated_at", "2016-01-20 23:32:45.792920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:32:45.794148"], ["updated_at", "2016-01-20 23:32:45.794148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:32:45.795348"], ["updated_at", "2016-01-20 23:32:45.795348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:32:45.796688"], ["updated_at", "2016-01-20 23:32:45.796688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-01-20 23:32:45.811890"], ["updated_at", "2016-01-20 23:32:45.811890"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-01-20 23:32:45.813129"], ["updated_at", "2016-01-20 23:32:45.813129"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-01-20 23:32:45.814073"], ["updated_at", "2016-01-20 23:32:45.814073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:32:45.828717"], ["updated_at", "2016-01-20 23:32:45.828717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:32:45.830946"], ["updated_at", "2016-01-20 23:32:45.830946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:45.833003"], ["updated_at", "2016-01-20 23:32:45.833003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:32:45.836327"], ["updated_at", "2016-01-20 23:32:45.836327"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:32:45.837372"], ["updated_at", "2016-01-20 23:32:45.837372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:45.840360"], ["updated_at", "2016-01-20 23:32:45.840360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:32:45.846035"], ["updated_at", "2016-01-20 23:32:45.846035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:32:45.849484"], ["updated_at", "2016-01-20 23:32:45.849484"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-01-20 23:32:45.852200"], ["updated_at", "2016-01-20 23:32:45.852200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:32:45.855037"], ["updated_at", "2016-01-20 23:32:45.855037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:32:45.856457"], ["updated_at", "2016-01-20 23:32:45.856457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:32:45.857884"], ["updated_at", "2016-01-20 23:32:45.857884"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:45.863876"], ["updated_at", "2016-01-20 23:32:45.863876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 224], ["created_at", "2016-01-20 23:32:45.866008"], ["updated_at", "2016-01-20 23:32:45.866008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 224], ["created_at", "2016-01-20 23:32:45.868355"], ["updated_at", "2016-01-20 23:32:45.868355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 224], ["created_at", "2016-01-20 23:32:45.870338"], ["updated_at", "2016-01-20 23:32:45.870338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:32:45.883030"], ["updated_at", "2016-01-20 23:32:45.883030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:32:45.887054"], ["updated_at", "2016-01-20 23:32:45.887054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:32:45.888525"], ["updated_at", "2016-01-20 23:32:45.888525"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:32:45.889870"], ["updated_at", "2016-01-20 23:32:45.889870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-01-20 23:32:45.897980"], ["updated_at", "2016-01-20 23:32:45.897980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-01-20 23:32:45.899617"], ["updated_at", "2016-01-20 23:32:45.899617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-01-20 23:32:45.901225"], ["updated_at", "2016-01-20 23:32:45.901225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:32:45.906229"], ["updated_at", "2016-01-20 23:32:45.906229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:32:45.907630"], ["updated_at", "2016-01-20 23:32:45.907630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:32:45.908933"], ["updated_at", "2016-01-20 23:32:45.908933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-01-20 23:32:45.913442"], ["updated_at", "2016-01-20 23:32:45.913442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:32:45.916534"], ["updated_at", "2016-01-20 23:32:45.916534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:32:45.917996"], ["updated_at", "2016-01-20 23:32:45.917996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:32:45.919356"], ["updated_at", "2016-01-20 23:32:45.919356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:32:45.920678"], ["updated_at", "2016-01-20 23:32:45.920678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:32:45.921960"], ["updated_at", "2016-01-20 23:32:45.921960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:32:45.923223"], ["updated_at", "2016-01-20 23:32:45.923223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:32:45.930658"], ["updated_at", "2016-01-20 23:32:45.930658"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:32:45.931753"], ["updated_at", "2016-01-20 23:32:45.931753"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-01-20 23:32:45.936378"], ["updated_at", "2016-01-20 23:32:45.936378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-01-20 23:32:45.937849"], ["updated_at", "2016-01-20 23:32:45.937849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-01-20 23:32:45.939222"], ["updated_at", "2016-01-20 23:32:45.939222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:45.946962"], ["updated_at", "2016-01-20 23:32:45.946962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 224], ["created_at", "2016-01-20 23:32:45.949015"], ["updated_at", "2016-01-20 23:32:45.949015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:32:45.951886"], ["updated_at", "2016-01-20 23:32:45.951886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:32:45.956007"], ["updated_at", "2016-01-20 23:32:45.956007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:32:45.957537"], ["updated_at", "2016-01-20 23:32:45.957537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:32:45.958886"], ["updated_at", "2016-01-20 23:32:45.958886"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:45.970701"], ["updated_at", "2016-01-20 23:32:45.970701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:32:45.973881"], ["updated_at", "2016-01-20 23:32:45.973881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 224], ["created_at", "2016-01-20 23:32:45.975680"], ["updated_at", "2016-01-20 23:32:45.975680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 224], ["created_at", "2016-01-20 23:32:45.977656"], ["updated_at", "2016-01-20 23:32:45.977656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 224], ["created_at", "2016-01-20 23:32:45.979519"], ["updated_at", "2016-01-20 23:32:45.979519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 224], ["updated_at", "2016-01-20 23:32:45.980873"], ["id", 224]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 224]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 224]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 224]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 224]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 224]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 224]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 224]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 224]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 223]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 223]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 223]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 223]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 223]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 223]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 223]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 223]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:33:33.713382"], ["updated_at", "2016-01-20 23:33:33.713382"]]  (30.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 224], ["created_at", "2016-01-20 23:33:33.766187"], ["updated_at", "2016-01-20 23:33:33.766187"]]  (29.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 224], ["created_at", "2016-01-20 23:33:33.813091"], ["updated_at", "2016-01-20 23:33:33.813091"]]  (23.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 224], ["created_at", "2016-01-20 23:33:33.850898"], ["updated_at", "2016-01-20 23:33:33.850898"]]  (29.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 224], ["updated_at", "2016-01-20 23:33:33.882649"], ["id", 224]]  (31.4ms) commit transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cba1733f4e23141d0a96703c3e8e0ecb', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd93f0b290542b1fe6d73ab5d34d5b9c7', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7d0f1b67e3644b4328609a4ef6be358d', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4e4656486ac817f87318870e303976fc', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '91d436bb43057ef121515349a4b6093e', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '31ee1915dd28232cc300a718e2a1ecdc', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'adef638ee52775d8921f925798b6d051', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e3a16b69a5450c14f0b17219250363b0', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '81b029f8f3dd5a4127aa4deb8b444742', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1ddcf4c459a4340b0e4a09377d33665d', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '27c1824e4017ef440c5cf16f6d9be581', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f631d6aeacc4983eb15e5ed423bb16e9', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0b8476ce4c992bc95d0eb711d66bcede', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1d927a0429a2e03a61cb62ac8909011a', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7b15830845f7e2c30935414f28c1d55f', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:33:34', '2016-01-20 23:33:34', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:33:34', '2016-01-20 23:33:34', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:33:34', '2016-01-20 23:33:34', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ed2ee6283a9611c6991a01d1ad703063', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3a8f30519011ebdfb40b23d4a65cea0d', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b142fb8d54384275d676b3e7779c8afc', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '9dae7c2fdf058d1db2b511e248fe76ef', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 743354599) Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 521111460, 'AddressBook', '45a0d13e5d06b2135615c2d6d5e409e0', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 1043218211) Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 1027911713, 'AddressBook', '9b200ba355a35b2471a760f3fcc455fd', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 619673994) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:33:34', '2016-01-20 23:33:34', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:33:34', '2016-01-20 23:33:34', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:33:34', '2016-01-20 23:33:34', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f37dc7bee8d271d07560121620e398c1', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ea32781ac225faffe7c8931b9eee19c2', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '93e4aeeb0147abcb1c2aa751d7568261', '2016-01-20 23:33:34', '2016-01-20 23:33:34', 410780858)  (25.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 224]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 224]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 224]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 224]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 224]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 224]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 224]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 224]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-01-20 23:33:34.252131"], ["updated_at", "2016-01-20 23:33:34.252131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:33:34.254758"], ["updated_at", "2016-01-20 23:33:34.254758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:33:34.256273"], ["updated_at", "2016-01-20 23:33:34.256273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:33:34.257656"], ["updated_at", "2016-01-20 23:33:34.257656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:33:34.259210"], ["updated_at", "2016-01-20 23:33:34.259210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:33:34.260599"], ["updated_at", "2016-01-20 23:33:34.260599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:33:34.261907"], ["updated_at", "2016-01-20 23:33:34.261907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:33:34.264415"], ["updated_at", "2016-01-20 23:33:34.264415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:33:34.265752"], ["updated_at", "2016-01-20 23:33:34.265752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:33:34.267041"], ["updated_at", "2016-01-20 23:33:34.267041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:33:34.269388"], ["updated_at", "2016-01-20 23:33:34.269388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:33:34.270727"], ["updated_at", "2016-01-20 23:33:34.270727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:33:34.272228"], ["updated_at", "2016-01-20 23:33:34.272228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:33:34.279284"], ["updated_at", "2016-01-20 23:33:34.279284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:33:34.286360"], ["updated_at", "2016-01-20 23:33:34.286360"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:33:34.287648"], ["updated_at", "2016-01-20 23:33:34.287648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:33:34.292414"], ["updated_at", "2016-01-20 23:33:34.292414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 225], ["created_at", "2016-01-20 23:33:34.294576"], ["updated_at", "2016-01-20 23:33:34.294576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 225], ["created_at", "2016-01-20 23:33:34.296522"], ["updated_at", "2016-01-20 23:33:34.296522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 225], ["created_at", "2016-01-20 23:33:34.298354"], ["updated_at", "2016-01-20 23:33:34.298354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 225], ["updated_at", "2016-01-20 23:33:34.299706"], ["id", 225]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 225]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 225]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 225]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 225]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 225]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 225]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 225]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 225]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]]  (0.4ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-01-20 23:33:34.322194"], ["updated_at", "2016-01-20 23:33:34.322194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-01-20 23:33:34.323799"], ["updated_at", "2016-01-20 23:33:34.323799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-01-20 23:33:34.325319"], ["updated_at", "2016-01-20 23:33:34.325319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:33:34.331535"], ["updated_at", "2016-01-20 23:33:34.331535"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:33:34.332991"], ["updated_at", "2016-01-20 23:33:34.332991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:33:34.334266"], ["updated_at", "2016-01-20 23:33:34.334266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:33:34.341241"], ["updated_at", "2016-01-20 23:33:34.341241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:33:34.343250"], ["updated_at", "2016-01-20 23:33:34.343250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:33:34.345306"], ["updated_at", "2016-01-20 23:33:34.345306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:33:34.348355"], ["updated_at", "2016-01-20 23:33:34.348355"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:33:34.349300"], ["updated_at", "2016-01-20 23:33:34.349300"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:33:34.352357"], ["updated_at", "2016-01-20 23:33:34.352357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:33:34.360322"], ["updated_at", "2016-01-20 23:33:34.360322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:33:34.361802"], ["updated_at", "2016-01-20 23:33:34.361802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:33:34.363089"], ["updated_at", "2016-01-20 23:33:34.363089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-01-20 23:33:34.376089"], ["updated_at", "2016-01-20 23:33:34.376089"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-01-20 23:33:34.377293"], ["updated_at", "2016-01-20 23:33:34.377293"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-01-20 23:33:34.378225"], ["updated_at", "2016-01-20 23:33:34.378225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-01-20 23:33:34.391589"], ["updated_at", "2016-01-20 23:33:34.391589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-01-20 23:33:34.393152"], ["updated_at", "2016-01-20 23:33:34.393152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-01-20 23:33:34.394508"], ["updated_at", "2016-01-20 23:33:34.394508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:33:34.402452"], ["updated_at", "2016-01-20 23:33:34.402452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:33:34.407908"], ["updated_at", "2016-01-20 23:33:34.407908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:33:34.410637"], ["updated_at", "2016-01-20 23:33:34.410637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-01-20 23:33:34.413381"], ["updated_at", "2016-01-20 23:33:34.413381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:33:34.416304"], ["updated_at", "2016-01-20 23:33:34.416304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:33:34.417721"], ["updated_at", "2016-01-20 23:33:34.417721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:33:34.419001"], ["updated_at", "2016-01-20 23:33:34.419001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:33:34.420485"], ["updated_at", "2016-01-20 23:33:34.420485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:33:34.421765"], ["updated_at", "2016-01-20 23:33:34.421765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:33:34.423038"], ["updated_at", "2016-01-20 23:33:34.423038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:33:34.425709"], ["updated_at", "2016-01-20 23:33:34.425709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 225], ["created_at", "2016-01-20 23:33:34.427603"], ["updated_at", "2016-01-20 23:33:34.427603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 225], ["created_at", "2016-01-20 23:33:34.429531"], ["updated_at", "2016-01-20 23:33:34.429531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 225], ["created_at", "2016-01-20 23:33:34.431339"], ["updated_at", "2016-01-20 23:33:34.431339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:33:34.446410"], ["updated_at", "2016-01-20 23:33:34.446410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 225], ["created_at", "2016-01-20 23:33:34.448834"], ["updated_at", "2016-01-20 23:33:34.448834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:33:34.452264"], ["updated_at", "2016-01-20 23:33:34.452264"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:36:31.184471"], ["updated_at", "2016-01-20 23:36:31.184471"]]  (31.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 225], ["created_at", "2016-01-20 23:36:31.243496"], ["updated_at", "2016-01-20 23:36:31.243496"]]  (25.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 225], ["created_at", "2016-01-20 23:36:31.283212"], ["updated_at", "2016-01-20 23:36:31.283212"]]  (30.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 225], ["created_at", "2016-01-20 23:36:31.330271"], ["updated_at", "2016-01-20 23:36:31.330271"]]  (21.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 225], ["updated_at", "2016-01-20 23:36:31.353869"], ["id", 225]]  (23.2ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '769881f5c2643f8c5d61f3eb8505586b', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0935f64cb6651be140ec93378f64fb01', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e85f08a5d7cc117145f48dee52a8994d', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '69181d141e1ef6edf9a4ca1da9855bdc', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '613607cd39c6ae6465c9211abc36e86a', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8d7aab12c172d6971696d2fcead015f5', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8d8e72ad44129dc6ebef48de72cc04b9', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f8101fd173c928865ceb291f02aa56f1', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3e4e8df06b8a2a914ad005c37c823a65', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f14fafa8e4a02f7a60b1b8e14cec3c9e', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '83632b4e21291f872593467d05d83842', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '657b7ecfcf2dfc5bd7faa3133a2b82ba', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '069a463b76891fe759b1913e648fdfcb', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a9d5684aa4e16e017091d20f8478a06a', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '251fd5c9fefbf0b7906a46b328770491', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:36:31', '2016-01-20 23:36:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:36:31', '2016-01-20 23:36:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:36:31', '2016-01-20 23:36:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3061bbff288bc2eacc532a3371ce2838', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '5be4ae2c52c8735318bd37814888fb68', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b3e276dd8004fc7abb2ae6432c46af8e', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '96759d116a80156184323b7ee81aae0b', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 743354599) Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 521111460, 'AddressBook', 'b4547a1b207dd923910e9445dc91b153', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 1043218211) Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 1027911713, 'AddressBook', 'e9e6f7a17bb140d327675b95adadc140', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 619673994) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:36:31', '2016-01-20 23:36:31', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:36:31', '2016-01-20 23:36:31', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:36:31', '2016-01-20 23:36:31', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ece5bb567b1957edf1ffd02582020cb2', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bb510adfe0649cc2a23b7eaccb9e5015', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dafabb2e691d4b9f85264cbde0748124', '2016-01-20 23:36:31', '2016-01-20 23:36:31', 410780858)  (29.7ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 225]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 225]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 225]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 225]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 225]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 225]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 225]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 225]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:36:31.693696"], ["updated_at", "2016-01-20 23:36:31.693696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:36:31.695347"], ["updated_at", "2016-01-20 23:36:31.695347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:36:31.696856"], ["updated_at", "2016-01-20 23:36:31.696856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:36:31.709121"], ["updated_at", "2016-01-20 23:36:31.709121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:36:31.711313"], ["updated_at", "2016-01-20 23:36:31.711313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:36:31.713515"], ["updated_at", "2016-01-20 23:36:31.713515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:36:31.717145"], ["updated_at", "2016-01-20 23:36:31.717145"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:36:31.718262"], ["updated_at", "2016-01-20 23:36:31.718262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:36:31.721402"], ["updated_at", "2016-01-20 23:36:31.721402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:36:31.726074"], ["updated_at", "2016-01-20 23:36:31.726074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:36:31.727713"], ["updated_at", "2016-01-20 23:36:31.727713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:36:31.729161"], ["updated_at", "2016-01-20 23:36:31.729161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:36:31.741926"], ["updated_at", "2016-01-20 23:36:31.741926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-01-20 23:36:31.746599"], ["updated_at", "2016-01-20 23:36:31.746599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:36:31.749874"], ["updated_at", "2016-01-20 23:36:31.749874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 226], ["created_at", "2016-01-20 23:36:31.751706"], ["updated_at", "2016-01-20 23:36:31.751706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:36:31.754260"], ["updated_at", "2016-01-20 23:36:31.754260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-01-20 23:36:31.757045"], ["updated_at", "2016-01-20 23:36:31.757045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-01-20 23:36:31.758425"], ["updated_at", "2016-01-20 23:36:31.758425"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-01-20 23:36:31.759965"], ["updated_at", "2016-01-20 23:36:31.759965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:36:31.765783"], ["updated_at", "2016-01-20 23:36:31.765783"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:36:31.766796"], ["updated_at", "2016-01-20 23:36:31.766796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:36:31.769696"], ["updated_at", "2016-01-20 23:36:31.769696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 226], ["created_at", "2016-01-20 23:36:31.771583"], ["updated_at", "2016-01-20 23:36:31.771583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 226], ["created_at", "2016-01-20 23:36:31.773469"], ["updated_at", "2016-01-20 23:36:31.773469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 226], ["created_at", "2016-01-20 23:36:31.775289"], ["updated_at", "2016-01-20 23:36:31.775289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 226], ["updated_at", "2016-01-20 23:36:31.776611"], ["id", 226]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 226]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 226]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 226]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 226]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 226]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 226]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 226]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 226]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]]  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:36:31.799359"], ["updated_at", "2016-01-20 23:36:31.799359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:36:31.803323"], ["updated_at", "2016-01-20 23:36:31.803323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-01-20 23:36:31.806021"], ["updated_at", "2016-01-20 23:36:31.806021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:36:31.808752"], ["updated_at", "2016-01-20 23:36:31.808752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:36:31.810125"], ["updated_at", "2016-01-20 23:36:31.810125"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:36:31.811830"], ["updated_at", "2016-01-20 23:36:31.811830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-01-20 23:36:31.820732"], ["updated_at", "2016-01-20 23:36:31.820732"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-01-20 23:36:31.821954"], ["updated_at", "2016-01-20 23:36:31.821954"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-01-20 23:36:31.822929"], ["updated_at", "2016-01-20 23:36:31.822929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:36:31.836384"], ["updated_at", "2016-01-20 23:36:31.836384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:36:31.838489"], ["updated_at", "2016-01-20 23:36:31.838489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:36:31.839940"], ["updated_at", "2016-01-20 23:36:31.839940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:36:31.841245"], ["updated_at", "2016-01-20 23:36:31.841245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:36:31.842520"], ["updated_at", "2016-01-20 23:36:31.842520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:36:31.843866"], ["updated_at", "2016-01-20 23:36:31.843866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:36:31.845190"], ["updated_at", "2016-01-20 23:36:31.845190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:36:31.848792"], ["updated_at", "2016-01-20 23:36:31.848792"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:36:31.850159"], ["updated_at", "2016-01-20 23:36:31.850159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:36:31.851467"], ["updated_at", "2016-01-20 23:36:31.851467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-01-20 23:36:31.855266"], ["updated_at", "2016-01-20 23:36:31.855266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-01-20 23:36:31.856763"], ["updated_at", "2016-01-20 23:36:31.856763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-01-20 23:36:31.858318"], ["updated_at", "2016-01-20 23:36:31.858318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:36:31.862307"], ["updated_at", "2016-01-20 23:36:31.862307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:36:31.863798"], ["updated_at", "2016-01-20 23:36:31.863798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:36:31.865227"], ["updated_at", "2016-01-20 23:36:31.865227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:36:31.866507"], ["updated_at", "2016-01-20 23:36:31.866507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:36:31.867720"], ["updated_at", "2016-01-20 23:36:31.867720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:36:31.869023"], ["updated_at", "2016-01-20 23:36:31.869023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:36:31.875084"], ["updated_at", "2016-01-20 23:36:31.875084"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 226], ["created_at", "2016-01-20 23:36:31.877200"], ["updated_at", "2016-01-20 23:36:31.877200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 226], ["created_at", "2016-01-20 23:36:31.879178"], ["updated_at", "2016-01-20 23:36:31.879178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 226], ["created_at", "2016-01-20 23:36:31.881089"], ["updated_at", "2016-01-20 23:36:31.881089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:37:30.027337"], ["updated_at", "2016-01-20 23:37:30.027337"]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 226], ["created_at", "2016-01-20 23:37:30.067460"], ["updated_at", "2016-01-20 23:37:30.067460"]]  (17.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 226], ["created_at", "2016-01-20 23:37:30.098448"], ["updated_at", "2016-01-20 23:37:30.098448"]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 226], ["created_at", "2016-01-20 23:37:30.130254"], ["updated_at", "2016-01-20 23:37:30.130254"]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 226], ["updated_at", "2016-01-20 23:37:30.145582"], ["id", 226]]  (12.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'accee2f1ec16d54b75ebd8bf016c98e8', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e08bbd95f904abb55952e81a7b6e31c4', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ac72c22a4018b7f248574576eb02295b', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b1b942c21f47946bfe511d1d54c8e3c2', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd6cced4370090c0663169586fdc7caaa', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3755f69a7d6639b1b3fa021fdf2f8d3d', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c0938acc95ad7d39001d2c3ff1841d59', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '364db89d9225852f5b7c8e886f009e58', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a7758f505d308a47489ad7ed91aaace8', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5ff3a439b2c0da680860a8d1cfd3f5da', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5019ee829d090ebb0e4fd015104372fa', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'eca7590498a705c31389ef1be903fe93', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6188d11ae84209200c5f5556acede16f', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ff419c0c22dd663e0503d42f75ecbea6', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4148f3d109a69d5142695ddf899d172e', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:37:30', '2016-01-20 23:37:30', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:37:30', '2016-01-20 23:37:30', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:37:30', '2016-01-20 23:37:30', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5ac6fdb64f2397057d35812054783a8f', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f52c2473ae3d164f4feb5c92c64e3e9f', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cd596cf28949c64fc107ecb652876f52', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '1a1e4759a6efdc63618202898fc9d4f3', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:37:30', '2016-01-20 23:37:30', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:37:30', '2016-01-20 23:37:30', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:37:30', '2016-01-20 23:37:30', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e3351515779d18cf73f331acee2d9a1c', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c69d8c81f835d8072fcc14b9d1bb6115', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'adb89622a6de45fb73ed6dcad7ee3584', '2016-01-20 23:37:30', '2016-01-20 23:37:30', 410780858)  (20.4ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:37:30.356038"], ["updated_at", "2016-01-20 23:37:30.356038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:37:30.357697"], ["updated_at", "2016-01-20 23:37:30.357697"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:37:30.359289"], ["updated_at", "2016-01-20 23:37:30.359289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:37:30.361971"], ["updated_at", "2016-01-20 23:37:30.361971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:37:30.364237"], ["updated_at", "2016-01-20 23:37:30.364237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:37:30.366424"], ["updated_at", "2016-01-20 23:37:30.366424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:37:30.376080"], ["updated_at", "2016-01-20 23:37:30.376080"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:37:30.377736"], ["updated_at", "2016-01-20 23:37:30.377736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:37:30.381851"], ["updated_at", "2016-01-20 23:37:30.381851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:37:30.391668"], ["updated_at", "2016-01-20 23:37:30.391668"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:37:30.392720"], ["updated_at", "2016-01-20 23:37:30.392720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-01-20 23:37:30.401618"], ["updated_at", "2016-01-20 23:37:30.401618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-01-20 23:37:30.403354"], ["updated_at", "2016-01-20 23:37:30.403354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-01-20 23:37:30.404844"], ["updated_at", "2016-01-20 23:37:30.404844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.2ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:37:30.411456"], ["updated_at", "2016-01-20 23:37:30.411456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:37:30.412913"], ["updated_at", "2016-01-20 23:37:30.412913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:37:30.414237"], ["updated_at", "2016-01-20 23:37:30.414237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:37:30.421288"], ["updated_at", "2016-01-20 23:37:30.421288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:37:30.423930"], ["updated_at", "2016-01-20 23:37:30.423930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:37:30.425909"], ["updated_at", "2016-01-20 23:37:30.425909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 227], ["created_at", "2016-01-20 23:37:30.427943"], ["updated_at", "2016-01-20 23:37:30.427943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 227], ["created_at", "2016-01-20 23:37:30.429799"], ["updated_at", "2016-01-20 23:37:30.429799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 227], ["created_at", "2016-01-20 23:37:30.431536"], ["updated_at", "2016-01-20 23:37:30.431536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 227], ["updated_at", "2016-01-20 23:37:30.432870"], ["id", 227]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 227]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 227]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 227]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 227]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 227]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 227]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 227]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 227]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:37:30.460656"], ["updated_at", "2016-01-20 23:37:30.460656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:37:30.463406"], ["updated_at", "2016-01-20 23:37:30.463406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-01-20 23:37:30.466077"], ["updated_at", "2016-01-20 23:37:30.466077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-01-20 23:37:30.468979"], ["updated_at", "2016-01-20 23:37:30.468979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:37:30.471080"], ["updated_at", "2016-01-20 23:37:30.471080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 227], ["created_at", "2016-01-20 23:37:30.472945"], ["updated_at", "2016-01-20 23:37:30.472945"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:37:30.475553"], ["updated_at", "2016-01-20 23:37:30.475553"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:37:30.483531"], ["updated_at", "2016-01-20 23:37:30.483531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:37:30.485046"], ["updated_at", "2016-01-20 23:37:30.485046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:37:30.486421"], ["updated_at", "2016-01-20 23:37:30.486421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:37:30.495203"], ["updated_at", "2016-01-20 23:37:30.495203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 227], ["created_at", "2016-01-20 23:37:30.497329"], ["updated_at", "2016-01-20 23:37:30.497329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 227], ["created_at", "2016-01-20 23:37:30.499333"], ["updated_at", "2016-01-20 23:37:30.499333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 227], ["created_at", "2016-01-20 23:37:30.501233"], ["updated_at", "2016-01-20 23:37:30.501233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-01-20 23:37:30.519956"], ["updated_at", "2016-01-20 23:37:30.519956"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-01-20 23:37:30.521174"], ["updated_at", "2016-01-20 23:37:30.521174"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-01-20 23:37:30.522173"], ["updated_at", "2016-01-20 23:37:30.522173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:37:30.542101"], ["updated_at", "2016-01-20 23:37:30.542101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:37:30.543634"], ["updated_at", "2016-01-20 23:37:30.543634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:37:30.545011"], ["updated_at", "2016-01-20 23:37:30.545011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-01-20 23:37:30.551894"], ["updated_at", "2016-01-20 23:37:30.551894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-01-20 23:37:30.553364"], ["updated_at", "2016-01-20 23:37:30.553364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-01-20 23:37:30.554759"], ["updated_at", "2016-01-20 23:37:30.554759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:37:30.557701"], ["updated_at", "2016-01-20 23:37:30.557701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:37:30.559142"], ["updated_at", "2016-01-20 23:37:30.559142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:37:30.560498"], ["updated_at", "2016-01-20 23:37:30.560498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:37:30.561709"], ["updated_at", "2016-01-20 23:37:30.561709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:37:30.562999"], ["updated_at", "2016-01-20 23:37:30.562999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:37:30.564282"], ["updated_at", "2016-01-20 23:37:30.564282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:37:30.571470"], ["updated_at", "2016-01-20 23:37:30.571470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:37:30.572920"], ["updated_at", "2016-01-20 23:37:30.572920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:37:30.574568"], ["updated_at", "2016-01-20 23:37:30.574568"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:37:30.576176"], ["updated_at", "2016-01-20 23:37:30.576176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:37:30.577476"], ["updated_at", "2016-01-20 23:37:30.577476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:37:30.578843"], ["updated_at", "2016-01-20 23:37:30.578843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 226]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 226]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 226]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 226]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 226]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 226]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 226]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 226]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:01.844706"], ["updated_at", "2016-01-20 23:40:01.844706"]]  (19.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 227], ["created_at", "2016-01-20 23:40:01.891416"], ["updated_at", "2016-01-20 23:40:01.891416"]]  (20.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 227], ["created_at", "2016-01-20 23:40:01.929689"], ["updated_at", "2016-01-20 23:40:01.929689"]]  (20.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 227], ["created_at", "2016-01-20 23:40:01.966637"], ["updated_at", "2016-01-20 23:40:01.966637"]]  (20.1ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 227], ["updated_at", "2016-01-20 23:40:01.989265"], ["id", 227]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5f3d455c5f10b7d16bb8c2ca559a6a8b', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bea4081308717ff6d90e0f361b127c33', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '955962b84ff9da718963667c49bcde81', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a2271fb6a8cdb8caf536ee00ea7b24a1', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '958e06431ec8164a922db04d8d6d2eca', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '55067e53762f39c62be0b1f2856e2545', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '449cf1b29dc3db8bca8224dd11a3ea87', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '40745c3b39ebddbcd20b1010d92fd42a', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fcbe1ec7986a7c6d3d3eff4f82fbc869', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bedb3bf6657d1fc644d05911c26991e5', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '398dd18a3db9c39c4e3bde429e08f117', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '3328bc21969f3b6ba8424201cdb90af8', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2453f014c44494cfc3ece324823cac23', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8045875d4770ad941f6f1924e69f2219', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '41ab948dc21f4787d4266f668681dac8', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:40:02', '2016-01-20 23:40:02', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:40:02', '2016-01-20 23:40:02', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:40:02', '2016-01-20 23:40:02', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '14b708e836641412fe8789a983c8a142', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '39a1022bdf6ba161a9783f84894b414f', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bc23df87f2fc2c7f53fd05afb30e2850', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '3ec18495885653ffe4768bb804579445', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:40:02', '2016-01-20 23:40:02', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:40:02', '2016-01-20 23:40:02', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:40:02', '2016-01-20 23:40:02', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3560a5dc4d0a9f1e5903575c9c3e865e', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9e8903ef30749970894a230bc37301a7', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '76e30b90f2a59d5a9abcc16b8b238344', '2016-01-20 23:40:02', '2016-01-20 23:40:02', 410780858)  (29.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:40:02.239812"], ["updated_at", "2016-01-20 23:40:02.239812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:40:02.241327"], ["updated_at", "2016-01-20 23:40:02.241327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:40:02.242574"], ["updated_at", "2016-01-20 23:40:02.242574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:40:02.246270"], ["updated_at", "2016-01-20 23:40:02.246270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:40:02.249646"], ["updated_at", "2016-01-20 23:40:02.249646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-01-20 23:40:02.252351"], ["updated_at", "2016-01-20 23:40:02.252351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:40:02.255208"], ["updated_at", "2016-01-20 23:40:02.255208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:40:02.256656"], ["updated_at", "2016-01-20 23:40:02.256656"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:40:02.258002"], ["updated_at", "2016-01-20 23:40:02.258002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:40:02.259229"], ["updated_at", "2016-01-20 23:40:02.259229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:40:02.260701"], ["updated_at", "2016-01-20 23:40:02.260701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:40:02.261953"], ["updated_at", "2016-01-20 23:40:02.261953"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:02.266534"], ["updated_at", "2016-01-20 23:40:02.266534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 228], ["created_at", "2016-01-20 23:40:02.268638"], ["updated_at", "2016-01-20 23:40:02.268638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:40:02.271378"], ["updated_at", "2016-01-20 23:40:02.271378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:40:02.275353"], ["updated_at", "2016-01-20 23:40:02.275353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:40:02.276837"], ["updated_at", "2016-01-20 23:40:02.276837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:40:02.278131"], ["updated_at", "2016-01-20 23:40:02.278131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:40:02.279360"], ["updated_at", "2016-01-20 23:40:02.279360"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:40:02.280608"], ["updated_at", "2016-01-20 23:40:02.280608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:40:02.281867"], ["updated_at", "2016-01-20 23:40:02.281867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:40:02.286348"], ["updated_at", "2016-01-20 23:40:02.286348"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:40:02.287682"], ["updated_at", "2016-01-20 23:40:02.287682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:40:02.296067"], ["updated_at", "2016-01-20 23:40:02.296067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:40:02.298140"], ["updated_at", "2016-01-20 23:40:02.298140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:02.300155"], ["updated_at", "2016-01-20 23:40:02.300155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:40:02.303004"], ["updated_at", "2016-01-20 23:40:02.303004"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:40:02.303982"], ["updated_at", "2016-01-20 23:40:02.303982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:02.306954"], ["updated_at", "2016-01-20 23:40:02.306954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:02.309256"], ["updated_at", "2016-01-20 23:40:02.309256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 228], ["created_at", "2016-01-20 23:40:02.311016"], ["updated_at", "2016-01-20 23:40:02.311016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 228], ["created_at", "2016-01-20 23:40:02.312950"], ["updated_at", "2016-01-20 23:40:02.312950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 228], ["created_at", "2016-01-20 23:40:02.314841"], ["updated_at", "2016-01-20 23:40:02.314841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:40:02.330171"], ["updated_at", "2016-01-20 23:40:02.330171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:40:02.331634"], ["updated_at", "2016-01-20 23:40:02.331634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:40:02.333151"], ["updated_at", "2016-01-20 23:40:02.333151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-01-20 23:40:02.348018"], ["updated_at", "2016-01-20 23:40:02.348018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-01-20 23:40:02.349686"], ["updated_at", "2016-01-20 23:40:02.349686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-01-20 23:40:02.351042"], ["updated_at", "2016-01-20 23:40:02.351042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-01-20 23:40:02.361913"], ["updated_at", "2016-01-20 23:40:02.361913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-01-20 23:40:02.363441"], ["updated_at", "2016-01-20 23:40:02.363441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-01-20 23:40:02.364949"], ["updated_at", "2016-01-20 23:40:02.364949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-01-20 23:40:02.374866"], ["updated_at", "2016-01-20 23:40:02.374866"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-01-20 23:40:02.376043"], ["updated_at", "2016-01-20 23:40:02.376043"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-01-20 23:40:02.377000"], ["updated_at", "2016-01-20 23:40:02.377000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:40:02.391099"], ["updated_at", "2016-01-20 23:40:02.391099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:02.393750"], ["updated_at", "2016-01-20 23:40:02.393750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:40:02.396866"], ["updated_at", "2016-01-20 23:40:02.396866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:40:02.398193"], ["updated_at", "2016-01-20 23:40:02.398193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:40:02.399411"], ["updated_at", "2016-01-20 23:40:02.399411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:40:02.406318"], ["updated_at", "2016-01-20 23:40:02.406318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:40:02.407656"], ["updated_at", "2016-01-20 23:40:02.407656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:40:02.408954"], ["updated_at", "2016-01-20 23:40:02.408954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:02.414360"], ["updated_at", "2016-01-20 23:40:02.414360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 228], ["created_at", "2016-01-20 23:40:02.416378"], ["updated_at", "2016-01-20 23:40:02.416378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 228], ["created_at", "2016-01-20 23:40:02.418338"], ["updated_at", "2016-01-20 23:40:02.418338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 228], ["created_at", "2016-01-20 23:40:02.420572"], ["updated_at", "2016-01-20 23:40:02.420572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 228], ["updated_at", "2016-01-20 23:40:02.422133"], ["id", 228]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 228]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 228]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 228]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 228]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 228]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 228]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 228]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 228]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-01-20 23:40:02.447125"], ["updated_at", "2016-01-20 23:40:02.447125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 227]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 227]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 227]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 227]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 227]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 227]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 227]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 227]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:16.582039"], ["updated_at", "2016-01-20 23:40:16.582039"]]  (13.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 228], ["created_at", "2016-01-20 23:40:16.618256"], ["updated_at", "2016-01-20 23:40:16.618256"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 228], ["created_at", "2016-01-20 23:40:16.645846"], ["updated_at", "2016-01-20 23:40:16.645846"]]  (12.7ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 228], ["created_at", "2016-01-20 23:40:16.675528"], ["updated_at", "2016-01-20 23:40:16.675528"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 228], ["updated_at", "2016-01-20 23:40:16.692313"], ["id", 228]]  (17.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ad55ccfd5fbeffce1a59a3fa30a9880b', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e2ece24b1abd2fd2b2d00a6460830776', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '26363a970f18839cfd22820b2036d686', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c4017df5a278e64e40bcd5556c676d36', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a0ed6b2b3d6bc27ab667c420e61a3033', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c201b0a4871dc044d081b7e4edb7489', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '967ee421bb8ca2b23e7a0de5457e9b99', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '93aac7653b63a3a35ebc40a18b451e66', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '49c6dac955746c4cb5c533eae695fa07', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '90f5fd2680696a8375cfaa77736ed42d', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c0bc10c64373324de1dede0184b93491', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fcebfe0e40021f4bceb005afaa04cf66', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '07d652763cab008e6da01398729a7a92', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '712fe2dd81b1918dfb7f7307e96d7bab', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9ac42dd31e9724ba07ef534e5b478365', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:40:16', '2016-01-20 23:40:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:40:16', '2016-01-20 23:40:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:40:16', '2016-01-20 23:40:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ce09454d31cd0aa9f0497ebc67923a08', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6d1ae83e78afa9248be593107cf9f66e', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '44992ea46837fc49458ac6ddcc768578', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '82113be936dfc17ab7f3f6baaf1a4d28', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:40:16', '2016-01-20 23:40:16', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:40:16', '2016-01-20 23:40:16', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:40:16', '2016-01-20 23:40:16', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c23f78640e6475bfd6cb454ddf88a7a6', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4a1f9a9789cf0d9e2f48e22b0ab14019', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4e91f8254f5582777c0ab34d607617a8', '2016-01-20 23:40:16', '2016-01-20 23:40:16', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 228]] Alpha Load (0.2ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 228]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 228]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 228]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 228]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 228]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 228]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 228]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-01-20 23:40:16.975807"], ["updated_at", "2016-01-20 23:40:16.975807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-01-20 23:40:16.977496"], ["updated_at", "2016-01-20 23:40:16.977496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-01-20 23:40:16.978988"], ["updated_at", "2016-01-20 23:40:16.978988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:40:16.985406"], ["updated_at", "2016-01-20 23:40:16.985406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:40:16.987877"], ["updated_at", "2016-01-20 23:40:16.987877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:16.990108"], ["updated_at", "2016-01-20 23:40:16.990108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:40:16.993503"], ["updated_at", "2016-01-20 23:40:16.993503"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:40:16.994770"], ["updated_at", "2016-01-20 23:40:16.994770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:16.998256"], ["updated_at", "2016-01-20 23:40:16.998256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:40:17.001922"], ["updated_at", "2016-01-20 23:40:17.001922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:40:17.005959"], ["updated_at", "2016-01-20 23:40:17.005959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-01-20 23:40:17.008728"], ["updated_at", "2016-01-20 23:40:17.008728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:17.015529"], ["updated_at", "2016-01-20 23:40:17.015529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 229], ["created_at", "2016-01-20 23:40:17.017544"], ["updated_at", "2016-01-20 23:40:17.017544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 229], ["created_at", "2016-01-20 23:40:17.019530"], ["updated_at", "2016-01-20 23:40:17.019530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 229], ["created_at", "2016-01-20 23:40:17.021443"], ["updated_at", "2016-01-20 23:40:17.021443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 229], ["updated_at", "2016-01-20 23:40:17.022850"], ["id", 229]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 229]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 229]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 229]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 229]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 229]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 229]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 229]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 229]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]]  (0.4ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:40:17.055148"], ["updated_at", "2016-01-20 23:40:17.055148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:40:17.056679"], ["updated_at", "2016-01-20 23:40:17.056679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:40:17.057962"], ["updated_at", "2016-01-20 23:40:17.057962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:40:17.059323"], ["updated_at", "2016-01-20 23:40:17.059323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:40:17.060625"], ["updated_at", "2016-01-20 23:40:17.060625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:40:17.061863"], ["updated_at", "2016-01-20 23:40:17.061863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:40:17.076270"], ["updated_at", "2016-01-20 23:40:17.076270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:40:17.077962"], ["updated_at", "2016-01-20 23:40:17.077962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:40:17.079276"], ["updated_at", "2016-01-20 23:40:17.079276"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:40:17.080553"], ["updated_at", "2016-01-20 23:40:17.080553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:40:17.081784"], ["updated_at", "2016-01-20 23:40:17.081784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:40:17.083088"], ["updated_at", "2016-01-20 23:40:17.083088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:40:17.085869"], ["updated_at", "2016-01-20 23:40:17.085869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:40:17.087275"], ["updated_at", "2016-01-20 23:40:17.087275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:40:17.088623"], ["updated_at", "2016-01-20 23:40:17.088623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:17.092095"], ["updated_at", "2016-01-20 23:40:17.092095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 229], ["created_at", "2016-01-20 23:40:17.093998"], ["updated_at", "2016-01-20 23:40:17.093998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 229], ["created_at", "2016-01-20 23:40:17.096046"], ["updated_at", "2016-01-20 23:40:17.096046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 229], ["created_at", "2016-01-20 23:40:17.097826"], ["updated_at", "2016-01-20 23:40:17.097826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-01-20 23:40:17.107898"], ["updated_at", "2016-01-20 23:40:17.107898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:40:17.116127"], ["updated_at", "2016-01-20 23:40:17.116127"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:40:17.117310"], ["updated_at", "2016-01-20 23:40:17.117310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:40:17.120364"], ["updated_at", "2016-01-20 23:40:17.120364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:40:17.121952"], ["updated_at", "2016-01-20 23:40:17.121952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:40:17.123279"], ["updated_at", "2016-01-20 23:40:17.123279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:40:17.130307"], ["updated_at", "2016-01-20 23:40:17.130307"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:40:17.131701"], ["updated_at", "2016-01-20 23:40:17.131701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:40:17.133065"], ["updated_at", "2016-01-20 23:40:17.133065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:17.136751"], ["updated_at", "2016-01-20 23:40:17.136751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 229], ["created_at", "2016-01-20 23:40:17.138939"], ["updated_at", "2016-01-20 23:40:17.138939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:40:17.141584"], ["updated_at", "2016-01-20 23:40:17.141584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-01-20 23:40:17.150752"], ["updated_at", "2016-01-20 23:40:17.150752"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-01-20 23:40:17.151883"], ["updated_at", "2016-01-20 23:40:17.151883"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-01-20 23:40:17.152868"], ["updated_at", "2016-01-20 23:40:17.152868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:40:17.169815"], ["updated_at", "2016-01-20 23:40:17.169815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:40:17.174587"], ["updated_at", "2016-01-20 23:40:17.174587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:40:17.176720"], ["updated_at", "2016-01-20 23:40:17.176720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:40:17.178177"], ["updated_at", "2016-01-20 23:40:17.178177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:40:17.179520"], ["updated_at", "2016-01-20 23:40:17.179520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-01-20 23:40:17.182362"], ["updated_at", "2016-01-20 23:40:17.182362"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-01-20 23:40:17.183861"], ["updated_at", "2016-01-20 23:40:17.183861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-01-20 23:40:17.185236"], ["updated_at", "2016-01-20 23:40:17.185236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:44:44.030368"], ["updated_at", "2016-01-20 23:44:44.030368"]]  (26.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 229], ["created_at", "2016-01-20 23:44:44.083028"], ["updated_at", "2016-01-20 23:44:44.083028"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 229], ["created_at", "2016-01-20 23:44:44.108820"], ["updated_at", "2016-01-20 23:44:44.108820"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 229], ["created_at", "2016-01-20 23:44:44.135550"], ["updated_at", "2016-01-20 23:44:44.135550"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 229], ["updated_at", "2016-01-20 23:44:44.149721"], ["id", 229]]  (12.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '704132761da36e5be0e709665095f18d', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd4e12c661f0982daf26ea9a4c9440309', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eedcdd0147503a622b3595ca18783947', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a01504a134fdbe2ea00dd885b6a1e6f5', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8fd56e680e6ddb099c8539c161123a16', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4abfb67d7533f62195da55f3d6fa7dba', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '99b9f77938c7f3799c94a741ea691a5a', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '89e5d5bfd7450ae7f66e550070318d3e', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '60d8faafb502c402ec2c5e23076126d8', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1e001806a3c575b4a046115777622dfa', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e4e26063721b1abc31eb3e3b510ca83d', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9a15c504c9a2c99fc6d764348216d2a3', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a4efd69d82004f679786bd83b8e3d34e', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'eb69d8ed9e7b7e3273a1db14e1f339c2', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '58c78cb05874af434821728ccf954c85', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:44:44', '2016-01-20 23:44:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:44:44', '2016-01-20 23:44:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:44:44', '2016-01-20 23:44:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7280ba1809edb5ff8579f0a59e5b7211', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '43900062168a511d8eb74bab4d238aa0', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c024f8bdb310059bff975356cc7de935', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '2cdb461245f4705b0788bf23662c52ec', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:44:44', '2016-01-20 23:44:44', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:44:44', '2016-01-20 23:44:44', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:44:44', '2016-01-20 23:44:44', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ad37b655c172e1a85b8e1a11c90e3771', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f1149b068c3cb40314aed8442309923c', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cbcbba069f3370479c1f9e1a692065e2', '2016-01-20 23:44:44', '2016-01-20 23:44:44', 410780858)  (13.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 229]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 229]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 229]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 229]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 229]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 229]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 229]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 229]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:44:44.474707"], ["updated_at", "2016-01-20 23:44:44.474707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:44:44.476284"], ["updated_at", "2016-01-20 23:44:44.476284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:44:44.477570"], ["updated_at", "2016-01-20 23:44:44.477570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:44:44.484530"], ["updated_at", "2016-01-20 23:44:44.484530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:44:44.485839"], ["updated_at", "2016-01-20 23:44:44.485839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:44:44.486997"], ["updated_at", "2016-01-20 23:44:44.486997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:44:44.489708"], ["updated_at", "2016-01-20 23:44:44.489708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:44:44.491050"], ["updated_at", "2016-01-20 23:44:44.491050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:44:44.492353"], ["updated_at", "2016-01-20 23:44:44.492353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:44:44.498794"], ["updated_at", "2016-01-20 23:44:44.498794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 230], ["created_at", "2016-01-20 23:44:44.500778"], ["updated_at", "2016-01-20 23:44:44.500778"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 230], ["created_at", "2016-01-20 23:44:44.502663"], ["updated_at", "2016-01-20 23:44:44.502663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 230], ["created_at", "2016-01-20 23:44:44.504584"], ["updated_at", "2016-01-20 23:44:44.504584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 230], ["updated_at", "2016-01-20 23:44:44.506034"], ["id", 230]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 230]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 230]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 230]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 230]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 230]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 230]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 230]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 230]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]]  (0.4ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:44:44.528511"], ["updated_at", "2016-01-20 23:44:44.528511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:44:44.530762"], ["updated_at", "2016-01-20 23:44:44.530762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:44:44.532901"], ["updated_at", "2016-01-20 23:44:44.532901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:44:44.535999"], ["updated_at", "2016-01-20 23:44:44.535999"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:44:44.537069"], ["updated_at", "2016-01-20 23:44:44.537069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:44:44.540241"], ["updated_at", "2016-01-20 23:44:44.540241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:44:44.548908"], ["updated_at", "2016-01-20 23:44:44.548908"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:44:44.549949"], ["updated_at", "2016-01-20 23:44:44.549949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:44:44.552925"], ["updated_at", "2016-01-20 23:44:44.552925"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:44:44.554460"], ["updated_at", "2016-01-20 23:44:44.554460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:44:44.555802"], ["updated_at", "2016-01-20 23:44:44.555802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:44:44.557007"], ["updated_at", "2016-01-20 23:44:44.557007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:44:44.558235"], ["updated_at", "2016-01-20 23:44:44.558235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:44:44.559441"], ["updated_at", "2016-01-20 23:44:44.559441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-01-20 23:44:44.564353"], ["updated_at", "2016-01-20 23:44:44.564353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-01-20 23:44:44.565863"], ["updated_at", "2016-01-20 23:44:44.565863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-01-20 23:44:44.567160"], ["updated_at", "2016-01-20 23:44:44.567160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:44:44.570344"], ["updated_at", "2016-01-20 23:44:44.570344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:44:44.571882"], ["updated_at", "2016-01-20 23:44:44.571882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:44:44.573200"], ["updated_at", "2016-01-20 23:44:44.573200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:44:44.579654"], ["updated_at", "2016-01-20 23:44:44.579654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 230], ["created_at", "2016-01-20 23:44:44.581701"], ["updated_at", "2016-01-20 23:44:44.581701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 230], ["created_at", "2016-01-20 23:44:44.583588"], ["updated_at", "2016-01-20 23:44:44.583588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 230], ["created_at", "2016-01-20 23:44:44.585512"], ["updated_at", "2016-01-20 23:44:44.585512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:44:44.594347"], ["updated_at", "2016-01-20 23:44:44.594347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:44:44.597068"], ["updated_at", "2016-01-20 23:44:44.597068"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-01-20 23:44:44.599943"], ["updated_at", "2016-01-20 23:44:44.599943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-01-20 23:44:44.604078"], ["updated_at", "2016-01-20 23:44:44.604078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-01-20 23:44:44.608132"], ["updated_at", "2016-01-20 23:44:44.608132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-01-20 23:44:44.609703"], ["updated_at", "2016-01-20 23:44:44.609703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-01-20 23:44:44.611116"], ["updated_at", "2016-01-20 23:44:44.611116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-01-20 23:44:44.623335"], ["updated_at", "2016-01-20 23:44:44.623335"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-01-20 23:44:44.624534"], ["updated_at", "2016-01-20 23:44:44.624534"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-01-20 23:44:44.625496"], ["updated_at", "2016-01-20 23:44:44.625496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:44:44.638803"], ["updated_at", "2016-01-20 23:44:44.638803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:44:44.641020"], ["updated_at", "2016-01-20 23:44:44.641020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:44:44.642414"], ["updated_at", "2016-01-20 23:44:44.642414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:44:44.643697"], ["updated_at", "2016-01-20 23:44:44.643697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:44:44.652592"], ["updated_at", "2016-01-20 23:44:44.652592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 230], ["created_at", "2016-01-20 23:44:44.654879"], ["updated_at", "2016-01-20 23:44:44.654879"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:44:44.657547"], ["updated_at", "2016-01-20 23:44:44.657547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:44:44.663404"], ["updated_at", "2016-01-20 23:44:44.663404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:44:44.666268"], ["updated_at", "2016-01-20 23:44:44.666268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:44:44.667672"], ["updated_at", "2016-01-20 23:44:44.667672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:44:44.668985"], ["updated_at", "2016-01-20 23:44:44.668985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:45:33.424268"], ["updated_at", "2016-01-20 23:45:33.424268"]]  (23.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 230], ["created_at", "2016-01-20 23:45:33.478942"], ["updated_at", "2016-01-20 23:45:33.478942"]]  (24.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 230], ["created_at", "2016-01-20 23:45:33.516079"], ["updated_at", "2016-01-20 23:45:33.516079"]]  (31.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 230], ["created_at", "2016-01-20 23:45:33.560582"], ["updated_at", "2016-01-20 23:45:33.560582"]]  (24.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 230], ["updated_at", "2016-01-20 23:45:33.587848"], ["id", 230]]  (30.3ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8ba9a340f3be16b922ca9f365897f254', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e87a0df8aaead346176d66c3208fd70d', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2cf8a62345744601815e524f96314045', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c2df81841f5718e87fa88369d21599b6', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7ffb20a75c5e779bebd2f48147758185', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7287a78dd5a8d0824827240f67ee2e71', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8fdf8f8afd8aafc2c59b4bfaf87b7dd2', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '639b7289e6471ec9625db31282ab7c5e', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ed1c3ce232f275ee8f228ec36929d731', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c82a51cbf61608fe9aeda9a884712ebf', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '06c9cc07ed887ded0a10098bde6305f7', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a98e7d5793799cf342628d07d0ef9088', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dace217ba755cf8372b34f838ede342d', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ff132f39b9d14ebcd76c65efbf5a61ba', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ee19f5bb567fa2158da6a84c168421b3', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:45:33', '2016-01-20 23:45:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:45:33', '2016-01-20 23:45:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:45:33', '2016-01-20 23:45:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a5ed5b76ce6995c08783d58de088f588', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '704bd1f7443e12a02ee6e5c646c814f2', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c650df948ac361d6c0a47370432d6d1b', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '11c38f3e7e46bc0f9e4b654ec14de657', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:45:33', '2016-01-20 23:45:33', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:45:33', '2016-01-20 23:45:33', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-01-20 23:45:33', '2016-01-20 23:45:33', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7a803977ef53f193413d96a35f00b511', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f9488f3d3b8cc526e9e2c484378c48c8', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '007bdce8d7707576b4acaf4f4b468528', '2016-01-20 23:45:33', '2016-01-20 23:45:33', 410780858)  (30.5ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.4ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:45:33.779028"], ["updated_at", "2016-01-20 23:45:33.779028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:45:33.780776"], ["updated_at", "2016-01-20 23:45:33.780776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:45:33.782169"], ["updated_at", "2016-01-20 23:45:33.782169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:45:33.807061"], ["updated_at", "2016-01-20 23:45:33.807061"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:45:33.808405"], ["updated_at", "2016-01-20 23:45:33.808405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:45:33.811898"], ["updated_at", "2016-01-20 23:45:33.811898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:45:33.815500"], ["updated_at", "2016-01-20 23:45:33.815500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-01-20 23:45:33.818202"], ["updated_at", "2016-01-20 23:45:33.818202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-01-20 23:45:33.830633"], ["updated_at", "2016-01-20 23:45:33.830633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:45:33.833146"], ["updated_at", "2016-01-20 23:45:33.833146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:45:33.834501"], ["updated_at", "2016-01-20 23:45:33.834501"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:45:33.836246"], ["updated_at", "2016-01-20 23:45:33.836246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:45:33.837776"], ["updated_at", "2016-01-20 23:45:33.837776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:45:33.839145"], ["updated_at", "2016-01-20 23:45:33.839145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:45:33.840543"], ["updated_at", "2016-01-20 23:45:33.840543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-01-20 23:45:33.861407"], ["updated_at", "2016-01-20 23:45:33.861407"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-01-20 23:45:33.863053"], ["updated_at", "2016-01-20 23:45:33.863053"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-01-20 23:45:33.864413"], ["updated_at", "2016-01-20 23:45:33.864413"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:45:33.883090"], ["updated_at", "2016-01-20 23:45:33.883090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-01-20 23:45:33.886150"], ["updated_at", "2016-01-20 23:45:33.886150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-01-20 23:45:33.887670"], ["updated_at", "2016-01-20 23:45:33.887670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-01-20 23:45:33.889214"], ["updated_at", "2016-01-20 23:45:33.889214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:45:33.892633"], ["updated_at", "2016-01-20 23:45:33.892633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:45:33.894050"], ["updated_at", "2016-01-20 23:45:33.894050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:45:33.895401"], ["updated_at", "2016-01-20 23:45:33.895401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:45:33.896682"], ["updated_at", "2016-01-20 23:45:33.896682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:45:33.897896"], ["updated_at", "2016-01-20 23:45:33.897896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:45:33.899092"], ["updated_at", "2016-01-20 23:45:33.899092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:45:33.902870"], ["updated_at", "2016-01-20 23:45:33.902870"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 231], ["created_at", "2016-01-20 23:45:33.904997"], ["updated_at", "2016-01-20 23:45:33.904997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 231], ["created_at", "2016-01-20 23:45:33.906869"], ["updated_at", "2016-01-20 23:45:33.906869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 231], ["created_at", "2016-01-20 23:45:33.908648"], ["updated_at", "2016-01-20 23:45:33.908648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:45:33.917504"], ["updated_at", "2016-01-20 23:45:33.917504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-01-20 23:45:33.920926"], ["updated_at", "2016-01-20 23:45:33.920926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-01-20 23:45:33.922555"], ["updated_at", "2016-01-20 23:45:33.922555"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-01-20 23:45:33.924290"], ["updated_at", "2016-01-20 23:45:33.924290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:45:33.927473"], ["updated_at", "2016-01-20 23:45:33.927473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:45:33.929759"], ["updated_at", "2016-01-20 23:45:33.929759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:45:33.931887"], ["updated_at", "2016-01-20 23:45:33.931887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-01-20 23:45:33.935201"], ["updated_at", "2016-01-20 23:45:33.935201"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-01-20 23:45:33.936341"], ["updated_at", "2016-01-20 23:45:33.936341"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:45:33.939604"], ["updated_at", "2016-01-20 23:45:33.939604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:45:33.943911"], ["updated_at", "2016-01-20 23:45:33.943911"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:45:33.945351"], ["updated_at", "2016-01-20 23:45:33.945351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:45:33.946654"], ["updated_at", "2016-01-20 23:45:33.946654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-01-20 23:45:33.952500"], ["updated_at", "2016-01-20 23:45:33.952500"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:45:33.953873"], ["updated_at", "2016-01-20 23:45:33.953873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-01-20 23:45:33.955340"], ["updated_at", "2016-01-20 23:45:33.955340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:45:33.957669"], ["updated_at", "2016-01-20 23:45:33.957669"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 231], ["created_at", "2016-01-20 23:45:33.959632"], ["updated_at", "2016-01-20 23:45:33.959632"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 231], ["created_at", "2016-01-20 23:45:33.961934"], ["updated_at", "2016-01-20 23:45:33.961934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 231], ["created_at", "2016-01-20 23:45:33.964158"], ["updated_at", "2016-01-20 23:45:33.964158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 231], ["updated_at", "2016-01-20 23:45:33.965868"], ["id", 231]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 231]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 231]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 231]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 231]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 231]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 231]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 231]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 231]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]]  (0.5ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-01-20 23:45:33.994250"], ["updated_at", "2016-01-20 23:45:33.994250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-01-20 23:45:33.995749"], ["updated_at", "2016-01-20 23:45:33.995749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-01-20 23:45:33.997187"], ["updated_at", "2016-01-20 23:45:33.997187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-01-20 23:45:34.000991"], ["updated_at", "2016-01-20 23:45:34.000991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 231], ["created_at", "2016-01-20 23:45:34.002897"], ["updated_at", "2016-01-20 23:45:34.002897"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-01-20 23:45:34.005427"], ["updated_at", "2016-01-20 23:45:34.005427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 230]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 230]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 230]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 230]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 230]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 230]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 230]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 230]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (5.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:20:58.627454"], ["updated_at", "2016-12-09 11:20:58.627454"]]  (46.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 231], ["created_at", "2016-12-09 11:20:58.714441"], ["updated_at", "2016-12-09 11:20:58.714441"]]  (48.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 231], ["created_at", "2016-12-09 11:20:58.778531"], ["updated_at", "2016-12-09 11:20:58.778531"]]  (27.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 231], ["created_at", "2016-12-09 11:20:58.822823"], ["updated_at", "2016-12-09 11:20:58.822823"]]  (23.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 231], ["updated_at", "2016-12-09 11:20:58.848506"], ["id", 231]]  (23.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '58985b858232a407dee9600a84a87280', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9bcb598d61327dcdb78b51c3f6fd8c70', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bf8585839d283a9949f19babd3123e79', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4f9b4b41eaa1ff58ff11da941fafdcb8', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dccb4cedebdffb73fa380d2be7a0a778', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c86a0954bd5ef0bd32efb2a0d51e3244', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6a62cb5f2a94e4608d112dc01ef07df6', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bbc1bc1a76e5643531f074b7860dbd24', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9d2c2f42f596cbef36e5c0e5024a7b2a', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1fd5016b680292ae2c4335a80bea57f5', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '66ef1b14758ca2eecf3a798b51fc0c05', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '03b3ff131e6ae98e0ac8b33841db6da7', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '12cb5722a7c63458bd7b320108339089', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e894f3da4bcd0a4b6a7f4db5362a3d10', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '95f298027f09cdd8e4a7336e63653c60', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:20:58', '2016-12-09 11:20:58', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:20:58', '2016-12-09 11:20:58', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:20:58', '2016-12-09 11:20:58', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '72111b545229f5af5cdf399048b2bdb7', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'aa4b444bb7f2873162e74b4e49b7e357', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7b9646796727f0712928480a0db0321e', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'ec64fcee064e6024ba45d6a37873e2fe', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:20:58', '2016-12-09 11:20:58', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:20:58', '2016-12-09 11:20:58', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:20:58', '2016-12-09 11:20:58', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '52f757c9a0be0b40540f2c80ce4c46ee', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'abd0223d877e2f84cc614dab078c684e', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1d6030a508779bf5c82a7551305d4e93', '2016-12-09 11:20:58', '2016-12-09 11:20:58', 410780858)  (36.0ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 231]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 231]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 231]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 231]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 231]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 231]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 231]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 231]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 11:20:59.193188"], ["updated_at", "2016-12-09 11:20:59.193188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 11:20:59.197121"], ["updated_at", "2016-12-09 11:20:59.197121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 11:20:59.199738"], ["updated_at", "2016-12-09 11:20:59.199738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:20:59.202434"], ["updated_at", "2016-12-09 11:20:59.202434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 11:20:59.204607"], ["updated_at", "2016-12-09 11:20:59.204607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 11:20:59.208894"], ["updated_at", "2016-12-09 11:20:59.208894"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:20:59.214380"], ["updated_at", "2016-12-09 11:20:59.214380"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 232], ["created_at", "2016-12-09 11:20:59.217308"], ["updated_at", "2016-12-09 11:20:59.217308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 232], ["created_at", "2016-12-09 11:20:59.219508"], ["updated_at", "2016-12-09 11:20:59.219508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 232], ["created_at", "2016-12-09 11:20:59.221252"], ["updated_at", "2016-12-09 11:20:59.221252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 11:20:59.234017"], ["updated_at", "2016-12-09 11:20:59.234017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 11:20:59.235534"], ["updated_at", "2016-12-09 11:20:59.235534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 11:20:59.236909"], ["updated_at", "2016-12-09 11:20:59.236909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 11:20:59.249720"], ["updated_at", "2016-12-09 11:20:59.249720"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 11:20:59.250842"], ["updated_at", "2016-12-09 11:20:59.250842"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 11:20:59.251762"], ["updated_at", "2016-12-09 11:20:59.251762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 11:20:59.274518"], ["updated_at", "2016-12-09 11:20:59.274518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 11:20:59.276039"], ["updated_at", "2016-12-09 11:20:59.276039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 11:20:59.277375"], ["updated_at", "2016-12-09 11:20:59.277375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 11:20:59.278750"], ["updated_at", "2016-12-09 11:20:59.278750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 11:20:59.279949"], ["updated_at", "2016-12-09 11:20:59.279949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 11:20:59.281120"], ["updated_at", "2016-12-09 11:20:59.281120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 11:20:59.283576"], ["updated_at", "2016-12-09 11:20:59.283576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 11:20:59.285757"], ["updated_at", "2016-12-09 11:20:59.285757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:20:59.287807"], ["updated_at", "2016-12-09 11:20:59.287807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 11:20:59.290851"], ["updated_at", "2016-12-09 11:20:59.290851"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 11:20:59.291863"], ["updated_at", "2016-12-09 11:20:59.291863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:20:59.294850"], ["updated_at", "2016-12-09 11:20:59.294850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 11:20:59.297079"], ["updated_at", "2016-12-09 11:20:59.297079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 11:20:59.298401"], ["updated_at", "2016-12-09 11:20:59.298401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 11:20:59.299735"], ["updated_at", "2016-12-09 11:20:59.299735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 11:20:59.302269"], ["updated_at", "2016-12-09 11:20:59.302269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 11:20:59.303973"], ["updated_at", "2016-12-09 11:20:59.303973"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 11:20:59.306033"], ["updated_at", "2016-12-09 11:20:59.306033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 11:20:59.311054"], ["updated_at", "2016-12-09 11:20:59.311054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 11:20:59.312385"], ["updated_at", "2016-12-09 11:20:59.312385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 11:20:59.313660"], ["updated_at", "2016-12-09 11:20:59.313660"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:20:59.324636"], ["updated_at", "2016-12-09 11:20:59.324636"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 232], ["created_at", "2016-12-09 11:20:59.326700"], ["updated_at", "2016-12-09 11:20:59.326700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 11:20:59.329291"], ["updated_at", "2016-12-09 11:20:59.329291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:20:59.336306"], ["updated_at", "2016-12-09 11:20:59.336306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 232], ["created_at", "2016-12-09 11:20:59.338035"], ["updated_at", "2016-12-09 11:20:59.338035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 232], ["created_at", "2016-12-09 11:20:59.339820"], ["updated_at", "2016-12-09 11:20:59.339820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 232], ["created_at", "2016-12-09 11:20:59.341535"], ["updated_at", "2016-12-09 11:20:59.341535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 232], ["updated_at", "2016-12-09 11:20:59.342779"], ["id", 232]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 232]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 232]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 232]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 232]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 232]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 232]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 232]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 232]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 232]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 232]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 232]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 11:20:59.371732"], ["updated_at", "2016-12-09 11:20:59.371732"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 11:20:59.372847"], ["updated_at", "2016-12-09 11:20:59.372847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 11:20:59.376045"], ["updated_at", "2016-12-09 11:20:59.376045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 11:20:59.377540"], ["updated_at", "2016-12-09 11:20:59.377540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 11:20:59.378983"], ["updated_at", "2016-12-09 11:20:59.378983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 11:20:59.385124"], ["updated_at", "2016-12-09 11:20:59.385124"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 11:20:59.386575"], ["updated_at", "2016-12-09 11:20:59.386575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 11:20:59.387849"], ["updated_at", "2016-12-09 11:20:59.387849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 11:20:59.389033"], ["updated_at", "2016-12-09 11:20:59.389033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 11:20:59.390203"], ["updated_at", "2016-12-09 11:20:59.390203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 11:20:59.391421"], ["updated_at", "2016-12-09 11:20:59.391421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 11:20:59.397787"], ["updated_at", "2016-12-09 11:20:59.397787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 11:20:59.399305"], ["updated_at", "2016-12-09 11:20:59.399305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 11:20:59.400924"], ["updated_at", "2016-12-09 11:20:59.400924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:47:23.955237"], ["updated_at", "2016-12-09 11:47:23.955237"]]  (29.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 232], ["created_at", "2016-12-09 11:47:24.011138"], ["updated_at", "2016-12-09 11:47:24.011138"]]  (21.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 232], ["created_at", "2016-12-09 11:47:24.049933"], ["updated_at", "2016-12-09 11:47:24.049933"]]  (22.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 232], ["created_at", "2016-12-09 11:47:24.086604"], ["updated_at", "2016-12-09 11:47:24.086604"]]  (23.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 232], ["updated_at", "2016-12-09 11:47:24.112673"], ["id", 232]]  (27.5ms) commit transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.2ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:24', '2016-12-09 11:47:24', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (4.3ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.2ms) rollback transaction  (0.2ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "events" SQLite3::SQLException: no such table: events: DELETE FROM "events"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:47:25', '2016-12-09 11:47:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" SQLite3::SQLException: no such table: work_orders: DELETE FROM "work_orders"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateEvents (20161209115003)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "work_order_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "index_events_on_work_order_id" ON "events" ("work_order_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161209115003"]]  (16.6ms) commit transaction Migrating to CreateWorkOrders (20161209115212)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "work_orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161209115212"]]  (11.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_alphas_on_delta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_alphas_on_delta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_beta_on_alpha_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_beta_on_alpha_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_capas_on_beta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_capas_on_beta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cars_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cars_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_contacts_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_delta_on_capa_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_delta_on_capa_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_events_on_work_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_events_on_work_order_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_geo_locations_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_geo_locations_on_address_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_ssns_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ssns_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tags_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tags_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_tires_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tires_on_car_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_car_id' AND type='index'  ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:52:53.438522"], ["updated_at", "2016-12-09 11:52:53.438522"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 233], ["created_at", "2016-12-09 11:52:53.472552"], ["updated_at", "2016-12-09 11:52:53.472552"]]  (26.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 233], ["created_at", "2016-12-09 11:52:53.517071"], ["updated_at", "2016-12-09 11:52:53.517071"]]  (28.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 233], ["created_at", "2016-12-09 11:52:53.562222"], ["updated_at", "2016-12-09 11:52:53.562222"]]  (22.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 233], ["updated_at", "2016-12-09 11:52:53.587255"], ["id", 233]]  (27.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ba0b7ded104fe5d76da0d9fc319fe5b6', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '060ccc24296fbb31a4059cbb32b6dd07', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c658bd40ca57979ac8c3a34361a2aa26', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fbe67c9bddbd8f181bb9bb7c05051ca3', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1fc05ca15d03489b3325015e11e9c5d4', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5dfb0bcbf30c74f34479a0ef279271d', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'cfef6376f82ff4afddcf78c475d67be4', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '01827f4293edeb15789f964942e57c3e', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fe3f9bfcc94973d66e5e9c9cce9ea6cc', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ed9b19a9d722aef6a6b96380042bf38e', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a2a35984bb960c38bdc20dad60daef1f', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '83fcab06b5d47124757a6c107e164ed7', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7a82d2c26523789b28121145facdf8dd', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c7e9b68f3e5717c67c4334325c33a1aa', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '768cb7c25dc30fabdfbacd0c5adc423f', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a17e6f024a51ca693d9bdb41bfcf3881', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8b4fa93982c6971c5d897aede35be7b6', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '62576be0f842affaad24e44bb02a9bfa', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '33234940e61f2b0cc45b24573ffa394a', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e670cdcc421a651ec03c96031a31ff5f', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd48c4e2aa13c38131ba295a301fd108d', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '171f2356c088f49a72977e35cdaffb4f', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '15c6a57b5d7fdc779dfc66ca3d264746', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c0a1b0280994871e5ab9be5e95283bb7', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '108d4e7045d9187b54782d4d580375bb', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '804ae79b899d765f856e8a631c900d44', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fc88f207c4b33793cd66267591cc6536', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd6666ea46d297b916c66605d769b4501', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c11017f25f01f8cf5453b7c8349a7ace', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5aa0088310ca69fee85e09b4a30875eb', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.2ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.4ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4524a768799879a8749a91eacad197ac', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1be910c5b67db5c44d215528b7a10526', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ef032f49afe555ba913a11f9f3d9f6f1', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '858111319ec415dc287b617a447b0e68', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2b4feb7f377027254b39d12fafae63dc', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2c6f65cd172b5118401b7a44dcdec30c', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2248a7dd79f3f5e0f48d2b660aa85f35', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9b77523f7bdd041b8221715fdef26786', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '12db4a444c25007e41a18003f0883d02', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '24ce6fabca4b4137cfd86969ac890aea', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '393110f72daf92e5df6eeb2e04ff4925', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8030f55f39ecf169295c2d04a003a0c8', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cbf44e7d572d4af559fb6abdd571834e', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '94c9b44fad9f0a451b3d7ada4558201f', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e6a58b860b98e2c041f5e2ec2cb46413', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '910a8253c3d125c5cffdb5adac71e752', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c0df0144080930e1c502d89fa27808d6', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3ec4764f3b28507e0dda88e215d35299', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c792d46ea00e208063ce339cc11179c7', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '60ca8f4f9a0d926f17567fe0d0ccfe02', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '079cf3d490a068c07913059d37c336be', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '69f8c586f84908370156cc5fee5cbc01', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a2e53f4bf962a0d8c0c7385d603766c6', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c4bfff7d9879457652b07edfdf40a422', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c7117c9853e44834081fd59ca3f9aaa5', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7902c5f1f2eceb0acb89bcb7a07579af', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b8be3c6fcb584ee1a6a3575cd497bae5', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9e79172a72c7612d97b8d9f361ef0890', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c06d2c0b5280d615cec147bf35d6590b', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5a12b50464f63c2c3adb5bd400f98b07', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.2ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '528b0e6ad65913876e445285504d4cd4', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd5f1cd8a018beb5ba10f6641763ef9ef', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7d27b18a6f20571b556585e8cef630c5', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '066c75bcd6505cc5611065984b51a152', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '32cdfbdfc61319b01b655e539834f9d6', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '565a3f897f90fd4184795c4aca16c149', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6e52935318c5e2355b580933e44331e4', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '59b9c77952917e79c98e3161bbf841f3', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3756d85740b1ae407020f73d341edc7e', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9f8e560941750226e392c01342d7a6c5', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '039b177d51f93ea589adc5e2e2327723', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '14df25bbfdf0b9d14fa820d8c0a6f14d', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '048590985545a6eadd53bdae261fc5b0', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1dd5a13996e442ee5121b7c1e129b3a2', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '93554fb1369a8c0162812cd448312d1c', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4195ea964ab356bd7d2da35bf4de85e5', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd054ad1525f8294f552c78ee16c82b42', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e5b2491307c41b2dd21b7fadc35186ed', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a1bd7936f6ce491cb368274491f378f6', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e0fec470656a948f140dcac46b4f4ddd', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '384ed3a0e3972a3ed257f317ed8d57f4', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1b8f0e58345bf40f578c47f733c196fa', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '902d6a922333b639e4a01cfdac973845', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ff01ae5286993b289b8337a1af4cf5e2', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '665c0beb696d455182032b9c521f53b3', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e91c34e1b885582be261e4038f4e85de', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e0428729ae486652a3ffb6401fd9207f', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c1d6c739b254a528f9e6cf68fbf2fb55', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6e3d58d9f4b51e347ce23eb7574fa979', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bbc871ea66e59bfb8fb8805b6509768c', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4df33820ca63c85e1ad3aee4bcc47059', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3f5ab3b31207ad5c76dae24342ffec36', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c237dac5077b949e3ecb8481340bcbff', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9cb9aeb7a23f36c53360487e4bd0416d', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '557ca137cbbe246f4ebb5d135574c0e2', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'db5976b27057b40b67bb9d1e3e07d236', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '361e3634f93e52ae9f3e58695529a55a', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7168827f478e53ea761f4332283187e3', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '648673e3ef7d078522d3ada4510fc05e', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5a445ddacace8925b9c4cf165b99b723', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '10dc545566b08a072c9295879c6d7852', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6a819376d15b8ff0ead8ee4759f21865', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9e6274039b8d5f0b02d9d5d63d8c0697', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9813961c8abf203027bba39b03b4259d', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '44afe75f8addea5c290a34d7ed5c7529', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e61bd4c0f1655375f70517d36e2f2024', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b5f3cbde4e3539d8cf5ebbf69e4e993b', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c70a7e695a96125fa5efab7b4b6764de', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cce9d3e14c39d759d87fa4cfa2eaf3e9', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4f70655f2657d917eacbda12c31e7abe', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f720b8fb38f275ab197031eeec8fd9f', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'dd7959a20ad3a044bbadd9f9e2ae1340', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'adc29dbd7361341c67b1253ddabd7770', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e5ea59b63262d60884a25fb27826d767', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '01a3bd9292880091835c2424524fb054', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '14076a3581c2858352bff9e78ffca072', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '88d200690d35112dff3cccd3d1a429e2', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4b0a8a1a9d6457ca3a5f4d3bf73e5b30', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0ff5e258f48163f4a86dbb6895ba1d42', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd0c7eeee1d1d095bba7f0323c6f8af03', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '21a52184c13f89a049288eb236a00093', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'af337a903040a80fe7f50c05a7cb8621', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '898742fc26b277a3a5c18a69233a58d9', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5692a4d38d16f44a6bcb0055d8026c19', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ce01843a78af3e9c94d4ac1cd5c08785', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '60001a9558f58c8d7d44a5daedc6457d', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b2084d711338eccf1ed10ce269705954', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '89a3e723a28538b7e6b3916fd1b8e2e6', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2760dc3c614a59475633f2f93598d1e4', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '58838d6be7a6ac4acf551769031c9226', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b21b95cf740a0c20d06dccd085cff999', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fb50752927f0b1610b93f7dea3225efa', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ce9d53862541c3dc3e63839a579f7849', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '32892da48617e5ec6118f1a111af2d41', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fdc8fe6c33f954994d5e40ff56f37b63', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ded35286b89c49f2c2031ca2556d1305', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5cb3989214da1ddc1ee729bf67a99b3f', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4966cc81b0c23bae69e0467043f82c95', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6e8bd6071167afa6c0702fafea1f6005', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '13201fdbe75ba4ed67fa669a098cff8c', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f6f396f7563ea4a4f3fddeadbe7593ed', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6fdecbd7dbf9bc7219d9f5cb91765e91', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3898ba10c6b66431ef744978e9a71caa', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'e88936d3ca620115456ebb3ec904bbb2', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '321e8c18ba6f80c94df93c597782f856', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '58ea01c6a99a6441afff1903ba10d998', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6481186dca39d34476d2c7501fc5bebf', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '96ae5da2291a25e71968f2111c7d5f82', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5d0cd03b44277049ae0905b77ae2c37e', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb900c7c9a934aba8dd8458ef352e9f3', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b0ed5b9a7c4f28f8681f14d6f941a2a6', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b391b852a74676f4a541680f68451a1e', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '61434bb8f06ef5e6addccf35520262d1', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '231c95e9e8d6451263f48a1b98e3f22a', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4fd3a7ce2cf1b7ac8543ffc4a4f86f25', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '25e8c0676e4e6766fb3cf79dc75aa7c8', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fccb8a256088b34fb456caba5edfec5e', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '44a0db31c70afe96957def246e6b2c07', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ac5db8f306b11dde990f34e9d18ff16c', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a7f6bcb4b9b54596d836ac4766bb2b6c', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '796714c1ef4deb2b5d0ac99490aba7e4', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9fe2912e82a21197b5bb91364d9b962d', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f0485abea2f7577ca8fe3da65c4954c8', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c59aa91b22cbad39ce20277340157112', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c0c88eaedbc566da292b171c714fe653', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9ce5cc617dc61e478009b6903cfbe9d2', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a16db418e9378c3ae15c2c86d7134f1d', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe998ef5cee370e3739edb1080ec54cf', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.2ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b35400536612833d0d814ac05297ecb5', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ac0fe02a808425ee14a6e107dbc5658c', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1f5fe67a8370d6e3db327814eea336f6', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '18866f3e41628a56af84ff1ae818aea2', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c1ffef148ffd46d775b4bf6702a3c670', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '14aedaeffa5454c17b846724dede0d9b', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8f5a6117484d6052b86d0e8b80ea4a6b', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'daaebe80d3e6276075b7a809d0c25633', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '721c7aa8f7a9598df567371facda751a', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e675ab9c36a046f87bebe8930960938f', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5ca03ea046b0ed2e900a2508c691836b', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ca2b8deeeb7b3b5eda8d62fa85a14db5', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f25774d97bc1558c7517d7c0f31a826a', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7dfde1b2ec7cfc5e772b809847afdb79', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e686dfbc93cedce7596c4a0b53718e84', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f07d7b67193a356998ee945e4e48c04e', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '952a71c2b751ec95518849a0665b0434', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c9f9a2961c4c319312c897cafc64e820', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4c18c7f5fd476e17d3bab5b9e2e430d6', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8fc63548317317ccb92d6340b0adfe6e', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a5fcb673c64740b67f0afa62ae52c7c3', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b89be843fc621b9cbac4c497ced6b5d7', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c3b035c94126b0f1c144ed46ec08bd06', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'aa3d6ee6aee52c5d381822eaab7d65de', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ee73e8259a552d8caf7b909e1f240751', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e749069776b8463077a260455ec6df23', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '94e62ee4f962e07520a126fd303243f9', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:53', '2016-12-09 11:52:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'af7e45c9527992b7f5c83a77f5bf4c6b', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '691cff6bd5029e85e69561af1c09756d', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5eb7fd2f189bbb5357da523a71293aaf', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0655508db8d0f7ef0e15cd7860cee180', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '61db4c96c744d02d9d6e9753687f0e33', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e56332dbb6436bbad4ce754c8094eebc', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f159dbf354b5500632305d4f692c3b6a', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cb739076a692f28a6549117e077db8c8', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'da67d254e92d9b8a327f6e7322677cfc', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0ff3728752b9c862217518218e36b9c7', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '64fe3832082bde820f2ef597bd17994e', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '097164086d18b343ef7994e83c9b82c4', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb8aa9152dd42926521060e9152af467', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '52b6e793a37cf7c98be614b2abaf8584', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a2da394598a8cc8cce9f5c4f32b37f83', '2016-12-09 11:52:53', '2016-12-09 11:52:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:53', '2016-12-09 11:52:53', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a5d604e92487b16993b0d891474c5d3f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '664f671d44d0f79bc984c2fd8c2137fa', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bab94f931aaf746e8808ef10ccf65d50', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4b99fc6ecd5810b0f379f0f91be8693a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '07969d2c3892b273f8b0ef877f76063c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6011691be215533d440143aeb64ef50c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '33f0620eb5bb84b3f2fbedf8c7ea4af9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ae0e635ad262d7412342a1a230788ba8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fd5a96ab0105205438c6de028ae86f5e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '78e8c07f4b23c0848c98e40af12d27ed', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2e3274d5c98ae29fc7ace8873f97b78d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '32539c60bb97292177fe2b87222cba29', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3cce6a3134b4ac0e9511c8dd07191ce6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '451e4e0b265f875ae9776d734844086e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8a60e77c80b87a16390e86a65f51d371', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b009fa4db913d072500eba79271df1b6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4565a2af13139f9d6ceea0a9777ab748', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b7a43b9d2ca459f99a2fa68e08291ed0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '194b8bcdcd7de9d66199981eac721d50', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5beb6e14d8325559658104ba5ec82e29', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b7984a89715bd6b1b8ef61f66e58975f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '499b2d1155f83a57ee52765b1bdf2835', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f87cd50035eb3ccd8ee88e84335afbc6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd56b011edec03a363402dd13fe8f29dd', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7323b8538942bd9a12993336c1014768', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fbe04f210b7be01935891cb8caac404c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9d02fd88639310e7609a52721b5233ad', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ed8915769fc898301e7b08f17fe20bf3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c7d462af5c6e0be7f4d02863d4aa982d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd4fc8e2f5bfddfd96303ae7126e76dc0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '320fb856863861f2456cf60ec572be08', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f8e60a4223a3a05b8a838022d466294c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8e92f36bec160cbca0433dc2e070dab3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'afbb492110798d969c895278e254ca32', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '32134f498e2b565826d929af58862906', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e386454c22c42060d3b250adebdc3467', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd3964530f712d067c2fe983cf5205489', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '42ac9b399a864ab306b960a3cbec2af4', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ffa9ddbcbbd67925e5f85d4e8bb2af78', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6f62f784fe94ba90ca7f1fe35e3a6d01', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b8d2407f7dfa41976428d79e2ccdc126', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7f8a01e2f21452bcfeab07a46839db52', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cc9ba06a261e329db19451565c4ba7b3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3404c1834a313d51f91513e9a9ca4563', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b996707a87714a251a6b202edeebaaf3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.2ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '56ed9cf22eca0e4f85fa8519358732ca', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '398abeae9b0cc251a6a0527a8eb60383', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '89c716823690114519f0c13fe2ef1802', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '429d2b575d2c9b58b38b2eb334587e36', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd6a4e37031143428d4900f3ec9db583e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '97e90a328a8eef47ffc21adc0d5b1dfe', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '712a5b74206ae07470fa020c38212d9c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fd1bb0334e3ad117c8824de627af05fe', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4490981b189445be43a0fe50bed10af9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '438677d4574e4925301508a4ed86a78a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '088b2889b0207305eb08f3adc834d0ad', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e3ac50b9d9ee964853038ef24f8eb2d3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4f98c56b5a1f57268b882aaad4830122', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dbf15660c5dd7dd2e8a32a444c07ccf0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '89cc5177beb5aac20e62bbd22d77f15f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aa700b67cf8592043ecd7db4947bc754', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd64d85ada8cc2c26bb0a5b40ef1c525d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '78b61e3e4937fd7f34be795913b57d98', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '51473b2e06836b80d70f6eea71caedcb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8c0b268e6a76f2630ef250f4e0a3954e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a56b4a639d83c2f96b8cb52efe94b41a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '19361141cd193684f341fdb502ba823d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7eafabb363f6e33f19019701c965446b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3a1e7e9dbee39153be153fd2c234fe53', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7ede4fc1a8e6224f723e30f1ed2ddf4e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'af3eea40a35d6810685b39b90336e771', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f71dc154f77cb5d5c250063ef3f3c83d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4e1faa8f46a9407b8685dddec06e0a45', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4c6d530ac1cd4bfddbdcbf2f6e72ebf9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd18a0efdb6421dd55a95a7460dd09fec', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '42471c5ce4fdb7dc4c0e411fca59ce9d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5395e17731c1185d739f950a3043a1cb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6c12ee37889ffd4fce90330158f10b1b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1d136e5ad4126fa5403eebbc8a060a02', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '20b76c4c15ee0d2521381075f1a831af', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a740b1a800689b317d82213279a6613', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f911778e6ff224b65b3fc0a3572cc473', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3924a56ffcb9c27a7e20646f1e68b29d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9dfd852ea6b7c4e4611ef93a33a5e123', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2170f0a8c3b61136fb38cbda21d952cb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '693ab21ede2502da213582d7a40ac704', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0385bbde6966e5510b9ccde3591a63e2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b068ca3cbd748bb7aae0a55c6f63909a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '032dd890467e5146cbbd306c48b9b2e8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5bc6f5edc76a29c90552ab9c56a4495f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e83bef29f66a9e09daf8a577c650a132', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '07cde73f686c1f273f4813dc2f0e4ae1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c3fd2cf66aff00db8696357ecfc8dedb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '15262d6d5461bfa9b3dec815f1641dcb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1b7b0bb4423fb7d4c22fcda39050bdc2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '84602f298e428d75703a8ae8852f29ba', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '005c7ff78309cfa35a51ff14ad3c88b0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd2ea9d8fa0e97ee8c7830ce00b3548b2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '376961f50ef3b8d3fc65f3bd74400d4a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6e73ecc56c40742a223483f9afe2d0e2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '40e0ae88c32c07606063b03903b7dda9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '606913ec26872bb5615170c28af0c833', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a2767fd81d21fc77d091dae0c48a6cf9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ea9bda8c9b07ffabef8e01d897a1c510', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bf1c898ca6d060eb8e1f90a21ea6a431', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f1f39e6a80584b31300ffcc8e3880422', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b7672c34fac4f4b6593828a53b98645e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd82e7979f4633840e4d486065f0a7436', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '997367f50ea28db5afe0245c5d4c1075', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5215a389dd2074ae1c607907022f8ba0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0db96849718bc60b9562943b0cce1060', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1b0ac4d283ccc972a4581924bbb44536', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0ded384ccbb4e03b76db9873a75d8634', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '739f56d88ab5d2eebe9970c38857f085', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cc34ebb90b61c54ddf8a5d1bf3f1568a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '94cb8363902726468c13ba948e0952fe', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9a66c29c87cfe7fbddcb29c857d39ebc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0bda62602d8c6f35b98b744d5b9226c5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b8ca9b9a537ed50fdcddde20f8755d27', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5fdac2ce51fb2f99c838ee91fe34ea98', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bd3e0a14f612411fb4dea9fe75c0da25', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '556a4334ea41a7bead2e8c5421bcdccc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd6720167a29c2f515ce2bef9da5769c7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9c4d25f8cbe7c17711b188aaaae69052', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5d7f776e9e3016b48fae8cb9cf6ad7f8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fc0ea980c3faf900b4940b2393e3956c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6c8be792cfc609f69c5e82193bd2736a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e2c169e06083fb123291435b59376486', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '137b1bf3fd410b248786b3417405b91e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3adbb0927c23abe97b183d1bf5182af1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ce7426ea7bebdf83e0f0cff11afd552a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '27504ae485189e54adb7b0ad54f8d5ce', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f93d7582f1ed263b1be4985eb73bb7d9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd9bad94eec57e5b5fa1d1b16cfb9f14c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe9265d57478be4dc4ec723c09e257cf', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.3ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '085519a3b281820409961dd5242f72d1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '11e771455d6b1d948b0936bf7f3e9930', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e514362dc4f383375b47f5c0c8506f83', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f1da6a9f133020ce7328f0058aac55d4', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dcf55516d5c20a64615e898a6dec1c58', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa432fc36ec6ca32f55b04fd93b7cba8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7cb00500687655152aea6dd38f52524e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3da843048c3788a612ab94f340a16159', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '45d499673534a6671d2b6e4f7f8b76ad', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ebc1de44aeba7275ae35e50f9309e24a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '35b711612bc57f6a3d6183205974baf0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b17b25ba368dffd607b1796f83a696e4', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f0fd7795f11bbcf839231c78ea4cd264', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '69a8b58545e794e4298b4c1fb86d32dd', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cc0bc8f8d5cb0ba01dfd1f680d6b20b9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6be8210d7e4a5798645ad77325b4b072', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '063fe5d3b20fef0acb5aac0771e2edbb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e704f9ad7ed2d6be9cc350073ba532af', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '44acb2d210fba02d262568662e4ec6f0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b6c1e6973fe8bb5834511e8c98cb9a26', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1227c856feb348f0ddeda9b74a77978a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7500c1e4bd0e3b1414aa95630c42845c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a15dd9cfad6787cf7b3232c67c37b4bb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd897a7ec1cdb89683accb4ce6f076028', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '788d629b2ffff0b17b50f43c904ada11', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7d9a4315ded73d07764e7888cebfc3a2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '842b78a4022f7d2083f249a2e51425db', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c140298576846ab48b34740c06ea7cb8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b46c3e2b2ac706bb8375aace8996b1df', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd3d4fa8ef9c20494a8537ccb29d9c1ab', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7e6921edff5075852ec58879e864a490', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7af71ea82fbcf12c2dc8a5b842932cfe', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8dadd9a9d786459bcecb5bc1a4b4acbc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '08c8b10173f6be191471ccf7781b2d67', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b594dd5a1b702461ad64a4800ba747fb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1a07f5553c8b8cefa00a34fa14b80a16', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7f38f61e7c76b3819d3f18875a2fb57f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '391c59888d7b8227faa4f138f907d5e7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '804f9afb3ec3c0955e06e9fcad867262', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '687838899f565434cfceba4c8dcfaa0f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '04a3d4abdd5015d8e028536e0d662c5b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a5aed86b84d8bd43d295cd64a1c2d386', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9286795c13abf61f7f9093e57535a1e9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a8b44822838baacc30bc7ec22dceddb0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8321c6a50b0bc0c42e4084fe11b8c316', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2dcffe6b02d3f8b7b63f7ed78b4ec316', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '47bd43d5c64ed0038cbb755fce254487', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8f520bfb4bfc55e4eec831343e145764', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9459354ac10b806f9c3966fa2fd20404', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e9fd5bbc0e1365922a989ef0c7646753', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '85fca36a04219a2885c4f5eecb200437', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e0c4b1d69035913acf1ed113be8c003f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'adc8afe1eae1a67387ba9a39f90d687b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '95c10f07b78d66c70bf172bc4bd6ea3a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ea698607387289499047b20959f772dd', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e2eb88dbfda1d0f1ba9ed4a811e4f20b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7cf84e2211e55a3c22b206f8157f95e2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cbc3653ddf7a41cc1d4d817b9acd62e2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dea0b0661fb1bd12df5e48717c3798d8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '45b5775ef739f02659699fcae3798404', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c2e3029049aea8283f9de9479696b40f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5fb0665cf7ea16601b3880ca61ec8670', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b04e625d5d1f0f64d3c21b77bfaef80b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '59d8d3028be8c1974fb0b9f85db35707', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6b4129640cdbdbfe6df2fdcce06181a3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b4f86f519eb134e4a03bb33602c85a70', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4cc8223c3a50522a6bbe2088e4ba0b8c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ef8b6d22d94adc5b9b8bfe67a9b9eb00', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'dd7223b860bafdbd21a9ae8f3434b2eb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd41f78cda55189ec0cb99643d2aa0753', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2f43b9e389125b8083bccb94eb04fe58', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a2b724368e1261876c176d131d3378bc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ff4b0c03af45a48073aec7f3167ba89e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a845c5e65c381a09ecc69c79717ed16c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9a14584d9c4f0feb7005a84c016ad5b2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0c980f3839d2ac41b762166619527d7a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a6e62ad8eeb1873bcca0626f07bb673d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '53c8729a0b26071b890c5fa6ee7d2bc5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4ba882ec64857ff1ee82f1cfedb12249', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bd7a383a04e2bab7e89392d860b216af', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ae0d4b867b3feacdbbcc2fef61e56c79', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.2ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a691398a5423d48d4836d37d977ca0ff', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cb7c8e876ecd038e60bc56a32ae768a1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '87e64be4e57ee547341dedac27557a8c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bb9ca999e4783f1e4485f2464a19f767', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'db651195e5e0dd85492598089bdb4b01', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6b2c6e0b7767aa5ae16e08871223f6f9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7cce0c74543a7e2ccd46b83b6b9ee889', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd58ac421626906152d217f8e21e8da44', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '645545936807d1e62fa3b095f504e30c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f5297bf12c243f29335faba86e7b1ae5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c012c943f6507433f0ee53cf7d1255a9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '006abf88257bf46317ce87eedbf2bfa6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e03c905c2cea6aab55315586aca3867f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '688ae4e2f829e8920229564f475a0206', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0038bb22a8b9c0f2ec0b4cdcb320549', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7e0eb4d6e583b4b8b612920650a3edcc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '651d8f9a3ac075b783ab6fdc3ccd421b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9d9c73bf54c85aa55e8a2ac3ae1e96b3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ae8312fca0290cf82417b39d1c86fc5e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '34fe94413c0f7197730065390d0ac501', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '27dd9e31bfbd208f1c2d727c3364144e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '07502dc2c6a0d0da8876be913ba2da73', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b1847ab5d74a4e2ba85c4671b2fae524', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e241afaf462a33ae1085a17f48fccfa7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '118b81d6f0a05b37e80b404c277fa9b9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8975e46736bb2c60995c87967a8798df', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b829c9fe8ff42b26e2246343df7b9deb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e2701f8a3a39764bf684ddc242078232', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f7523906ab00ae72a81b13aa16f35df6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '61661f450cbab957c281b834a72487d3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ed3cbf3236927553c1b1fd8f07f23067', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a1059a05e5d5c7b85937571289af5466', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c11604946d5c86dfb97dcf40e72e399b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd2d45f3a828eb82154f2e8da210234db', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '77d181035005004670046b210e604a6e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6be14bcb4eea7633197981699ef43d44', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '937b7004a5f36f4d6d08d0fecbe11a85', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dbd642fb6c0534345db4cfb0cad6b9ec', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3a4af14c31e237e63c756914051663ab', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.2ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6dc28c729ea7335167c7e1766b697623', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '061e2d2766654f84389e3cc072a0fa2a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9a11933cdd689d2bf8028338c5cd9ccd', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5e19036414506d4f952cc584c5352551', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fb699b574fe52eb06c024c880d1f2144', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd976bf5aec67b432803edfc42ba2db5e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1642bd453d8d4c318f6de2a002635fd3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fa5aa3f676aa262f36af10f130d16424', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5a84366cf452bf4437f54be500d99b6b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8d77dd5d29c5d9fd91953ab3dd4565a6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd5a0261f2def9b9e364b79a113728f79', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1752288615d214866ef6d64d5eed76e2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e850bac90e3f4b34c86a3f0568ad0d8a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5a08199d65994f614e8f33d47a9edc1b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '166d50293cac5452bc9789a6d63b4039', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b9790aa90493a816c3cc37b75bebcd99', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '42b552a2b692450044417900994131a3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9154774b53418991b47def7033291a6b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '030e025803843f64c5f90985e6f0fc4d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e91a578c4c372dde36c0fb530827c3f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7284977b2df4da52fa46a15fea9832c1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'eea5b380c285152c97f31599dc3b25e6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0f75998a6d39779078dcafeebbffadd8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1dd361dbfc902e05d9ae6962e87557ca', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '94d0c8c7eb76ecbf799fb6cbb578bf72', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8f6d7c6b3f5e00aa5b5e8839a39779fe', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4fefa00e7724ece5ec0dc09161ae169e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f8eb03d546ecdd38e4eb4c728820b49f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '335ba23bdc2edb98adaabc4c784dd6ca', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0ad07437ec28cf25a876ecd25071ed32', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4278766653cb50a1581880c6d2f47b71', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c839f13c89508e53a8d2d3c7f59767a9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ba3aef0d26355bcae3eb3b848272aab6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9b924e0b3c6284362a8ca2645876f041', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '48607c00c12cbc5aee18d5735dd5d6e1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0753e85e29ceef24db94795c4520b7db', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a0f464900080769959adbd7ae45b5bb5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c655b8a9cfd2a8f937d6fcbbb3f71b9b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '17ab8cea371a4504034f0fd54b41e245', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4fd1e7ac32bd0c5584098995c370490f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b296b24bd5ebef6697c66134d7fffd86', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1abbd4337dc89f239d6853c169832077', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ebcfdaaf3d09cc751275d77808b5f010', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5cde1e3816e58246afb6320bacc90c83', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0209b09f23a0a46abfa9042425b826ec', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '53f96c6a11dda36821e48a8d56682bf4', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1643e2474b7eb1295d6c0c9c7ccc3b85', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '86a0af2ee66745746e84df601dfe96a8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6dfd91d873af99ae119c162dc4a445eb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1219c4217f6cfa06351c12409320e44e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'db451258273aa87c2b50530bbb428aa2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7576f98de8d6c89b21a4770ee913ab71', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd58c380fff1c779ec38293d07bc781e7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0aa76c9382eb2a36b634dee65a05a16d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '200fc8b7ed20c07000f7a3f7d0b047cb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fa17da4b3e470cfea3a6ac60c0eb3906', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '68b0c0baafb97fa83a545866d549ea3a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7e9de005eb59c9532e05b175217bf321', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '45a21e3c54e853365ea50853cefe0b76', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '56cf3d3850281b27a1968195a6771576', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c9a4861751d8ad227c09b553c9b7f3a1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '169ab72e43389dc8d9d6124bd1b41b6c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0cbbfdeaa9631b3501fbaf790f65d33d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '11ab00d6cf19b0ff817c6139950877e1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2ea1c1396432c8516a551b462c7e342c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '43ec20df35104154fb3347b4816d906d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7667aeec0ad330ac53ee8aff44f11e1a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8c9a839442a60ddda70f0112b7b5610b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd2a4e0d960ae19c9eaae93c61fee677d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'af7f9d090b8e8e5cc686d4dbf87b5296', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c4db4a552b9d44329b2b357e68d4f6ca', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '38641fbd3c208132b480d8b9612cec3a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '917e0c0edf36c41bed608034e14d2228', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a5c090a91b3563e84290fbc2e4d2a8aa', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4b4f8ee430b50352b2b129e12e4f7733', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bd88bf216856dfdb45aced1b952d7582', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5b7a527d551fd7a74aa41ef6a67681f1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f14798a31acea141177e45d61bd8373f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7d5394d51b1bf0241b0490fa1e3f3aef', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '49567066d9a7efc7ddc2373805395c44', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0bbf22bad260900fb83d477749cc0ed', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6ecdafeb8175544275d0df87741faf4f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6d44a4a6f57baa7bc5d0b94dd455d0c0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7eee738a51b0a93e25f98cc2d647bae8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '23bb5cb9293e1cee1d15614415ed2d9a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '57dab4f86131ad3a355fafa86d759be0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '91ad005b37707a9bf062a968e7fac78e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7f62022434c1c5be9b4b7342a64609d6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2d18188854929914552c541543b5bf3f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '43a9cac93c0e480798cebbc5efbeea05', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6db45c0510456f15bbebb1e095af2aee', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '176b1ba4cd41978e260bec23dbd55662', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b73ba6c4a57d8ef7a38917ca512d1d7c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e4d5d1e4a165da1500c38024616879b1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5c11e35eb9713f381d2a34070ffe6ad4', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'edd7749cafc7d6b04e20a4e07aa68091', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2424a74791ef5f39a1cc9b8c81aa3aba', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8bf13810682e83daa87b54d383e43a41', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '73362419570cb8fb667a8a58d3e792dc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f0db251ec400515570dc63534caa5376', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7350dad613228d291bfbc9d3801496d1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'bca4b4f1d86c5c80c054880f729a535e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1381d59b98d4f62a670a33d2488d743e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '25f98c74d5223131d60e3f0bd7969e84', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '11b2aacbe2805bb7f7255c173aeac280', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aba7623074f9b708dcc65db15d48682e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fe57ce0644e92a7c2a4e399ca159f922', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b5c0ca1900355d9f6d98de4d5da5dbe4', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e463b86af7ec623f59db4aac7ba2b865', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd4743f21155d95dd8db70014b18678c0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0cef4b21b014513edd4d1b871649fb55', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '94d0fb5f14d0f8059502e1a2c4ab12cb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6d695fbfce2e0318fcb11451b75d6b88', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1bcf7632fd801f296dfad80fb90eeb5f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b0e46c199c4e09a1df80bb282cb0faed', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd74b4abc373c5b5b23235b5cf8136086', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2c25ae696fc26e25c449733f9c2bfb30', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3edc5db49d9087c85259109a280e658d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd89546cfd35b3d60d2eabfe028772e96', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '886a997669d044e1c23c0ae25bec3eac', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '342eac0aa2125473ff7adac0e58f66f7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '39390f90cf42a189cd9207d2eec149cb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6c8b13d4c1072ce9deae22978c9f6af5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75d46630fe44d0a4106fe638e75fb5a8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '514a10c37b56aab65d43e66fb126887b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ff4be74f39ba83a7e3bbeb0549962995', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5203d9504a0681266b7c3817718f4d49', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4200647ef33016cfabd2baab66158868', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'af573339c7b66d8fa1d8cbc02fee971e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '271e4c5e836184b91598ef259d45c83e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1d88e30edcd5ce12ed6f8e37f4ec9942', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'dc338898c9b883bc1c56fc449cbfb101', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '444aec345210bbda549fbf560443dd42', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6213375c843422bd69061c86806353b4', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6e93cd2fdaa34dc023a3d967031abd0d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd4995eb50683531392dbcc8c879d1b5f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1aa72c06187af578f6af1e99c9c733bc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8d4020a6d4a6437e6b8182756f0d9adc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2107935e1c6c5702a74852f4006c55a3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '93cd2a5801b3cce63aec20f5dbb590bc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e4a809cb8f854cac617a999ffe540ff2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b9d03abd01e1b9129998ae7af43c1785', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ffdd0bdfa958aa68dda063c8a77145df', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b0af535afb3366f3559e885454cf71e5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ff9c52cd4f8a4cf47d8bb478b1d18121', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e30d01e0bfff846b9c1a6042d0f1ba2e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2e5fb2c9c2e481c2b4ea47cf2daa61e5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '94ae7aa239852ace14591dc7d32e12de', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0262d0e86d3771bb280d08fc474c84c5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '74dec45801095a749641971294a66f13', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4b0a417f24d6a80ea17e7cf8c0593eb7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '85ae51c9d13d9ae46e92b9ff279c849b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a19f1208cdc5c642836d46c52d380888', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '87972c1f60922e1437574270fd8003ac', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3db2287ac7e61a0a1dac099f768de9c9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'beb731628f05cb6a34630359408d4f40', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0be9322b93cac9f5c3efa2956944c14b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a25e249a9c10702ca6b7a3aa80e85f29', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1edafea7a2e601ba57435dba62934599', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'dccddd54901d0af36510f6abab8caa48', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd4e77f94a5c5ef304142d1a4ab31ce9c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6b6dec78bd10ea3026a2ded5ca86d5cc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '430f3ef0cb391574dc69762092e38056', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0839b39202afd2c9c6dcfa14ed672dcd', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c1b4d8313b0463d2f2d69304aeace869', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6070ee854236ab5679ee717a169f804d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '434336c1bd724310f61ee026d4bf19ff', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '07f41517751fffcb551de69863114ce3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5b689bf549f3da4d419a5afbff7f4240', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8b7e49dc36c27a879cb5dcd41ae88a71', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd326866b52294f84eb8251583ae3a324', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'be875f7cc40eac40f08d04bf56e3de3d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1c1555e67767095e7ce075334f672ed4', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3a332f02ed782cd25010dea92afea955', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8c07913cce57ae1e89ef10c310a256a9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e63c4486e8fff48576de0c3cf07e72b5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ce9c1415d2f815e64936d784f6d303cb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c137e61f502db5333f49ccf11f808428', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '22b4add2e3869cf915e08301e94864ab', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd3e47310de34d8ae076c167cd9d06ec5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '03f740788e7f4240633fdb6464f402bc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5be718321cfb63e8aa66f8e44e2d047b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '046d54d0b74aea3f256b425bc9dda92c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '46633b59d049b2575c4230f1af05f89f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '86fbf9a6acfe66bbc6d1bb7130f47cc2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0e7d05a8fce17134951db6f1c46d1d82', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f757b314b3d633bc2885289fcaf39c7e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '044fc8831fa43698c8a9cb4e89d815c7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7b2a70c2a46934d13bfdcb76825d01a6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fa146743c48d9f0036777b234dff3a5e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6c53735e4e0b683500e3d59e8e0d1cd1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'cb5b834fb5b8f7a78a5b0a3ace0b786c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '44338dfb3b9acd9acb76c8f76da3ae4f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4e8ee70e90940d12ed2b0a20b040385d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7145da74dcb05919e0825a9c6f28fc55', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'de430a6392ec5c70bc4ef750de50d691', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b1e7178c15bd3a26a409bc4f7e5fbffa', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cc2fbea3f1467af3c0f26b14be1fb20c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e8d50050bb16c985a75072c28c61b6a3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8826d76c8f648ea889e90a9c31531213', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0f493cbd635c2b5cca14f611e7c819df', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a6695db6ecac1f91197b0843e9d66735', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '62f134226a00e6aa12342028fe554649', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'adcd103e56634dfac17ad2b94f061200', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '86ba3d2493a7cdf1d84cabc9e4676bfc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3d4f84aca117eb7fcce79be161320be6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '718cdb4fcc1687fc1210a0ca8a18add7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '58e6eb59b12508ae0951261b6cb4ea2c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '75c40485f72e03458f0a8d09b3a42112', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d6964bcfe141eeb10eb2d94113e3d80', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9d1e73fee8d39638d420c6e76b078fd5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c271f3808ab78b7f811d11f63f6a4f9a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '99b4964be1a338d957cddc5125c83ccc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aacd114e761cd6042f7653f1dc8dc07f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e031c02e4a0436f6cbda4e2309a2c100', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9ffee7279b94d03e5c5037d278a0698b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1d4bac74189e286dd23c52b9e3e0f128', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2b7be14c7c2c2ef85dc91f29abf9ffea', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd1a9e68cafa90d6f38c1d11cf29e9023', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd9a998ee3fd806c665d3236504caa53d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '65d04884bd9671f57d2477b32171dd1d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '71ce9f3774e830c5a3669bda62740adc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '00b12c66e5cd599bf514eb8a18aabc14', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e0959156b89fa9db6b547b74a68bc5f5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6391390696597f7610dc341da65a2319', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2c91f090370a47fa2b6bdd34e8801a1e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '595e06ad391a29242e1074a3894bac60', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f6fc0a8db8b187dc5addd42c93e37514', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c4e6b24a598a72b79f093e9eb2bc7f53', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '32910d29da0c67a0a47d645c999812ca', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5845fbb129421cddec6ea7ed2e9114c5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd7021fb851777b97a664818735bc3d55', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd232be9255c5d7395c2d88b523daf40a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'fe22efe3f8b6b2a927ee3bddb1976cfb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5a4ecb8187e76e890e67df89e8843df6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '05049f4b27219d99800ca61184f5fd49', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5d8f2077765e638b96fd4db1ca9911e2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2d628ccc55123d99c655192d021f62ef', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '96f524930d34794aeef3ca27bf072a86', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7439b1b0abc4b9e7d4ad1b989fca6311', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7f3d7cc63790111fa718546ec5539a59', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '561e5eb8553b6e00408c4c910ab25b48', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b4244e8ceef7f31d51021004f3b3dc14', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9ab941ed30108562274d6f48dc25a6f4', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '870afa9e3487d67111dfded4543a52f8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '256290fde970de818f06d6d805b7a867', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5cb28681857f8e28a42d5523282c166b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8ba6077ff92fb398ebe58b4c301f756d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '73d6ba26c2336613a24f1747623003ac', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '34559c6a88096fafb72b0eeafdbf18d2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '92c67c475a53334dc359b29df7ffc0f8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a0a147b0b4c778f0c81cfdb83f366ed8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '286f0a6763b5e1f7a7c202f7c6f6e0e5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4a48bbcc92fe20810249a2f95292eeac', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b394561e1b339f8643c1d6bd94f76135', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '322068277494f14b135280c7279ed10c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd7dd0b78d9c64db703f9fbd954961c18', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '77818352fac5116b9f2993168177d4c2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '98374d0e1bce2412732da7ef6863beb8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2993adfd20bc7b7967f432f24cd6c652', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8ce662f7b2e37a95147bc0e1fbf1e418', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a95261b1c50773f49626146bdeabf2ec', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '03ea92524c67e7b87caa8ddc9cde01d1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '954aebd1f1587d42a3ba2baf917a4910', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fdf0b45310b36c877234a74eb9776ee9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f4811958198963cbbe9fe35b6f9f4195', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.3ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '591df55e476a5c2d1d4bf072a5d30b08', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '29ca4d5323e029b4907d7e7c77c71064', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cba75a21dc07c4d41b79db62a14fa369', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c676015e15d834c0cb1c610e90381d6f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6ddac6e1dc2dfa7863ba04ed8e4f1e03', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5a58590624fa0897e19da72371723ade', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f8ce87370fd2d7d3be1cdf68b05017f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '622bd65dda947876e0848715c41167f6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'afb6ef9f2b5fe1039c10859c8e547155', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0228fc61c8813e26cbdcb4b21010846b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f2afb2cfcd27837342884f21bdfd009f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '181e613644f7c45c35b0f4bebc1c5991', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c5eeca56fbb888239365d60e45683f61', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7fd2c5780a38c66d5063f8eaf70a4376', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4721a16c5f4bbca087d64754ca899b2f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'de7b9b273270891466689c5950691ff8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '658cc1e71c79af9ea778a1b390200807', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '07787154b459ab1dc1b84fc039033686', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '19fba5944834f9bf3012e7cc37960a56', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '810ae637fecd8713cac14ef601b04930', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd12d7f29a8583d6ec97b52ac1ccc3f0e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f78150889f48fcf9a025f12c5ea8e0dc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cca987db3e1a7fae53d35d70dac27571', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0a3fd668cd9f11925898e6254aec10fc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f35ba1a1c774a11870e52650448b1c06', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '004a48aa4b197569906cbb9aa15bb5d9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9ac21f055acc441ef36eb01884308344', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '31ec3913d4d91d812e001973345a688d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '16219c57c4779e849370d88dc08943a6', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '092dbeb892bb180edee018acf0e5249f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b544226a25eca2dedec81b78c3d5bb4d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '323509507c8d1f5dbb61b42448cf0373', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a922540d9a41de7c75b9d49beb111df7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2b4f8d487e95fd2a6f6d3b3901aa8bb7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2ec928146864e340ed2eb43f8a5ffb2f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0bbf3e6d86564c6884934b302e341504', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '26296d76dd1cdc2f3b15bd8d79c9caea', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'de8ca954f5f6edbb4560ae4caab011ea', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f64c473b763e26f92df7e9943044b6bc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '01e2f4a33027bea8354b46b986f493a7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'cd2a427ba61549172d3a3182eafa78a4', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7c54b39293ef19336b3f4ed6228f423a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7fd377d3cceadfa96b612b96dea0ca23', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd6ee3eb2552d8157154dddb50af34a26', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e99c438c9e3dcf4aa66dc0f4baa1fba2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5b8de96730724fc24deb05d796fd5eef', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dd9c48d672cd963eb64b4ba459eb11ca', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f6169b79763e79e7b1e14fde55c7d93e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9db3a37988f0060c87b029400c623028', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd73915908c700e652b8607e277cda5a9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '34ab3c65860302c3079978028664e296', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd59842e4bfc55b837cf021a240dd7f41', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bdfcbed09c8d4c26d2fc29ad1bcf9a5e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '781e8de7772db5aaf19868c9dcb96aec', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '502930256c9189e3c9d20e94e435484c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7302467880d88b67f49981fdd9a39712', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '45a03ce360ca8a2e99be9b0dfccacd3a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '973c1808217b2f904f2603e24d563a13', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4b6ceda755a43f61db7c41ccf4389910', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '093da756f0579af48e3d246b854d8ff5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f05d4eab9f399d678f1c1b2aa0fc32a1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b08c01710291696e4074698d7c9c151c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '951f82a750ca8351882229ca6ca26a19', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eac4d1e6f8f7cc26fe3f7e82a23b4452', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'daa523aad1596b7304efaac00615eae9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e4c2ce577022f0cc264c1a0086f7dab', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '245aa3dcc1cd998fb4225f261e372dd8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ddba2672d6b02df68bfefffe3c4d9f55', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6bbc2b8179977184d53ae66037e04468', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3b9b278e75af9481cf69ca624588c047', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e729f105323295cdba6f1197c2d13840', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '526299e9f520d4245121c618fbccd394', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0419c9fd7f7044dc5acfd9f222b56221', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2b8de30261e1b4bd57c27990626ebe45', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8242b856e68515c1d97fb1679f0ccf0f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '01bf0081f8371c36639417400c0eece5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2ee5908087cfc55908259b32b6392ab3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6a24e137ca596c9475cd505a2512fbb0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd4cf093465ed0806e7db86aac4f31a4c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ae6638e3b8fbf96147173c83ea2af272', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0a796f6d77bb873bf84fd6fc3bc13fb9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '240756c0eb3feaeb86bd7dc595b19847', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '790716fe348e7d4f519a5f8a0ae36515', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '723d75a256c98ac728ee0edc5d1b7dcd', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bbdbbd0d28c3eb4419ae332bb6a35b51', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '33ed8d28441abbc415cec7aa578722a9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5fa758cb11efd555f8a490839ddf278c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3842fcfb799ab4bd0ac65046b4b2468e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f7faf85dbe7d3d2972b3a2af8f25b1be', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f3fccc82702113f7e68d969bf994b21b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8ccca9335ee502d63a76dab6d798a5fe', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a333301bd0d885af122df1ce4d10f210', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0a3ef72043cad05bf36253b07f42d35b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '926afd17dd90731b9b81c648a4f346fa', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '87556850b6410dac2c8b01148a509b8d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '946fded851d0a35a87ef5e7304d78fba', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '833395763400b69b8559a0ff0c8c650e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '481c5dc6aedf3b8587365eff2d8f81e0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a6db2f1cf9e1b817d4960bcd1ce9efe8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fe30b4ee6fbce878d3f346f73e5f74d5', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'bc4b8f793d69b0acb06ac205ebf81f4b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cd05cb34c9257a8f029e22e178297447', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5d0add801a86da79e3e385b68449f72c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b9df4225488abb0b0a0fd39888a88b53', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2910cdc7bcc6b6eb54174d60f391a67c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f54b5821efb82536f5de7625eb9943e0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '26109d161f49ff7a1ac52064ba42ce87', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c192a602894ac3490eba6d9133503661', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bcc986d8719ccbcef5daeeb8884a5056', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a385ed7c7210d531e37eab4d9c5a4e9e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c43d85b67c70bbdd4b8b01dbf3d790b2', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '038f49fb7a815e7b42ecd125b9e011d3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '700702e750e8bab85e93117c77bca3cd', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4cb6fd2d21753f69efb0f0e528e1ea50', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1991c595e16eb9c67e5b4bfe9c1ada0c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6b307e042c1b4e14e6bdcb931767bf06', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '338c9dc63d69643720de8bf74be5e686', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6920d7ac1366a4fa72f54f43a64e1e9f', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8240ba61deca375153071d55e1487e38', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '57becf1c2309fcdd51e58f5250541b75', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5ad726b521224280ff5305ee2266a9e3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c806b27ce22b80f02e6172be8b87f9c7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '132fc203378fc8f48b5bfd4206fbb14c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fd9155a9db198643f40b00aaa0732209', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '24de3a8e5a6c369f67873776e13ee3ea', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'df1b9b1be08f29c22ad93071e90ee2ca', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8982eb502887b5dbd2cdaaf5d23ad4c0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2edcfb34711e666989c36a469eb19dca', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '32ad0681c23143fcfaf76413e1264328', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '76aaaace7d45d79d3bca596e5824f4c0', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fea6ad7440c02bc28bb16042eafb38b1', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fb55ff45b1092ee5d91da038143ecfc7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'db7ea87e01b834d5f4d9c1ea6126306c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2df7fbfdc408c12fa33ee1a325a88e10', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd3c1f68b575bae92f6874fa4841890b9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0b6d36a620ae8e5b9a5b147a4f2035a3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '23a586ad06db373b1dfb2e9e57f7224d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fd7882dcf303a606411384c6d0d54d85', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6a72f105ad58922b0258222b76ef0ee7', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bade3d0cde3093221b1dbd7c7087397e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '58a6f3c52cfb6a2ac0e3c5a5a7bbaf35', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5b814dd707f82e947536fd620710675b', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'aa261d4a9b8a0dd34fc1bd2ba8574c13', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '313a1ce8015938dc1111cc9833d172c4', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '454c7b898bed7a20cc6a0d849e02c5d3', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0e2bd17371de12632c3093118d7be027', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'bad673550e40207cfc92b70048597d83', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '616afca649bd624e43c7d120f20ddb0c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '508790d7a8d4d3ffc3220a6f73da0abc', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c01a6dbd9a50c9d1aec8f2e3ffa4f0eb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0b27dc2b5a1e5fca1a05199013ad7e4e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f9f135fa27292ab90de5162e87b71b6d', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bc37bd9acbb89d1c8e5bc331e8e462e8', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'da2139fce469b61db545cf4394d8b15a', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:54', '2016-12-09 11:52:54', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:54', '2016-12-09 11:52:54', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '89844c5a7d92d1e40a04cfb146975919', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8f865791127ee9c40b0d5767f63530ac', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4be9b314001335d5c956879452f4badb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3da3090200a921340febf050c0020f8e', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'df23175884536ff8d95a895b40e63262', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd18ab58b0c6d2cbd587bdebac735df13', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'abbcd64bee5d7dade8f30ec252caa92c', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '790375c320fc6a02e9fb527abf9208ce', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c90d1101d5a2ed44eb0c98cdb9e01cc9', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 966629572) Fixture Delete (0.2ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c7ce89b7beb68125590bac82c0cfa687', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '52aaa4bdf031faa0126a966e1088ed45', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6fbe851faa550d4a2e2570fba0670c64', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ee24b6a3ab1c6ec4559f7df139066abb', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a51ac64cd261fdd9a088971d41684f06', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '34b3f31d7e835298bc6d14fd75dd3596', '2016-12-09 11:52:54', '2016-12-09 11:52:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3f083e552fca177a31c2d8546b2898af', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e3ed5200129ac61b19816f7a27c353a3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a860bd11616f06460f9057581bac05fd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a38ead2d2b9820e183fefb8e219c9834', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a0db3c3ceef098b55866660e26562005', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9c115b7b48bd49a13667f75820f242a7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'da9496f601596270b3b35a3f6bad633d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd802d833e9d3d9b0ac0b59569c626baf', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'aada03d67b0cac0aaf3a334a4fe691b4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0f739cbcc44869bfe108cf9844ab6bfc', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '401136da4671e3be60c93c766ec067b8', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'de95e04a5d1b79989b8be8d5298d6ed7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '473bdc766b6de17b821e0b470702fe55', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ea34408495270da30282fbe6b4a25548', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '336520d98fe04d1e7ae154795d8a8186', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2d4b7d187e472dad18f74bd02f846c55', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7d61374f78e7b97811d8658b0d767382', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1b68f3de00e930563a50bd25bedf6916', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4f5070cd6d3fafdbc08b2a6d73ef227f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cbcab39abae01bbf999fa472c590e2d3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '07eb12c5cf4d4b37705918c44d85d641', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6a3908f76aef4711ebb8ac3122891804', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd52ef18583cfa224fbc5834f26ee0ac2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0d0998acd2f9c39a27f60d3f33867be7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2250ac0a0420ae972d04c2fe0adc7489', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fa14f76870fe551a48e97011673d12fd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '69610b189106344a3bfc93ca97795142', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4ae817b098bcd307048f103da29eb55a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9c706848328cc15c230abc9ee8332407', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6ad3ecc84e649c89f8faee690f342d47', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '695c781fa276aefeea3f342e996d8221', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd200d406a6423fccede3863527495f96', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8bcc05d225dbd3f7aab66be06b0c1bc2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '58af1f8d789539821d444cbfbfd316a9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7402004a4b44640ddf47cf5c199dfa04', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '22147456783b8bb4f093c273e656e8b4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '23623835c1c1f7c962dfba801b5811ec', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '82a41b9675df6152d4fb3881d542341b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '3483468dc0d1b281dbc12cd9de679af6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bbd518cc940fbb7a8679cc7c63982981', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c1f5118425d90c15ab26d0d25879e580', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a52cb5be9b4814838ce703c987b3e602', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'af37fe83e8d55aece5913537dca8b479', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3732c4dd1e2970dcf76a51790f0c0a5c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '14ee8b4669aa58e46d769d99ce49d1c0', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4290acf34a3e5c9a57824c19e9c5f1ad', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7dfae6f808598f1cff92b96e6d419ec6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4138c8c85ee1530f6c3e35cdf23fdd8c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '16d38eb3c6bce43dcd5838e917218ac3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '3df2ba49e4dcdd5d7ae3d4e7bfa2d45f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1a678ab6ca2d6dc65b96994cc3bd632a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd7fcc0403f2a292bfd707316f40a3a75', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6608d6746338c5675406a4eb0469bf62', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c15727ea498d62be6e861bcb598df01a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7b9cd31513d19eb9361f05ceac7e1635', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5a8b6c2d8b1baa21097f95e34bed556a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8484a03119241656537a213d8ead24d8', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e7c92997d333c4683a8d055a4d77c2a2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f3eea6dd6d462633a58e1532ca96e91', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2a5abe5791671421c6281d6f049519b7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f61df590920bb85b27a73a83d3d75fba', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '17f45d4fac5735d0cce5cff94be89352', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f4c5b78c8b6704edb739ba1056aed05c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7ed05a3acecade0d42c6cc3d77748e2d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd95c4c0e947173dbd928b01aa6b1a720', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '361c3f51501374a9ac2f4ea18fb36b9a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd0f7ca2e3fd2ee24ebf3394e36755e3b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '65dd30250fa2edfc897f60888e7de14c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2494c3953317ebd7205b15f7296c853a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '38437864dbc0187cc5648b4abce55191', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1547c0c02331d5a566249cacf4c889cb', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1a6d2d2a0038d98245fa96e6e966fc47', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1d4ffadb988563aa18528ec82de84d77', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '242d0c7c740cc4e0115afbcee1dbf8da', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '75536d56f418b35cc6427656b6993f1b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '77849e7de75511f4c581c3e46ba47243', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b6ac6f71e979fe10c9d7a59d167236a6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a8b8ffc5b5569192ff17056ec823dbd9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '32521fa6d299e1dae6aabb38f62ace9a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b68c73a23dff2318a6beacf6052fa0ea', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'de9040fced9f3a253d1b0e0c10969ee2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'bb05d9f20d4f3c22f58737025dcf9bf7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1329e79cb21ae4ce50ec32d2d0ef57e6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'bea6bb1974b88478c7f69a74fd820a17', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '934ad4b0ae2f29603b791c03ee2f49e3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '801a3d4e31cb5e676ffe41c7936b8daa', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5a3a411dab35d73dc817a6c9c858e360', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '52b38ce0492e25b4ab156ba9cbac5358', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1ce8c1cf320d01e3208b6510577a35e7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fff3bfbd75fd3ee4413316dd7d2b538e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '072ec36ab9619b47974497dc646a893b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ef18a217390404220404a6c4877a2acf', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d69b724baa2b6664c768c1439df58f6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '05ed385f3d010d4b358cdfcb15563474', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9ad51c9fd7c70e67bd20cd3472f6db0b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3ef601ebd9894df3811955a9b86aa562', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '07d534e763ae4255f004698fd9b443f2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cb32dfd6bc92fcc09c98d26e92473bfb', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9990b63d4935d1aff561dedf1cfedc94', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6df431036703a9fb403e4df529eb2c82', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7a1d446a2c4204f70281c61e440ee358', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '29d6af64ac5931ff68ed22fe9055db1d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4497a8c5108e14eec2e3f6fca3f81036', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '91a5ed27f39c9a33ff5548d676280ecf', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '05b12ae1a346a4343381ddbe3d3fda6b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '94c336a50cee736cd1c97aac7a709dd7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '63b1a614fdebf8d8c6d0ea943d8114ab', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd888418168789628890d18ce81bee943', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ac14494af55eb9b67786d68203d7ac67', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '33fb7a0d91ce61a7c603382b69c12155', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '71fb0def7cec749b58edc68bae187fd0', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fe56d998eeb9aed1d3b6dbfa0e48f61a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c4c3dde725fcc0e75c0a7bab1e66f9fc', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b3b5284b426828bb7fc31262969c2cfc', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '369d717892ac57cf7ce64a2530f5d10f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '18e4710e0e67d6e6637a99640bcac79a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'afcabed14fc8023fa011e96a8f2d40ad', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f59c055632675e453cb36867bad25390', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f9fc13868ffd7eab9692f0144db8595b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd187cf230b27b77c237d60745dc30d8e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.7ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cfb792976fa4bb7355b73d754e969b72', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd1501a1a5b85596137061e77a4ac4ce9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bcab4c7369e826dc8c165b597cc9678f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bef66dc1222097cdd439e9a8c720233c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4c9075420acd98227b3a2c7591ad7bf5', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c10c762d9227be0995bf4ed92b07dfb4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'fc95010e75e5cf441abdba45742556b5', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'caeb157a1287d1e7578201b8b66d9fe7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b876a68056f5ea3cea18c32f2d628469', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '682287216ccdc1e3c0387dcd803a2f9a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd6f1cd11aaf6047bbdf0b3398ac951d3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a98d5eafaf20237d7dd4c22edee7abc1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cdbc1393a39c6ef124c87878c4bded0a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cbb53be2c1100d6abe53bf4dc06ca0df', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '31512b228f13113f547cb476dfe1ebec', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd7bcec1d9a5b4f905fdf5f442f0b74f4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '63c61f6a0d078945c8f07d5b7f9b9959', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dfcb17a9dc8231edd83e6885f54136a9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6edc1026c3b5a9e8097096ad0d7c394e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e44c1bb18f0334ab74c970809413306b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '30400f4286367ea7f4c02cf8094e0a3f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '56a748e1b39094e9aafcc39f6ec2dfe1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a830e73454a5fc37d8db6cf4718260ec', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ce89bf21e3adb5732efe06dbd700eeab', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7e294b1195251af366727fff9c92bf2b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '17afce37e1834ed90049bb8ee9151d19', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8a667c884d0e1237d0800d21347abd5e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c1b10a2a2c22e8168ec5185d8ac092d0', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd6c3edfb948f1d7d65c032e13b969d82', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '948af5aa8c31373e895ad775ff0dec20', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.3ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0ee9773ffd7cdae31daf9f1eae8f6e62', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '848e270b043c39df4d40cde9c4ef49fd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bd8fb35b86bda8597a3e7ad49099aee3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a1c72905b150fcb9573d500226ff2b7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ed4dcf451093772d7e54bfdcf5dfe9bc', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd59980a2e637a77220638286d58050e6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b8b09ccab3aba8609775c4d210c1023c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '9250e115cd47505711ef823f2e8fe103', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'be6153b34277fa84f3bca0df6fc81831', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a29c09a3e341d0f9b9a53b2c219bedac', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e81f1e2af4148fff475869cea1d2fb0e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd8536a06ccdb9e04ed90e02750cd79e4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ce3e5c8551ed628546d04fbe26513392', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5b0fb794c3e6a4336c6fa13542753dfb', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7a1ea6245ea61bed30e35bd5456b9d38', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.3ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '006a9b25f62466a0556c124a38e08ee6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '992e47474c1437d9b2baaddc74dc4eb7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9dfc812427ea7caab0b49f9a8443b6ec', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a30c113646714877b30614882e6c13ff', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5705ad698346099ff598a3dd07e7c26f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '58857fb19bf43c71f5531c732bfa1ed5', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '393c86991e50172544d76684f29ef207', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'eb5b817595496019d4b4d680fa9aeec4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '8fd71f59d8fd68adb050c4ed5d5f40c1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ad7cfbc8eab4a6950fd7a63a18f05588', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e16f340556adf93385078d55fe0d2df5', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'da9f1570ae49430742ef515e0893bcce', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '360b9924f372027cc21af983183fe837', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01e8fd0e53432ee3f11ee93e271eb89b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ded3ab0969e454ec7e65675d90552f11', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'da7d02aa452ee88ab3da18bc57131c08', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '70207ebe14436d3e8b10e65da4d9c4e6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '621239f73ad4553274f30a3ebbe98caa', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'abfd74a83e33a1cfb9184f26e83ed25a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e0862c15529b17ef0b71e8e9a62dd4b0', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '28ec63bc64b660db32d235e9d3bce187', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8e1522d2a4c311dc838ff7f3927eacde', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'cd252a1a910c911de44bfa172ee8cc7b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a90e9f6a4318c90c72f1de7b7d98b82c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '29391b021103e99fd8de7397251f28d9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b39b72a3fecdc4bc8e6467394aea163d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f6257c96977f608a62117ef3f0f473d7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7add2ece6543f36e0dd4cfdb86c6e9a3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f5f4aa2f1b057b970565438e5240fa6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb0dbc731752e1b8b1387cb797fac982', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.2ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8347a28d022fdb11aa1dfb777d351aca', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '603bff2c7d9f65c9d15bbb6920d05c1a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4d2e8cab244d461bd5ef73aac0a316ad', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '213eb157520e0f946dd7bcf4d557e2b7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '04c6d725d0376e59db69065bcc27d798', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c0e4696dd4a7687b28e715e703d7047a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f414fb40c05797357add56218e2a763a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '853e4f10ff1e86325fd331272f4a66e7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '91ec0ec7d50a132c254c3adc66dffcdb', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '948c630937f669d8476c75b862b085db', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd50954f622ad94887bb1658a579c5ee2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c5c319f9bc2d26af0960e53a48eeb1ed', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bbf5aa4818e2962be2d3583ac1f344cc', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9f2b5070a0944b3159a053ab74bf592b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bef1d7884063ed50d570f7a961f8931f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.2ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.2ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0827ca7f2711bfeb2812bca2dd1e4adc', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '291c41cced7e9280b354f2aea691faeb', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a72b83e2337ef15a4bfbd54277bb01b1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1ee34370985a39adcb271c2219f87756', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '71addc58af844c93b68522d893212d1e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8400c8dd34225e6b5f1bfacf13fc771d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7d6d33dec7d5bd90bbb92b68152d8c5f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '73e50c711b433531a5b55f0c2ca6bfe8', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '881d05d32fda89138d868b30626ff103', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'eec04dd58b2272f0d3884c75b084f865', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'abc58749d5e8b0003afabde0d24286a5', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f3c0b20edd8c7cd8c7ff551594bcd808', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0dded4effcaddd8024521396f41bf008', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7ecb57a28c52fe05f07edb92c0f0a407', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '82dae2546cd0a7b39299b2969d1dae3f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.2ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd00c0897a4cd5b4a427bbe4f1a25a305', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bf3a82c5114abb1f01f1fa8c3a51caed', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c92e709740caade6039a297c815c0c32', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '748c45db59f3815421f85b6cb84843bf', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01154f07d7db67f1686fc05ca9df7ab4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e227233345840220e77fa39a9c9e049d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f4abd388655f800afa393fee5065d14f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0148e245090fc72a65504692e970e664', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '74c47b931bafc171dc7db263fed63352', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '639e89da24e19b7a49dd4cbb2706f116', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '84e20842abe22f7549e3918db37514f4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9bce2532da4dffe8241375bfc04b69ec', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3d93f94bcd8341ecba6fbbb9c7e28029', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f0517523a6aece0d0050c2b345573b08', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0ff5893a2f29a9d811c1ab04650cb42c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5d89f45beff5b397d5c767ad49774823', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a82969a6ebd440bab55dfac6418f47bb', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '62621dbeeaf76d473aff0c6a6bfa35c1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c7d1f710cd3214b51d75d27eaa843f86', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '52af079faf456e1022e49fd9a9364271', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'af95687b24166a1bad78897b828c290f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e78a38a21ea11989db87b2a5df79cdb6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6b29f172a523f54d76e6e12ff33be888', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '66c111397df042d98f1877fb06292470', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '416650ae7045bf0f5e8c789dc54099fd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7e9347946b6a7f3c5a40f608b74daa59', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'db6f5816203048ad4847957b1a78719c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd2eb716382b68105f1ebb671c32d0b94', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1285f49cc50cdc88fb01dc0355ae300c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2cc7ff98fba9d67c5e91341e102a2196', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb757f56d8c054354526f592caa99e11', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '715db090477a98228d6ad1b9df8807fd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f5cb5217dec7c754ce34a0156d47137d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4fd09ff96de1860ed9c3ba24ff8ac129', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a8918b067e3f3f82e578a21833da6cf3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c5aaeb3c2d2f8689734ae94b11465b34', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7826fcd5a63e0ec950dc918d87849980', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e4a3a759e517f3ea0d6bdcef4c508f1d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c0358c3c5bc6339357b57a6f35fe8ce7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd3710b8e24d174180f43b51cb79b7d84', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '76c3dd8998745337ee54255af7576fbb', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b0852d28132c91d039f9c408e57027cc', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0ead00d52fb8cf3207a0662e40fd7d91', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e6f963167a2ad397e7d8ca60ceb8c0bc', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bf9101bed8159b45b07bb080abfdc53e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '52f47ae25881ba643b87251c764fb6d1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b86bed2dfc12da9e5e37a52926f18539', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bbd592c45096ecf1e4cd3b4539ace24f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7a156efb6ec6683060eeadad478fe7c0', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd1fea32a414449c0c5c67eb271f2341f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4bbf7bb9e78c9caab3f3d91df9d768db', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4c13867ceb2a0c49dde130f61d36b579', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '061bad9bef296fe0d055edb0baee22b0', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '4872de0ffd49112282cdfca1036c63c5', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6089efe3535cd0c3422b3766b7dcb43d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2571888699d805baa2aa53c405648010', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6f915b6c48121a7301580f3b55bc8829', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a8a993691f77181ab1e4a34d0605fe6b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '09ce867d30512c1a37faa48eae8f1a55', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c51688c637b0641602fc5f99a1a7e729', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.2ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e4d74268f2f277f9dc4dcaa835f2bb07', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '86b7a7d254a6d63f4a58d8ad23969d18', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ff455c8ff12b37e675385d29cb20f9f9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0df37892c0c28f674f74da6b82c92955', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '392d982f41f539ec6a3df76a2b8351b4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '98c1b21afc29229dcbe325e55014d93d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b40ecef1bd84f61aab888e8208f5e88e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '5eb41ba2d8cd2c8043d67abf458f8dd9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c17ad9ab7e54297c724ac0326089e385', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.3ms) DELETE FROM "tires" Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'cfadc9c7ee18ab8109c09fad30c538a2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '2b060472709f438de9d4a6527c519e4f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5058f8282f88b73946b9aa2217e3afc7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1e144f81442c66703a5fa8c0bcd371e4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6ebed76814ca2fa1da92005872516e07', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ab5d28175288cfe76e7ff4a680819686', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '44ac1b24147a94050a927bb39ba61633', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8ac44c5b24d4e695a9b1fb22c9f1cf45', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '24c504411ac713e62709f9d96c99fb8b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c95383dbf6fc001d88e53ae8113aee27', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '956a68863c9a7819b667ea2d4a76b64e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '69cc5ca7ffb73275fa2b96f5701b0913', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'aa57440650231ad02b0d62723a8bd707', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '35dbc20ab1f02fc7198f4bfc066d087f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '604dde56eff1d70648aefe7c9e182a3e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '14442fe21261b004e1822eb42b1e4a78', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '02ea1be7095ebd2212ef4a25ea9826cc', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6c077d8a1506794cb5ef3226d15ce3df', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1d1b1c987d79e21af0365876d0715ee1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0b1ef663d1b3f99db15e0e8a8e87bff0', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '741be3ddf80333273cdfa47d0844e649', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '133ecd432664b5a5e9e70170c8f1839b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'be367f3538b39ae46ba038573571647a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '134e21e78d20d284801ed1bf2b068dd4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0d06951ae45fe286d976ca0902994706', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4e8e1cdc6bdeb5cbf9875cdd2ee1a9d5', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e5448afe71fc42254a6c501aa040b68e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f67a324e912797823af4da3b46ce1981', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f78cb50f70a8e97ed25e6d31f72071a4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f96b15202bde6f0ddfce2ac6bc4921db', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c6f2eec293f47c79627cf8420fcddf26', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4ed2b1411999b23cae9e3056bf17fe93', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '737d131e1263a6950464ee611af77387', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1c027f73dff951f689c4d354877f4a71', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dfaf9fbc17132087743e517cd483646c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '184e88510cc3e49381757f27c7bc7024', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5f1da27810fc9beaf1199d6c229bdda1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '310866065eb96fb9e532aab2c415d963', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '08650bfb2278413cf2f69c4d020b3803', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e78cb2a0b2adf504b9ffa8a80360bef2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ac7d1c4a798f2319667b6ca6ba7ece4a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dc81262d9bc30d4603deedda596033ab', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '12c6d89f28b75ad49d71b2d0aade90ef', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6631d343179b0fb3fa1314a70b1e71a8', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9ea6ed5c34e9502c14dbd623ba3b3fbe', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '87a645462d3228ae91e3a15a0015fcf6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '122f12f0d9d4402089ebf769c0863d6f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '68d5e797ecb4421b8911bcbb452bd704', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5274a3e76b63d2e4c132b8e65829a13b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '814a848ac127e801061b9c3e5cfac473', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '697bfcb9fbfd3e8f7ac4acfd346a1b4f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '372926b5e5ccbceda291977f65514d49', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '388879ec5d64c576cb8e951b75dfadff', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '08172fa9f857bf12007bd97ab297108a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '63d305606b1438ff92698fdb4d734145', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '63b8e3b00f60517c321c095755b85168', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '663f2468dabc20741c5b3d9e7e39fbf9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9c6f7133ddf91a923bb5ec291d084a74', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8079369b248fe8f990d9a123ccbae3cb', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5d23f2a16ba8bb5ea54ad26373ceac9d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1ba24af2bac5d014ae0b39bcf74ec61f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd0b7b38efbe095aa7da876a5f4e41128', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '14023c7c2c046621e007431a9aa39d5c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '717868ebe222a2b72cbc1665d298aaf9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '32010af0c1c09ceb7fd070469b48af8b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dbe52cf32767845344b44f292c351ad9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.2ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.4ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0e15dcf1baa984cef9d4a9e99da55de8', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9dbdd26b1095e2c4d015d3f4fef074ec', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'de434ca09ca4aeafedbe17fa3d639088', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a3d6d5931534fa919e3349c0d09a3dd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '89fa0c357cfe0b8d0a3b4e95646f9f0e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '70bf28c1ced3ab4fdf2fe3bc9b86e53c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '5d6a25d39df1f1bf1da195b308c09521', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '1d518bce1cda0bd03ab3c63dcf1fb792', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '34799c6fa73f1e2a9d371f027b5ca2f0', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5b1e31edd71f1a434a71bf80883a42b3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c08832c8d9a940af778b5132ad15763a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'cd7df20cb3d14595c511d9e82c9a09ff', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '83caf1aa32504196c2284adc7a76a0cd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '04cd7bcd736c0b388637a92ff5e3f06c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f1c181beae1e6458374d9ec299eba5d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '54378ec3d37df4b67bd69df2bba92bb2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd3efa4ac807fd66ce12efcdab249bdc4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aa269d960b2ca7013e7e84141b7ffe65', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '860a47f2076df31b1a7d53fff090f90c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '12680e43a9dc4369e40f2b72d2711886', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dc7d041dfa1c0a70c0b1ad4fcf4d820c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0e0315e16180aa2d36de07fa1edec8e9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'aa358676e1659b0afd27f76a77eb36b5', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ad2d755b2baadca8c902eaa11f661ea7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9ffa457c8bb6904ce305a3045895b3a3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a1c1bbdfe33f78dcc00d854268d72673', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '461010f96220bb3ec49f338ce1d949bd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '940118a2d4eae6b865f967eba6c03607', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '54a1e723f1ad0c3a9af23b2251956fe7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b739b47ae86c91b029e91a59fcc22c1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '38185f6d7d67f8305b923434cc9d0af2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9c70f33ab875ade6603e79195fae7680', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '90a3830bea47cce3a955abfbf741ed19', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '26d6ed6be8c394890669f0971d13111d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '32be6962f68434c80bdac79c3b84ac3f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3ba85502e95aa3cf693cbe30ea013f94', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ab85ee08cea4aa3e4d3bfe9662123987', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '6d4ff0cb169e11af2f3f3404d3df0ebc', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '76b3ce857c22cc4641fd704cc375dd59', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0f5467ef577b83bdf3cc71dfc2d1f628', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '85cc37cad4bddf44367214c231e9e6e8', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '26180a395fb3829e9c1afbb08b52de45', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7b97f9fdd35fefb9176f12957165c361', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '87aafb0bb99a650b8452ea7a451eb43b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ddd6c76edfa1c685481a853b4cfc3178', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ff7051681fd988e93e937ed15786f2f9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '827c490d89b19410fd5f3641f13d47b1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dd258edcccabd2227f6fac928a31aa02', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ae9d84efd8640d903df5da7568bc4ed3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '153803042bcd0571c52250bcc97f6353', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0bc5d037c5d1f6dac9f73c9f2833b54e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'efc2a1aff35d5a94ee5d556b313fd6c4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0739fcab34ac3c5a401510291caf1813', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a6490d9be481f2b7fa2cf8d3ae121445', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3cccaa0fff37304348c79992e457c9cd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c0dba5799574c1edcb4053de4af5360d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4f8fab582c8b74c4527a6c8dc9a58fc1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b7905fdc454e566cf8d0d385500a76b1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b58f9d7f77d2a71d1e20942ce016e705', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1b0d0aecc215f300b4c04f56638c0cdd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '187bdaf8796852b703d496b1950a19d3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4ad6a87a42a8867e6f4f6bb9a5a8f88b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8068ca7fe2c6c80753bc4ea1cd551d9c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a2949b98b9d3048fec0f59d01904164f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4504495242b49ad31d2074e6ddf22693', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3739154f3ec95bcf70cca03f7e0793f2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7efd44c9d52e53c6477a76277175da60', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f99d295f1558833af82e8e300442b862', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c63114a7e4807b05ef749408b8183c8b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '17d988608734ee4c65394e8393dfb10e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3985a31449b919768eda7b689da937fe', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '52080122c7528ee834a9651d2f12686a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd1a1126164e6d040df9cdc5918068c2f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '38302aa62ecd01e383f305299d950753', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '61b611fac67f7ea9dfbf445da04dde31', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2f0733b157b19489bbb3318252384a60', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e951b400208bd5d37e5884ccec6324d8', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '187a99aeb652175e389da69f794bac1f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b7f9e36cc5c7b700d71b4fbdaa9a945e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8d77a67fdaab7f89b551bcb328da89f9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bcb884a32e13eafb68269b7bf5e8175c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6f9370d752093efaae57ce78c114c173', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '88f4dc5706b24987c9c294b89e4d5853', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f06b04e2aa62cf071f9b5c2aa0abdd39', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7e4c7c97546967d8717c4e7c9c258e8e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '84da08aac24eabd7d72e099432523780', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1fb220e85442ca3b857b5a810346048e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a24284a8c65df230908e1f58b8787332', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5d8ff2d8468f4a3d3c19649b9793d36f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7361c0bf102d597f387e13576d53e8c7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '515cab07b751cfb139decf0f6fb4a46e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a2333c73566aa34fde7c8b9229dad07f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd247656a824ec107ec10768f82fa754e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dd42448d2342d71923608a6bb6dfe7e4', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7beccf064844b5f973df27234b05da43', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.2ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '22af86f18b9fdb68062f836eb9eea405', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.2ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f1b6292cb7c3eb1929555b43504e62cc', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'dc26a7b706971411ae9317d828212e76', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c32855a3c3eefe9eb5daf92115834eaa', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '6258a966185f5bbdd2d154391af960cd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4442b64598b1bf7565af423f72d4e588', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1aff415d0ead639c84c66db61342c2f1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8f7f2a2e60ce73f84d2106f5837d69b6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '44bcf0bdb484a0245096f0b48243ae00', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '33dc6cbcade0e7345bc57608fe22646d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '84e9f38a472b4d9bb2327dc6a0d61a86', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01e0d3df2cf9b551d4f1fa79ea280212', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '678b1e51fde671006067d567fbc5fd7d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b0ac2e14a63605eafc720fb60b59f422', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4143966868f3e3625b5f9b2265a89140', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '84f3fbb151a1dfd83fe2a2533278e55e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd8598ae29263e7888958424b0d98bae0', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f75cf1f6c2406edcd6a91af8bf43231a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '91f4e8baf46b18715c48b118c166237f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'fdba9bb58f0b2ccbd781f7fdf1c2d8a6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a7c7f9a9ccf156cadb8ab7ee1f485303', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '77e6ffd26111195642950bc0c7fd11d1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ae91a0562141263646296d119dfaf89c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '72c5ddc42f50bf8db175193d65c8e9fb', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c803ac16e3fb33ca1681cc1db1e13e67', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.0ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b060cff0d1719e0ba097fc7d71b0709f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '24cfc81abc84087ee092742125488bea', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ecf2e13c463be46b59c924d698019a05', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '701caed55ad22191b7daac3f31802ffd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f6a63581545ff68eecad337f2199b37a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '10c084acaef52e0a0a272b59da7a2630', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '80817804bcd6e2067e972a0590dd35ed', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b7af7e436559ff79b357e9360fd33187', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ebb4d5a029060e7bcdbdad19b09f3382', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd65da4b2d52b66c9f73b2089d60c4cb5', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '82640bd6439691398c5e07638fb3984f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c9540f8bbecf38fd4324611901f1122f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e710f6bb8743ef3511b34c99c152fd33', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '085abc8f8f9c75964b918fcc2f4be429', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c1ebab71aea8a563f3cea88e9545f1ea', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0ca7ca5b0b42f826441ae2a6f5c9fcff', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '541317fc6d2698bef80718112f73c566', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dbc6c0df62f05178eb1abd09f57bbd19', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '013cadce667fbc7ca03a9d90db3cdd43', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fee22406c7292ec707f031e95a05fba2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1b226bb2009516bcef89f75bf3543f5b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1c90ef9008af247e58e211a127fdc1d1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '91e6dc035e3479e030ffbc4a542429b7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9886c2d4fc3acd35879ccc8bce65f8f5', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '96763abad57477dee24a262c0596cd35', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7c4db920e0132ac93a052e862efb951e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9c38a71726f4a14c4ddcfa0ec1d3efd8', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '75732d705f748794f0b6450763ce8109', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '392e0a02e4fcfaf6a614858f90e5d7b9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8a5f49951f38fbedd529b131f87c5199', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4915a533771efdf8e7454312be38062b', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '29fb12bda95309f52e67b088add659ae', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e5fc15c221f67842763f12cc114176c1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7057fd8aee77994937a78b4a83a13949', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '76b3a9997bbd6f173647ac9d2df04fab', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a8e27592913bec2f62704ddfde33fcec', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1631090c3bae23faae1d008d6f0eda58', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'fc6624a85d863645d7fd0a140b98d98e', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '139a8c23eae18a69f8c9834bab9e39cf', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b4b858dc273909d17b9c520647ca3af5', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c632271e367d8211642d6d25ce5a7787', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2c85fd1cf059a1c13bb5c870812b6736', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cfa98a6eea68bea4769630354ed0d048', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '729b9521334be3856fcbd5ba7aa45400', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '20da810f2cf3c590101c387246bc2902', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e2ccdca92ab74f301c74452eaf4f85d7', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1a7a89e281358e9981d9f960600c16e8', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9f9b7a98c3839b84e9237a996918b4a6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c5898b62f4338cd1b8973c5a07da5022', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '25d07745ad9ba69de02ad0844a347ee5', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '78ef2384cd69ea108425e83e33953ac2', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a3db817785d0d4369e3afe21dbb5bd45', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ba6b41191374e1647c704dcf13b86536', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b16d04378a6f222a7deebc9263c053e3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a0e79f4c9381f325fd5fc523acac21e3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6a4582635074abc0af934307fa13f3a0', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'fc39b02df7be05074db753039d439b01', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '66ac51e7a0fb2160aeb8a13b83d2d485', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e990caac283b324f4b443325345fa5ac', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5e28602f7982b4cc7d49284f828a26e8', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '794d8cf448f5bc255ac5316ab60bc528', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd68152bc999bb2ff3cb9791c23f205f8', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '770286e0ba9ab85171c12bea78e13131', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '254df14dfb10bbe2168c35f53675e555', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '128730936dc80e70efe165010b2f8584', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5e2f3129ee57025b203fe58ed10b64c6', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '51d161428bfac3053a3cbbcb0a4dbd5d', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ab69d47e132cfd25f9b00b189169e3d1', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '85863aaf5852d325ca968a69734d7fdd', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4221142f31c4597e52c2d1a4ebf2d330', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '8c6415a0eab43380c667ff29d32de73a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'db44194510cde1863aafafe3da156c13', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4e3ded9a38f77cfb3323f5c375c880cb', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dfb619567466586bfe6ad160b0a41589', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b2053965c30287849fc290277d455f0c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c69d90f9517fd4d3b507e0ede7ebac9f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a714f3bbe098077d7f33c52e25bca652', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3f039de46ef64466934a6889a2d11fb3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7531a7fd0c0cd47ba033bacdb3150d25', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '755a0964c2cf9a0d0a0fa7259bcbc858', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cd8120fcc352033532a8198567dbb82c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '628ffef8b15ae023ba074cc6adb116cf', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '00d573c629fb978d1e38aa7ab3656e3c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7e9dede395aed73a7bd4ddebf4bbea95', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'a7f8da1fce7c8c2d7862b6d209f51d86', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3f308c64b79868d962d16989391011f3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c61b3484331011e72322ef6619064c4f', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '382786f6f6865877cd60e563ca079126', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e87c2916d268120342b103c7b66e496a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f040fe6cea647f2ff64f142933ca6f45', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '097fe897c05fe488f2822225e4a7300c', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f1af50172f89cbdce1e0b32fde41a508', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5dfbf826c2a8b8b9b8694fd97e89fb68', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '118b8a70c7692893f4550f40cf59d0e9', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a94b6d34ae46972f1e53a020e2652d00', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '97dd4eedf94b63573c0a34c49f060d1a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '00508703cd4cd052a601825c3e60a901', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '95376fe44bb34a00383b53d913443d04', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5555ee9aeb2134d95a5f85f633dba7ff', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.2ms) DELETE FROM "geo_locations" Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '14d5b8edeb89024b1304ca145c0226e3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7ad8224e22715994cee63df4186812f8', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ce1cbd02bbe61424fb674de3fa1be247', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd66b6957b07ef73de7ee2db726f10b52', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '665bf4aec42c004b34d21402dc4e2c12', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '1fd4189f1f75ccf1cdcf3e85fbc5e563', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.2ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.3ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:52:55', '2016-12-09 11:52:55', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '80cb958dd632510ce93ea024796f1e5a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7b7fea58ff437aff093cb63722064f63', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cd6d00714e20a7f18e9c366ee163863a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb209eae0fd109939e0f5908ccc71ac3', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '799ca1659d1d0d0507f62f271801cd97', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '611bbae8148385afbdc1b282bf89e4af', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '912460169b7d93eec4a1470529f0ec91', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '748afe1c1fbc0e74dda57a046e01ed60', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1a02d2e0392dc8aaaabe828edc473709', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4c25e84dafc666541382d8a99ccdde33', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f2d7bb8a2916d7f3024272559c3f3d34', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c549d80b3e3d2ab835cd2bac024ca330', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e0c50cfe2aca17011ee5310383d2d60a', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '305057f42f4b1f405e60dece229aa308', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9e0172b0195be35a1987456ee9ec85de', '2016-12-09 11:52:55', '2016-12-09 11:52:55', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836) SQLite3::SQLException: table events has no column named work_order: INSERT INTO "events" ("work_order", "created_at", "updated_at", "id") VALUES (325582481, '2016-12-09 11:52:55', '2016-12-09 11:52:55', 692230836)  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:55:35.038648"], ["updated_at", "2016-12-09 11:55:35.038648"]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 234], ["created_at", "2016-12-09 11:55:35.076368"], ["updated_at", "2016-12-09 11:55:35.076368"]]  (24.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 234], ["created_at", "2016-12-09 11:55:35.114205"], ["updated_at", "2016-12-09 11:55:35.114205"]]  (21.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 234], ["created_at", "2016-12-09 11:55:35.149468"], ["updated_at", "2016-12-09 11:55:35.149468"]]  (31.4ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 234], ["updated_at", "2016-12-09 11:55:35.183656"], ["id", 234]]  (24.4ms) commit transaction  (0.3ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '36af64f92c0daf4106a6c7bf8f7b625e', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1efa186f076bb44cab1e764d1dae445a', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'df3ab3f9ebb7c02af38dd81863fc7510', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4e0029fada5528542ae8fbcc73159370', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '29c5c6d1d87238c0211cb4000f4a8959', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '56d44f7d1a088defdf5f36bc38ca5217', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '8c05657599f503c4ba1d2a12723aa516', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f0c385466b2c6d67bee713dbea2ae516', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7ca857af5a03f62da062c80cdaa426db', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 438300604, 336964236, 849808553) Fixture Insert (0.2ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0f5f51006b78f8f747604d7fd60803c3', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6b4496aa3864abdeea40fa254ccff6a0', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7a81bb3152afaac94269b640f39792bc', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b27190d21e26adf854e08d0a6d965c17', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4060984e5e3f4cd88ee999cfcb6bfb42', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '05d19896c6ca7d48484bf4af4f4e2238', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 692230836, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 243566599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 463383467, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 992936599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 22684094, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 919954624, 920752818) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '36ecf277faabf3df63589e25f434ac4b', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '220fc076d95b2384f8993e492b704ac9', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '330789ac909d8cdafaa304af4d0bd9b2', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'beb4f5edf3695bdb600b8bec103d0704', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 11:55:35', '2016-12-09 11:55:35', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '9546795c8614c9dce434f2b933445737', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '99e1dd0977773e3c3c6b6439bbd76ecb', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e088e9fe46c5730657c61bbc7cba81b5', '2016-12-09 11:55:35', '2016-12-09 11:55:35', 410780858)  (23.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------- work orders has_many events & events belongs_to work_orders: test_0001_works with camelcase realtions ----------------------------------------------------------------------------------------------------- Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = ? LIMIT 1 [["id", 463383467]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:55:35.533552"], ["updated_at", "2016-12-09 11:55:35.533552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 235], ["created_at", "2016-12-09 11:55:35.535600"], ["updated_at", "2016-12-09 11:55:35.535600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 235], ["created_at", "2016-12-09 11:55:35.537813"], ["updated_at", "2016-12-09 11:55:35.537813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 235], ["created_at", "2016-12-09 11:55:35.541215"], ["updated_at", "2016-12-09 11:55:35.541215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 11:55:35.558490"], ["updated_at", "2016-12-09 11:55:35.558490"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 11:55:35.559695"], ["updated_at", "2016-12-09 11:55:35.559695"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 11:55:35.560593"], ["updated_at", "2016-12-09 11:55:35.560593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.3ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 11:55:35.583833"], ["updated_at", "2016-12-09 11:55:35.583833"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 11:55:35.585913"], ["updated_at", "2016-12-09 11:55:35.585913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 11:55:35.587302"], ["updated_at", "2016-12-09 11:55:35.587302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:55:35.591548"], ["updated_at", "2016-12-09 11:55:35.591548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 235], ["created_at", "2016-12-09 11:55:35.593524"], ["updated_at", "2016-12-09 11:55:35.593524"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 11:55:35.596146"], ["updated_at", "2016-12-09 11:55:35.596146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 11:55:35.603824"], ["updated_at", "2016-12-09 11:55:35.603824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 11:55:35.611202"], ["updated_at", "2016-12-09 11:55:35.611202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 11:55:35.613207"], ["updated_at", "2016-12-09 11:55:35.613207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:55:35.615184"], ["updated_at", "2016-12-09 11:55:35.615184"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 11:55:35.618604"], ["updated_at", "2016-12-09 11:55:35.618604"]] SQL (0.3ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 11:55:35.620102"], ["updated_at", "2016-12-09 11:55:35.620102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:55:35.624915"], ["updated_at", "2016-12-09 11:55:35.624915"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 11:55:35.627631"], ["updated_at", "2016-12-09 11:55:35.627631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 11:55:35.631576"], ["updated_at", "2016-12-09 11:55:35.631576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 11:55:35.634215"], ["updated_at", "2016-12-09 11:55:35.634215"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 11:55:35.639387"], ["updated_at", "2016-12-09 11:55:35.639387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 11:55:35.643266"], ["updated_at", "2016-12-09 11:55:35.643266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 11:55:35.644631"], ["updated_at", "2016-12-09 11:55:35.644631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 11:55:35.645830"], ["updated_at", "2016-12-09 11:55:35.645830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 11:55:35.647002"], ["updated_at", "2016-12-09 11:55:35.647002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 11:55:35.648196"], ["updated_at", "2016-12-09 11:55:35.648196"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 11:55:35.649626"], ["updated_at", "2016-12-09 11:55:35.649626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 11:55:35.652849"], ["updated_at", "2016-12-09 11:55:35.652849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 11:55:35.654165"], ["updated_at", "2016-12-09 11:55:35.654165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 11:55:35.655414"], ["updated_at", "2016-12-09 11:55:35.655414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 11:55:35.662749"], ["updated_at", "2016-12-09 11:55:35.662749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 11:55:35.664052"], ["updated_at", "2016-12-09 11:55:35.664052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 11:55:35.665266"], ["updated_at", "2016-12-09 11:55:35.665266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 11:55:35.673718"], ["updated_at", "2016-12-09 11:55:35.673718"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 11:55:35.674773"], ["updated_at", "2016-12-09 11:55:35.674773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 11:55:35.678142"], ["updated_at", "2016-12-09 11:55:35.678142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 11:55:35.679603"], ["updated_at", "2016-12-09 11:55:35.679603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 11:55:35.680908"], ["updated_at", "2016-12-09 11:55:35.680908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:55:35.688006"], ["updated_at", "2016-12-09 11:55:35.688006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 235], ["created_at", "2016-12-09 11:55:35.690259"], ["updated_at", "2016-12-09 11:55:35.690259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 235], ["created_at", "2016-12-09 11:55:35.692077"], ["updated_at", "2016-12-09 11:55:35.692077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 235], ["created_at", "2016-12-09 11:55:35.693928"], ["updated_at", "2016-12-09 11:55:35.693928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 235], ["updated_at", "2016-12-09 11:55:35.695261"], ["id", 235]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 235]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 235]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 235]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 235]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 235]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 235]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 235]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 235]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 11:55:35.719763"], ["updated_at", "2016-12-09 11:55:35.719763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 11:55:35.721153"], ["updated_at", "2016-12-09 11:55:35.721153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 11:55:35.722419"], ["updated_at", "2016-12-09 11:55:35.722419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 11:55:35.725896"], ["updated_at", "2016-12-09 11:55:35.725896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 11:55:35.727185"], ["updated_at", "2016-12-09 11:55:35.727185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 11:55:35.728407"], ["updated_at", "2016-12-09 11:55:35.728407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 11:55:35.731624"], ["updated_at", "2016-12-09 11:55:35.731624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 11:55:35.733679"], ["updated_at", "2016-12-09 11:55:35.733679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 11:55:35.735004"], ["updated_at", "2016-12-09 11:55:35.735004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 11:55:35.736271"], ["updated_at", "2016-12-09 11:55:35.736271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 11:55:35.737432"], ["updated_at", "2016-12-09 11:55:35.737432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 11:55:35.738619"], ["updated_at", "2016-12-09 11:55:35.738619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 11:55:35.739837"], ["updated_at", "2016-12-09 11:55:35.739837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 234]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 234]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 234]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 234]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 234]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 234]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 234]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 234]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:14:44.841220"], ["updated_at", "2016-12-09 12:14:44.841220"]]  (13.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 235], ["created_at", "2016-12-09 12:14:44.897403"], ["updated_at", "2016-12-09 12:14:44.897403"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 235], ["created_at", "2016-12-09 12:14:44.926760"], ["updated_at", "2016-12-09 12:14:44.926760"]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 235], ["created_at", "2016-12-09 12:14:44.948845"], ["updated_at", "2016-12-09 12:14:44.948845"]]  (12.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 235], ["updated_at", "2016-12-09 12:14:44.962568"], ["id", 235]]  (11.7ms) commit transaction  (0.2ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6a3d5bbb154d37be8e91f2e9248eca4e', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '97697dc27c56d214a641fb1124398050', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '99a5200e23acc8f47b16e765b9f9eb3d', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f0623fe7e38e2d79d97d9d4f5ac08a09', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '60dace0b4c66db88e43133d097e5f01d', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6c8b97ed8eae2cd9e8955a91ac0b3c4e', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'bd979052f8514be9768f9b744840b72c', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd64b8464f0711fb69cfc96e69319021d', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a5ab7f6814f2a188ed797cf2cb0aa1c5', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7f640ffa7e0a3ea44d13311981d9f862', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e1ba28f6a590a4c732d502a58dd19d42', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f1b152488dd110321c57241ac1d7ba96', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f53f28534054e274ba4d071e68016da4', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '96fce8c477a942bccd71d77d30d3c0ef', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'af2ca3259600b526c34fbd34c06b2799', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 692230836, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 243566599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 463383467, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 992936599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 22684094, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 919954624, 920752818) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7b437e1d078103dcba12e2dfa9784995', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '54eed4a98730403be60cd4b0d938fed3', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3842222b368f45b10db6af1bf4282de8', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '48c1415ece6b13cc58ddce959d846c98', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:14:45', '2016-12-09 12:14:45', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '20159e00774fe3dafd03430b09edff5a', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '598fc89ac45a9e730c504a9307c59429', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '08131b0c4fd7b3bf929057606ca69337', '2016-12-09 12:14:45', '2016-12-09 12:14:45', 410780858)  (18.4ms) commit transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 235]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 235]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 235]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 235]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 235]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 235]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 235]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 235]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------ Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."id" = ? LIMIT 1 [["id", 463383467]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_nonpolymorphic_orphans snakecase to camelcase ----------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:14:45.123874"], ["updated_at", "2016-12-09 12:14:45.123874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase ------------------------------------------------------------------------------------------------- Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = ? LIMIT 1 [["id", 463383467]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:14:45.227827"], ["updated_at", "2016-12-09 12:14:45.227827"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:14:45.229106"], ["updated_at", "2016-12-09 12:14:45.229106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:14:45.236641"], ["updated_at", "2016-12-09 12:14:45.236641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:14:45.238868"], ["updated_at", "2016-12-09 12:14:45.238868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:14:45.240450"], ["updated_at", "2016-12-09 12:14:45.240450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:14:45.241675"], ["updated_at", "2016-12-09 12:14:45.241675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:14:45.242919"], ["updated_at", "2016-12-09 12:14:45.242919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:14:45.244115"], ["updated_at", "2016-12-09 12:14:45.244115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:14:45.247886"], ["updated_at", "2016-12-09 12:14:45.247886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:14:45.249389"], ["updated_at", "2016-12-09 12:14:45.249389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:14:45.250749"], ["updated_at", "2016-12-09 12:14:45.250749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:14:45.251999"], ["updated_at", "2016-12-09 12:14:45.251999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:14:45.253172"], ["updated_at", "2016-12-09 12:14:45.253172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:14:45.254340"], ["updated_at", "2016-12-09 12:14:45.254340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:14:45.266374"], ["updated_at", "2016-12-09 12:14:45.266374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:14:45.268716"], ["updated_at", "2016-12-09 12:14:45.268716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:14:45.270067"], ["updated_at", "2016-12-09 12:14:45.270067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:14:45.271428"], ["updated_at", "2016-12-09 12:14:45.271428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:14:45.274627"], ["updated_at", "2016-12-09 12:14:45.274627"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:14:45.278133"], ["updated_at", "2016-12-09 12:14:45.278133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:14:45.280834"], ["updated_at", "2016-12-09 12:14:45.280834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:14:45.291014"], ["updated_at", "2016-12-09 12:14:45.291014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 236], ["created_at", "2016-12-09 12:14:45.292957"], ["updated_at", "2016-12-09 12:14:45.292957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 236], ["created_at", "2016-12-09 12:14:45.294768"], ["updated_at", "2016-12-09 12:14:45.294768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 236], ["created_at", "2016-12-09 12:14:45.296499"], ["updated_at", "2016-12-09 12:14:45.296499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:14:45.304777"], ["updated_at", "2016-12-09 12:14:45.304777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:14:45.306938"], ["updated_at", "2016-12-09 12:14:45.306938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:14:45.308383"], ["updated_at", "2016-12-09 12:14:45.308383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:14:45.309728"], ["updated_at", "2016-12-09 12:14:45.309728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:14:45.324170"], ["updated_at", "2016-12-09 12:14:45.324170"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:14:45.325248"], ["updated_at", "2016-12-09 12:14:45.325248"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:14:45.326172"], ["updated_at", "2016-12-09 12:14:45.326172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:14:45.340144"], ["updated_at", "2016-12-09 12:14:45.340144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:14:45.341712"], ["updated_at", "2016-12-09 12:14:45.341712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:14:45.343052"], ["updated_at", "2016-12-09 12:14:45.343052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:14:45.346882"], ["updated_at", "2016-12-09 12:14:45.346882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:14:45.348284"], ["updated_at", "2016-12-09 12:14:45.348284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:14:45.349593"], ["updated_at", "2016-12-09 12:14:45.349593"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:14:45.353361"], ["updated_at", "2016-12-09 12:14:45.353361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:14:45.354688"], ["updated_at", "2016-12-09 12:14:45.354688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:14:45.355986"], ["updated_at", "2016-12-09 12:14:45.355986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:14:45.360821"], ["updated_at", "2016-12-09 12:14:45.360821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 236], ["created_at", "2016-12-09 12:14:45.362711"], ["updated_at", "2016-12-09 12:14:45.362711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 236], ["created_at", "2016-12-09 12:14:45.364516"], ["updated_at", "2016-12-09 12:14:45.364516"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 236], ["created_at", "2016-12-09 12:14:45.366566"], ["updated_at", "2016-12-09 12:14:45.366566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 236], ["updated_at", "2016-12-09 12:14:45.367877"], ["id", 236]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 236]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 236]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 236]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 236]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 236]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 236]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 236]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 236]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]]  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:14:45.390845"], ["updated_at", "2016-12-09 12:14:45.390845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:14:45.392316"], ["updated_at", "2016-12-09 12:14:45.392316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:14:45.393576"], ["updated_at", "2016-12-09 12:14:45.393576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:14:45.400821"], ["updated_at", "2016-12-09 12:14:45.400821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:14:45.404352"], ["updated_at", "2016-12-09 12:14:45.404352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:14:45.406419"], ["updated_at", "2016-12-09 12:14:45.406419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:14:45.408463"], ["updated_at", "2016-12-09 12:14:45.408463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:14:45.411331"], ["updated_at", "2016-12-09 12:14:45.411331"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:14:45.412275"], ["updated_at", "2016-12-09 12:14:45.412275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:14:45.415038"], ["updated_at", "2016-12-09 12:14:45.415038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:14:45.421757"], ["updated_at", "2016-12-09 12:14:45.421757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 236], ["created_at", "2016-12-09 12:14:45.423693"], ["updated_at", "2016-12-09 12:14:45.423693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:14:45.426334"], ["updated_at", "2016-12-09 12:14:45.426334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.0ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:16:16.092533"], ["updated_at", "2016-12-09 12:16:16.092533"]]  (29.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 236], ["created_at", "2016-12-09 12:16:16.161957"], ["updated_at", "2016-12-09 12:16:16.161957"]]  (29.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 236], ["created_at", "2016-12-09 12:16:16.199506"], ["updated_at", "2016-12-09 12:16:16.199506"]]  (40.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 236], ["created_at", "2016-12-09 12:16:16.251839"], ["updated_at", "2016-12-09 12:16:16.251839"]]  (35.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 236], ["updated_at", "2016-12-09 12:16:16.289727"], ["id", 236]]  (27.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '548a28ef91788d14e3a31ab3a4b0d71a', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '399b57a1ed7e61bd81a63739412a096b', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '84b9426f3d1a8b6319e7eb9aa81ac0bb', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0847af66faa5f55e8622a133162d9697', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2d42a7246a24a3d0843a19ac9fc28f78', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '85f59963b9211ccab8f56269a32429cb', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd2c13f60663c45a734158ac2fda5d3dc', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a4fb50187451ad969caeba71b6864d92', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd6bb2c89a3a2a97639463e165edc337a', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '7db29354ca9e903fe12dcc3655ffb6d0', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'dd9a5b3d864c68469f2ba3ff25b7e9f8', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5795fedaa522f9705365937bad365da2', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '383ef8e1c5682d1249000ab7e82bdafa', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2db93e6d3f8f609370612573b8bfd02f', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e7e13e050b6cd4bb696b4006e446dc5b', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 692230836, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 243566599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 463383467, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 992936599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 22684094, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 919954624, 920752818) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5068571a7a9dad9b4b8a99463374f55c', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '766854fd748ae9756733cfd814ef1c68', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f6b69145a9ceee3051e9929b209e702c', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'e797cbe736309f39881440d501970706', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:16:16', '2016-12-09 12:16:16', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '360b7340edf133bbe5bf4d1a235b08a6', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '81b16aee58a4a1b80aa2310a8331c22d', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9ab652d20c0ff7af6b9cefeedd51a25b', '2016-12-09 12:16:16', '2016-12-09 12:16:16', 410780858)  (29.8ms) commit transaction  (0.2ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:16:16.466726"], ["updated_at", "2016-12-09 12:16:16.466726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 237], ["created_at", "2016-12-09 12:16:16.469783"], ["updated_at", "2016-12-09 12:16:16.469783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 237], ["created_at", "2016-12-09 12:16:16.472503"], ["updated_at", "2016-12-09 12:16:16.472503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 237], ["created_at", "2016-12-09 12:16:16.475528"], ["updated_at", "2016-12-09 12:16:16.475528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 237], ["updated_at", "2016-12-09 12:16:16.476886"], ["id", 237]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 237]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 237]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 237]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 237]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 237]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 237]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 237]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 237]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]]  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:16:16.506875"], ["updated_at", "2016-12-09 12:16:16.506875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:16:16.508604"], ["updated_at", "2016-12-09 12:16:16.508604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:16:16.509989"], ["updated_at", "2016-12-09 12:16:16.509989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:16:16.515192"], ["updated_at", "2016-12-09 12:16:16.515192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 237], ["created_at", "2016-12-09 12:16:16.517354"], ["updated_at", "2016-12-09 12:16:16.517354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:16:16.526047"], ["updated_at", "2016-12-09 12:16:16.526047"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:16:16.529229"], ["updated_at", "2016-12-09 12:16:16.529229"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 237], ["created_at", "2016-12-09 12:16:16.531364"], ["updated_at", "2016-12-09 12:16:16.531364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 237], ["created_at", "2016-12-09 12:16:16.533339"], ["updated_at", "2016-12-09 12:16:16.533339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 237], ["created_at", "2016-12-09 12:16:16.535241"], ["updated_at", "2016-12-09 12:16:16.535241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 237]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:16:16.554749"], ["updated_at", "2016-12-09 12:16:16.554749"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:16:16.555996"], ["updated_at", "2016-12-09 12:16:16.555996"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:16:16.556914"], ["updated_at", "2016-12-09 12:16:16.556914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:16:16.573258"], ["updated_at", "2016-12-09 12:16:16.573258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:16:16.574726"], ["updated_at", "2016-12-09 12:16:16.574726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:16:16.575983"], ["updated_at", "2016-12-09 12:16:16.575983"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:16:16.578556"], ["updated_at", "2016-12-09 12:16:16.578556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:16:16.579958"], ["updated_at", "2016-12-09 12:16:16.579958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:16:16.581200"], ["updated_at", "2016-12-09 12:16:16.581200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:16:16.582520"], ["updated_at", "2016-12-09 12:16:16.582520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:16:16.583742"], ["updated_at", "2016-12-09 12:16:16.583742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:16:16.585111"], ["updated_at", "2016-12-09 12:16:16.585111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:16:16.588608"], ["updated_at", "2016-12-09 12:16:16.588608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:16:16.589999"], ["updated_at", "2016-12-09 12:16:16.589999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:16:16.591345"], ["updated_at", "2016-12-09 12:16:16.591345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:16:16.600123"], ["updated_at", "2016-12-09 12:16:16.600123"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:16:16.612598"], ["updated_at", "2016-12-09 12:16:16.612598"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:16:16.613883"], ["updated_at", "2016-12-09 12:16:16.613883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:16:16.624642"], ["updated_at", "2016-12-09 12:16:16.624642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:16:16.632899"], ["updated_at", "2016-12-09 12:16:16.632899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:16:16.634347"], ["updated_at", "2016-12-09 12:16:16.634347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:16:16.635691"], ["updated_at", "2016-12-09 12:16:16.635691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:16:16.642179"], ["updated_at", "2016-12-09 12:16:16.642179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:16:16.644770"], ["updated_at", "2016-12-09 12:16:16.644770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:16:16.647371"], ["updated_at", "2016-12-09 12:16:16.647371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:16:16.650382"], ["updated_at", "2016-12-09 12:16:16.650382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:16:16.652499"], ["updated_at", "2016-12-09 12:16:16.652499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:16:16.654300"], ["updated_at", "2016-12-09 12:16:16.654300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:16:16.657439"], ["updated_at", "2016-12-09 12:16:16.657439"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:16:16.658389"], ["updated_at", "2016-12-09 12:16:16.658389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:16:16.661371"], ["updated_at", "2016-12-09 12:16:16.661371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:16:16.663564"], ["updated_at", "2016-12-09 12:16:16.663564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:16:16.678494"], ["updated_at", "2016-12-09 12:16:16.678494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:16:16.679973"], ["updated_at", "2016-12-09 12:16:16.679973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:16:16.681670"], ["updated_at", "2016-12-09 12:16:16.681670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:16:16.684649"], ["updated_at", "2016-12-09 12:16:16.684649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:16:16.686053"], ["updated_at", "2016-12-09 12:16:16.686053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:16:16.687412"], ["updated_at", "2016-12-09 12:16:16.687412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:16:16.698418"], ["updated_at", "2016-12-09 12:16:16.698418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:16:16.699969"], ["updated_at", "2016-12-09 12:16:16.699969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:16:16.701238"], ["updated_at", "2016-12-09 12:16:16.701238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:16:16.702423"], ["updated_at", "2016-12-09 12:16:16.702423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:16:16.703661"], ["updated_at", "2016-12-09 12:16:16.703661"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:16:16.705102"], ["updated_at", "2016-12-09 12:16:16.705102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------ Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = ? LIMIT 1 [["id", 463383467]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase ------------------------------------------------------------------------------------------------- Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = ? LIMIT 1 [["id", 463383467]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_nonpolymorphic_orphans snakecase to camelcase ----------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:16:16.717888"], ["updated_at", "2016-12-09 12:16:16.717888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 236]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 236]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 236]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 236]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 236]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 236]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 236]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 236]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.5ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.0ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:17:39.141812"], ["updated_at", "2016-12-09 12:17:39.141812"]]  (15.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 237], ["created_at", "2016-12-09 12:17:39.197151"], ["updated_at", "2016-12-09 12:17:39.197151"]]  (15.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 237], ["created_at", "2016-12-09 12:17:39.230225"], ["updated_at", "2016-12-09 12:17:39.230225"]]  (22.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 237], ["created_at", "2016-12-09 12:17:39.261276"], ["updated_at", "2016-12-09 12:17:39.261276"]]  (21.3ms) commit transaction  (0.3ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 237], ["updated_at", "2016-12-09 12:17:39.285456"], ["id", 237]]  (17.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '62273460468a38c886e06c699640c1a4', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'dd7299f793cc736e113d0cb4402d4b5c', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f8e8b1fced115747174fb06559b24640', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '82a2a3f942a30810df02c5cc2a8b39b7', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ae3f95dcd1b4d7ca912c461bc0f4f157', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '97ac0a20e84d04f438a846a09630c853', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e123908a3b6a9a5a132ff3c9e9c73017', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b7c87fc9670d3a0a0b555ac9723d91ba', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '0b70bbb66e94ed6edbe4a5061b1ba1e5', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd2d9fd11ba8e5af427f9d06482358849', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b4bac5234be0a535d7ff6dd4e0cd8adb', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0e9ddcaf71973750172960d40e997c4c', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2ef31bb2497f39bd63eae4dfd215b350', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a7588ec8eca77314a8736bad880407cf', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '69c28c2fb66acf51e1217ca2fb8ebe1e', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 692230836, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 243566599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 463383467, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 992936599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 22684094, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 919954624, 920752818) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7b9af7099ea3e670dc7be094c34dc497', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fe64ff69dfd87644953cafbe99cca64f', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '48110fa3834f15d73211f53930e48d4a', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'dd4bf41dae0f4eca4c10989e3711e7b2', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:17:39', '2016-12-09 12:17:39', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ad44bf17b8b4ac98d89598328c2ccf8b', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '38be8bb931d20d264a23bf9d9ce1f69d', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e36ce79612f211cb1a14c16ee65cfeee', '2016-12-09 12:17:39', '2016-12-09 12:17:39', 410780858)  (32.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (6.3ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle -------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 237]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 237]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 237]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 237]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:17:39.538585"], ["updated_at", "2016-12-09 12:17:39.538585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders")) ORDER BY "events"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------ Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = ? LIMIT 1 [["id", 463383467]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase ------------------------------------------------------------------------------------------------- Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = ? LIMIT 1 [["id", 463383467]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:17:39.659269"], ["updated_at", "2016-12-09 12:17:39.659269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:17:39.660748"], ["updated_at", "2016-12-09 12:17:39.660748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:17:39.661975"], ["updated_at", "2016-12-09 12:17:39.661975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:17:39.675445"], ["updated_at", "2016-12-09 12:17:39.675445"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:17:39.677422"], ["updated_at", "2016-12-09 12:17:39.677422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:17:39.679755"], ["updated_at", "2016-12-09 12:17:39.679755"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:17:39.684815"], ["updated_at", "2016-12-09 12:17:39.684815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 238], ["created_at", "2016-12-09 12:17:39.686874"], ["updated_at", "2016-12-09 12:17:39.686874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 238], ["created_at", "2016-12-09 12:17:39.688691"], ["updated_at", "2016-12-09 12:17:39.688691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 238], ["created_at", "2016-12-09 12:17:39.690752"], ["updated_at", "2016-12-09 12:17:39.690752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:17:39.696522"], ["updated_at", "2016-12-09 12:17:39.696522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:17:39.698041"], ["updated_at", "2016-12-09 12:17:39.698041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:17:39.699370"], ["updated_at", "2016-12-09 12:17:39.699370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:17:39.706871"], ["updated_at", "2016-12-09 12:17:39.706871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:17:39.708231"], ["updated_at", "2016-12-09 12:17:39.708231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:17:39.709470"], ["updated_at", "2016-12-09 12:17:39.709470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:17:39.716962"], ["updated_at", "2016-12-09 12:17:39.716962"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:17:39.721874"], ["updated_at", "2016-12-09 12:17:39.721874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:17:39.724335"], ["updated_at", "2016-12-09 12:17:39.724335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:17:39.726737"], ["updated_at", "2016-12-09 12:17:39.726737"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:17:39.730637"], ["updated_at", "2016-12-09 12:17:39.730637"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:17:39.731787"], ["updated_at", "2016-12-09 12:17:39.731787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:17:39.734958"], ["updated_at", "2016-12-09 12:17:39.734958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:17:39.737361"], ["updated_at", "2016-12-09 12:17:39.737361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:17:39.738725"], ["updated_at", "2016-12-09 12:17:39.738725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:17:39.739966"], ["updated_at", "2016-12-09 12:17:39.739966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:17:39.741109"], ["updated_at", "2016-12-09 12:17:39.741109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:17:39.742367"], ["updated_at", "2016-12-09 12:17:39.742367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:17:39.743583"], ["updated_at", "2016-12-09 12:17:39.743583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:17:39.745984"], ["updated_at", "2016-12-09 12:17:39.745984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:17:39.747250"], ["updated_at", "2016-12-09 12:17:39.747250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:17:39.748454"], ["updated_at", "2016-12-09 12:17:39.748454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:17:39.749679"], ["updated_at", "2016-12-09 12:17:39.749679"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:17:39.750909"], ["updated_at", "2016-12-09 12:17:39.750909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:17:39.752066"], ["updated_at", "2016-12-09 12:17:39.752066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:17:39.755459"], ["updated_at", "2016-12-09 12:17:39.755459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:17:39.760056"], ["updated_at", "2016-12-09 12:17:39.760056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:17:39.761646"], ["updated_at", "2016-12-09 12:17:39.761646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:17:39.763384"], ["updated_at", "2016-12-09 12:17:39.763384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:17:39.766192"], ["updated_at", "2016-12-09 12:17:39.766192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:17:39.768653"], ["updated_at", "2016-12-09 12:17:39.768653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:17:39.769994"], ["updated_at", "2016-12-09 12:17:39.769994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:17:39.771282"], ["updated_at", "2016-12-09 12:17:39.771282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:17:39.775520"], ["updated_at", "2016-12-09 12:17:39.775520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 238], ["created_at", "2016-12-09 12:17:39.777408"], ["updated_at", "2016-12-09 12:17:39.777408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 238], ["created_at", "2016-12-09 12:17:39.779212"], ["updated_at", "2016-12-09 12:17:39.779212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 238], ["created_at", "2016-12-09 12:17:39.780921"], ["updated_at", "2016-12-09 12:17:39.780921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 238], ["updated_at", "2016-12-09 12:17:39.782258"], ["id", 238]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:17:39.788690"], ["updated_at", "2016-12-09 12:17:39.788690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 238], ["created_at", "2016-12-09 12:17:39.790404"], ["updated_at", "2016-12-09 12:17:39.790404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:17:39.805887"], ["updated_at", "2016-12-09 12:17:39.805887"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:17:39.807052"], ["updated_at", "2016-12-09 12:17:39.807052"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:17:39.807987"], ["updated_at", "2016-12-09 12:17:39.807987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:17:39.814851"], ["updated_at", "2016-12-09 12:17:39.814851"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:17:39.817866"], ["updated_at", "2016-12-09 12:17:39.817866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:17:39.820896"], ["updated_at", "2016-12-09 12:17:39.820896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.5ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:17:39.831846"], ["updated_at", "2016-12-09 12:17:39.831846"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:17:39.833008"], ["updated_at", "2016-12-09 12:17:39.833008"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:19:46.394672"], ["updated_at", "2016-12-09 12:19:46.394672"]]  (13.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 238], ["created_at", "2016-12-09 12:19:46.449331"], ["updated_at", "2016-12-09 12:19:46.449331"]]  (29.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 238], ["created_at", "2016-12-09 12:19:46.494341"], ["updated_at", "2016-12-09 12:19:46.494341"]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 238], ["created_at", "2016-12-09 12:19:46.528307"], ["updated_at", "2016-12-09 12:19:46.528307"]]  (25.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 238], ["updated_at", "2016-12-09 12:19:46.556028"], ["id", 238]]  (33.5ms) commit transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '81e9c2da5a451c450f2f2c4afbd1e90b', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '43781a62741aa24ed392d026b99a0782', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd28884cecb5cf59fd23a12cc1ce86f55', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '01657c03c5db69567ba50e94d0c01af4', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bfdaac484c0cdcbfa5848b53bc575ebf', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b5f8bc24b233f0cea45f5dc1074224c0', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'e893fdca91254c0072297d9dd991c64d', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c794d9bd94d9da9bff2bb42e6218042a', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6234ee1bebcde8dc78575b88949c1fbf', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2739401dc0b97b46387e5e01708474bb', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4cc468d8435c7611a359b6f9a5b682de', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '0be2c82d72e7fd0feb50ba44bbfb2bee', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fc34b4b4ee318953691c1241364c75a0', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fb2fc0ebb32663d9c25ec577ab6ac252', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5d832348ccfe2133e8822a64b17ac695', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 692230836, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 243566599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 463383467, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 992936599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 22684094, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 919954624, 920752818) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a9f78ff40244772871b08b781209acf4', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8f373caeadec82e9a8fe3d97b94e4106', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '9c00016c772c37f90cc83f318aaff414', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '332038541cb1988b8acf5f8e7edc81e2', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:19:46', '2016-12-09 12:19:46', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd6206b19c10422a1b3f9f4a1a14e6efa', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '63dcf4b21647deda8e4b314840cb5103', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8038c6925c502c74541b1c94d45fa41c', '2016-12-09 12:19:46', '2016-12-09 12:19:46', 410780858)  (29.5ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (6.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:19:46.821442"], ["updated_at", "2016-12-09 12:19:46.821442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 239], ["created_at", "2016-12-09 12:19:46.823394"], ["updated_at", "2016-12-09 12:19:46.823394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 239], ["created_at", "2016-12-09 12:19:46.825347"], ["updated_at", "2016-12-09 12:19:46.825347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 239], ["created_at", "2016-12-09 12:19:46.827126"], ["updated_at", "2016-12-09 12:19:46.827126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 239], ["updated_at", "2016-12-09 12:19:46.828456"], ["id", 239]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 239]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 239]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 239]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 239]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 239]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 239]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 239]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 239]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:19:46.853737"], ["updated_at", "2016-12-09 12:19:46.853737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:19:46.855287"], ["updated_at", "2016-12-09 12:19:46.855287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:19:46.856505"], ["updated_at", "2016-12-09 12:19:46.856505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:19:46.857733"], ["updated_at", "2016-12-09 12:19:46.857733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:19:46.858965"], ["updated_at", "2016-12-09 12:19:46.858965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:19:46.860176"], ["updated_at", "2016-12-09 12:19:46.860176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:19:46.862864"], ["updated_at", "2016-12-09 12:19:46.862864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:19:46.864148"], ["updated_at", "2016-12-09 12:19:46.864148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:19:46.865562"], ["updated_at", "2016-12-09 12:19:46.865562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:19:46.871511"], ["updated_at", "2016-12-09 12:19:46.871511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:19:46.872821"], ["updated_at", "2016-12-09 12:19:46.872821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:19:46.874058"], ["updated_at", "2016-12-09 12:19:46.874058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:19:46.883153"], ["updated_at", "2016-12-09 12:19:46.883153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:19:46.890948"], ["updated_at", "2016-12-09 12:19:46.890948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:19:46.892341"], ["updated_at", "2016-12-09 12:19:46.892341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:19:46.893623"], ["updated_at", "2016-12-09 12:19:46.893623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:19:46.902796"], ["updated_at", "2016-12-09 12:19:46.902796"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:19:46.903888"], ["updated_at", "2016-12-09 12:19:46.903888"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:19:46.904780"], ["updated_at", "2016-12-09 12:19:46.904780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:19:46.920824"], ["updated_at", "2016-12-09 12:19:46.920824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:19:46.922294"], ["updated_at", "2016-12-09 12:19:46.922294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:19:46.923823"], ["updated_at", "2016-12-09 12:19:46.923823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:19:46.928835"], ["updated_at", "2016-12-09 12:19:46.928835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 239], ["created_at", "2016-12-09 12:19:46.930817"], ["updated_at", "2016-12-09 12:19:46.930817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:19:46.933585"], ["updated_at", "2016-12-09 12:19:46.933585"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:19:46.944615"], ["updated_at", "2016-12-09 12:19:46.944615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:19:46.949650"], ["updated_at", "2016-12-09 12:19:46.949650"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:19:46.950659"], ["updated_at", "2016-12-09 12:19:46.950659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:19:46.953631"], ["updated_at", "2016-12-09 12:19:46.953631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:19:46.954993"], ["updated_at", "2016-12-09 12:19:46.954993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:19:46.956225"], ["updated_at", "2016-12-09 12:19:46.956225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:19:46.961671"], ["updated_at", "2016-12-09 12:19:46.961671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:19:46.967179"], ["updated_at", "2016-12-09 12:19:46.967179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:19:46.969856"], ["updated_at", "2016-12-09 12:19:46.969856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:19:46.972383"], ["updated_at", "2016-12-09 12:19:46.972383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:19:46.975323"], ["updated_at", "2016-12-09 12:19:46.975323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:19:46.976684"], ["updated_at", "2016-12-09 12:19:46.976684"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:19:46.978038"], ["updated_at", "2016-12-09 12:19:46.978038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:19:46.979302"], ["updated_at", "2016-12-09 12:19:46.979302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:19:46.980491"], ["updated_at", "2016-12-09 12:19:46.980491"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:19:46.981879"], ["updated_at", "2016-12-09 12:19:46.981879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:19:46.988348"], ["updated_at", "2016-12-09 12:19:46.988348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:19:46.990519"], ["updated_at", "2016-12-09 12:19:46.990519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:19:46.992314"], ["updated_at", "2016-12-09 12:19:46.992314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:19:46.995134"], ["updated_at", "2016-12-09 12:19:46.995134"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:19:46.996050"], ["updated_at", "2016-12-09 12:19:46.996050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:19:46.998757"], ["updated_at", "2016-12-09 12:19:46.998757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:19:47.000894"], ["updated_at", "2016-12-09 12:19:47.000894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 239], ["created_at", "2016-12-09 12:19:47.002662"], ["updated_at", "2016-12-09 12:19:47.002662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 239], ["created_at", "2016-12-09 12:19:47.004819"], ["updated_at", "2016-12-09 12:19:47.004819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 239], ["created_at", "2016-12-09 12:19:47.006655"], ["updated_at", "2016-12-09 12:19:47.006655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:19:47.017546"], ["updated_at", "2016-12-09 12:19:47.017546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:19:47.019041"], ["updated_at", "2016-12-09 12:19:47.019041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:19:47.020454"], ["updated_at", "2016-12-09 12:19:47.020454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------ Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = ? LIMIT 1 [["id", 463383467]] WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 920752818]] WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? LIMIT 1 [["id", 325582481]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase ------------------------------------------------------------------------------------------------- Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = ? LIMIT 1 [["id", 463383467]] WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 920752818]] WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? LIMIT 1 [["id", 325582481]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:19:47.057592"], ["updated_at", "2016-12-09 12:19:47.057592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders")) ORDER BY "events"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 238]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 238]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 238]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 238]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 238]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 238]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 238]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 238]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:22:32.763780"], ["updated_at", "2016-12-09 12:22:32.763780"]]  (18.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 239], ["created_at", "2016-12-09 12:22:32.820734"], ["updated_at", "2016-12-09 12:22:32.820734"]]  (17.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 239], ["created_at", "2016-12-09 12:22:32.856255"], ["updated_at", "2016-12-09 12:22:32.856255"]]  (16.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 239], ["created_at", "2016-12-09 12:22:32.890167"], ["updated_at", "2016-12-09 12:22:32.890167"]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 239], ["updated_at", "2016-12-09 12:22:32.910790"], ["id", 239]]  (21.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2179367cdaf0fc10f83dc9d1860be235', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4ffa58f236085a375ae88ebf63787209', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '576f0155e0aa81d0b7c5747bbbaa84e8', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '55454420fe1bb48f07ce0ab1a8790a88', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '323b8950dd64d62aa1dbded758464f4d', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '81c91c865f30e6a325d89a955b4eab85', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9533bb815d5129de807e851d4a59f9cc', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '096f83b054002189cf18e52e25c20b24', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'af3b005e707819fda3588d1febc30994', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '78ef96e196ed951e823ec55752ca2b2f', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'ff8b8714a0b948ad802effbdc4c8cb15', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '89a937279451042d79ea66747cb0be50', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8086c707e613ddfa86072018c61fb165', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '361e463f76b413f09df9eed4a6dff7cd', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '88a8b474c8203e2c82098019f89e746d', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 692230836, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 243566599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 463383467, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 992936599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 22684094, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 919954624, 920752818) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'be693acb8f7b583b7e1a4bbe95717db2', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '905e77d699bf7c416f7e4d81661077e4', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f8ca4177371c1914a2a79846139c4540', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '7f1d4b0d4fd9fdae264f5974c26bd41b', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:22:33', '2016-12-09 12:22:33', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '95f925d60011a9b77d085d1abfdc3199', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'bfd230529e35be1a8b4e09c1a4ed7d89', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3079d8b516f8e8fed1fbbc3768455c08', '2016-12-09 12:22:33', '2016-12-09 12:22:33', 410780858)  (13.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------ Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = ? LIMIT 1 [["id", 463383467]] WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 920752818]] WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? LIMIT 1 [["id", 325582481]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:22:33.089383"], ["updated_at", "2016-12-09 12:22:33.089383"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders")) ORDER BY "events"."id" ASC LIMIT 1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase ------------------------------------------------------------------------------------------------- Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = ? LIMIT 1 [["id", 463383467]] WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 920752818]] WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? LIMIT 1 [["id", 325582481]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:22:33.126381"], ["updated_at", "2016-12-09 12:22:33.126381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:22:33.128027"], ["updated_at", "2016-12-09 12:22:33.128027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:22:33.129260"], ["updated_at", "2016-12-09 12:22:33.129260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:22:33.133906"], ["updated_at", "2016-12-09 12:22:33.133906"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:22:33.135546"], ["updated_at", "2016-12-09 12:22:33.135546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:22:33.137020"], ["updated_at", "2016-12-09 12:22:33.137020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:22:33.139506"], ["updated_at", "2016-12-09 12:22:33.139506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 240], ["created_at", "2016-12-09 12:22:33.141423"], ["updated_at", "2016-12-09 12:22:33.141423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:22:33.144347"], ["updated_at", "2016-12-09 12:22:33.144347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:22:33.147176"], ["updated_at", "2016-12-09 12:22:33.147176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:22:33.148618"], ["updated_at", "2016-12-09 12:22:33.148618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:22:33.150153"], ["updated_at", "2016-12-09 12:22:33.150153"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:22:33.151579"], ["updated_at", "2016-12-09 12:22:33.151579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:22:33.152969"], ["updated_at", "2016-12-09 12:22:33.152969"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:22:33.154443"], ["updated_at", "2016-12-09 12:22:33.154443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:22:33.163249"], ["updated_at", "2016-12-09 12:22:33.163249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:22:33.166053"], ["updated_at", "2016-12-09 12:22:33.166053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 240], ["created_at", "2016-12-09 12:22:33.167872"], ["updated_at", "2016-12-09 12:22:33.167872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 240], ["created_at", "2016-12-09 12:22:33.169616"], ["updated_at", "2016-12-09 12:22:33.169616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 240], ["created_at", "2016-12-09 12:22:33.171342"], ["updated_at", "2016-12-09 12:22:33.171342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 240], ["updated_at", "2016-12-09 12:22:33.172765"], ["id", 240]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 240]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 240]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 240]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 240]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 240]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 240]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 240]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 240]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:22:33.196429"], ["updated_at", "2016-12-09 12:22:33.196429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:22:33.199034"], ["updated_at", "2016-12-09 12:22:33.199034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:22:33.215005"], ["updated_at", "2016-12-09 12:22:33.215005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 240], ["created_at", "2016-12-09 12:22:33.216899"], ["updated_at", "2016-12-09 12:22:33.216899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 240], ["created_at", "2016-12-09 12:22:33.218971"], ["updated_at", "2016-12-09 12:22:33.218971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 240], ["created_at", "2016-12-09 12:22:33.220670"], ["updated_at", "2016-12-09 12:22:33.220670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:22:33.241894"], ["updated_at", "2016-12-09 12:22:33.241894"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:22:33.243052"], ["updated_at", "2016-12-09 12:22:33.243052"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:22:33.244055"], ["updated_at", "2016-12-09 12:22:33.244055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:22:33.266671"], ["updated_at", "2016-12-09 12:22:33.266671"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:22:33.267767"], ["updated_at", "2016-12-09 12:22:33.267767"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:22:33.270850"], ["updated_at", "2016-12-09 12:22:33.270850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:22:33.272991"], ["updated_at", "2016-12-09 12:22:33.272991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:22:33.274929"], ["updated_at", "2016-12-09 12:22:33.274929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:22:33.277736"], ["updated_at", "2016-12-09 12:22:33.277736"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:22:33.278712"], ["updated_at", "2016-12-09 12:22:33.278712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:22:33.281410"], ["updated_at", "2016-12-09 12:22:33.281410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:22:33.285844"], ["updated_at", "2016-12-09 12:22:33.285844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:22:33.287245"], ["updated_at", "2016-12-09 12:22:33.287245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:22:33.288522"], ["updated_at", "2016-12-09 12:22:33.288522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:22:33.289720"], ["updated_at", "2016-12-09 12:22:33.289720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:22:33.290922"], ["updated_at", "2016-12-09 12:22:33.290922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:22:33.292122"], ["updated_at", "2016-12-09 12:22:33.292122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:22:33.298059"], ["updated_at", "2016-12-09 12:22:33.298059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:22:33.300621"], ["updated_at", "2016-12-09 12:22:33.300621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:22:33.303202"], ["updated_at", "2016-12-09 12:22:33.303202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:22:33.306056"], ["updated_at", "2016-12-09 12:22:33.306056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:22:33.307653"], ["updated_at", "2016-12-09 12:22:33.307653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:22:33.308918"], ["updated_at", "2016-12-09 12:22:33.308918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:22:33.312257"], ["updated_at", "2016-12-09 12:22:33.312257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:22:33.313706"], ["updated_at", "2016-12-09 12:22:33.313706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:22:33.315031"], ["updated_at", "2016-12-09 12:22:33.315031"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:22:33.323110"], ["updated_at", "2016-12-09 12:22:33.323110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:22:33.324625"], ["updated_at", "2016-12-09 12:22:33.324625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:22:33.325933"], ["updated_at", "2016-12-09 12:22:33.325933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:22:33.328819"], ["updated_at", "2016-12-09 12:22:33.328819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:22:33.330148"], ["updated_at", "2016-12-09 12:22:33.330148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:22:33.331410"], ["updated_at", "2016-12-09 12:22:33.331410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 239]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 239]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 239]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 239]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 239]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 239]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 239]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 239]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:24:53.650577"], ["updated_at", "2016-12-09 12:24:53.650577"]]  (18.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 240], ["created_at", "2016-12-09 12:24:53.710953"], ["updated_at", "2016-12-09 12:24:53.710953"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 240], ["created_at", "2016-12-09 12:24:53.735393"], ["updated_at", "2016-12-09 12:24:53.735393"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 240], ["created_at", "2016-12-09 12:24:53.762320"], ["updated_at", "2016-12-09 12:24:53.762320"]]  (25.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 240], ["updated_at", "2016-12-09 12:24:53.790200"], ["id", 240]]  (33.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "work_orders" Fixture Insert (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 325582481) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2fcbf02b60fb98e5e5cb6ee9da84bb4a', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'da355a812e51ef859451dcaf470bd10c', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5260f221dc2b6012dd26430db9f0bd35', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6cabd5108e9e938cbb5f19a387b7e877', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd87efed1ade02bd1c660cbad2f3a6077', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aadc5660f5673c1b9120b6059b286c7a', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a8671a5d14ad36e9822c58f23d4fc244', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '7d4133ca61b477604b32f2a18ae4b3a6', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '894172b1dc44abf7d5eeea5db537621c', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3754b9e54511308019a8c2c7eefa1d26', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'a5f4736a83fb9ddd0056d7b5f11b8d85', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f387eda60d035ddb43f537acab2aefa0', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '563b65b023cec726e39709337e269f68', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '68e3338d6fc962349d824617671b8098', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '35950f9462329454726f979a9cfe6ab0', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "events" Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 692230836, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 243566599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 463383467, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 992936599, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 22684094, 920752818) Fixture Insert (0.1ms) INSERT INTO "events" ("created_at", "updated_at", "id", "work_order_id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 919954624, 920752818) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '499f98e946066152513e9c79fd1652c9', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '19c6507466de0dde1d3adb52088153f5', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '24298d71c256124dea2f5b9ed7feb7d8', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '364561cb114720168c500472ce43d05f', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:24:53', '2016-12-09 12:24:53', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '33f289d79b2d3e71fc48f9039d0b8393', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3be22cf94461357e3bd193b4bf0671e2', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd5699adf2dc7c4fada1fd09224592751', '2016-12-09 12:24:53', '2016-12-09 12:24:53', 410780858)  (30.6ms) commit transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:24:53.960941"], ["updated_at", "2016-12-09 12:24:53.960941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:24:53.966423"], ["updated_at", "2016-12-09 12:24:53.966423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:24:53.970622"], ["updated_at", "2016-12-09 12:24:53.970622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:24:53.972029"], ["updated_at", "2016-12-09 12:24:53.972029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:24:53.974380"], ["updated_at", "2016-12-09 12:24:53.974380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders")) ORDER BY "events"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:24:54.011090"], ["updated_at", "2016-12-09 12:24:54.011090"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:24:54.012371"], ["updated_at", "2016-12-09 12:24:54.012371"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:24:54.013318"], ["updated_at", "2016-12-09 12:24:54.013318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:24:54.053653"], ["updated_at", "2016-12-09 12:24:54.053653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 241], ["created_at", "2016-12-09 12:24:54.055837"], ["updated_at", "2016-12-09 12:24:54.055837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:24:54.062544"], ["updated_at", "2016-12-09 12:24:54.062544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:24:54.071449"], ["updated_at", "2016-12-09 12:24:54.071449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:24:54.075463"], ["updated_at", "2016-12-09 12:24:54.075463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:24:54.076875"], ["updated_at", "2016-12-09 12:24:54.076875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:24:54.078151"], ["updated_at", "2016-12-09 12:24:54.078151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:24:54.081748"], ["updated_at", "2016-12-09 12:24:54.081748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:24:54.083119"], ["updated_at", "2016-12-09 12:24:54.083119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:24:54.084375"], ["updated_at", "2016-12-09 12:24:54.084375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:24:54.085582"], ["updated_at", "2016-12-09 12:24:54.085582"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:24:54.086882"], ["updated_at", "2016-12-09 12:24:54.086882"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:24:54.088532"], ["updated_at", "2016-12-09 12:24:54.088532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:24:54.098154"], ["updated_at", "2016-12-09 12:24:54.098154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:24:54.101638"], ["updated_at", "2016-12-09 12:24:54.101638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:24:54.104166"], ["updated_at", "2016-12-09 12:24:54.104166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:24:54.111089"], ["updated_at", "2016-12-09 12:24:54.111089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:24:54.116567"], ["updated_at", "2016-12-09 12:24:54.116567"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:24:54.117589"], ["updated_at", "2016-12-09 12:24:54.117589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:24:54.120516"], ["updated_at", "2016-12-09 12:24:54.120516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:24:54.121841"], ["updated_at", "2016-12-09 12:24:54.121841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:24:54.123117"], ["updated_at", "2016-12-09 12:24:54.123117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:24:54.125477"], ["updated_at", "2016-12-09 12:24:54.125477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:24:54.126816"], ["updated_at", "2016-12-09 12:24:54.126816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:24:54.128132"], ["updated_at", "2016-12-09 12:24:54.128132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:24:54.129411"], ["updated_at", "2016-12-09 12:24:54.129411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:24:54.130937"], ["updated_at", "2016-12-09 12:24:54.130937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:24:54.132802"], ["updated_at", "2016-12-09 12:24:54.132802"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:24:54.138981"], ["updated_at", "2016-12-09 12:24:54.138981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:24:54.140541"], ["updated_at", "2016-12-09 12:24:54.140541"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:24:54.141842"], ["updated_at", "2016-12-09 12:24:54.141842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:24:54.152499"], ["updated_at", "2016-12-09 12:24:54.152499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 241], ["created_at", "2016-12-09 12:24:54.154290"], ["updated_at", "2016-12-09 12:24:54.154290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 241], ["created_at", "2016-12-09 12:24:54.156126"], ["updated_at", "2016-12-09 12:24:54.156126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 241], ["created_at", "2016-12-09 12:24:54.157864"], ["updated_at", "2016-12-09 12:24:54.157864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:24:54.165967"], ["updated_at", "2016-12-09 12:24:54.165967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 241], ["created_at", "2016-12-09 12:24:54.168027"], ["updated_at", "2016-12-09 12:24:54.168027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 241], ["created_at", "2016-12-09 12:24:54.169944"], ["updated_at", "2016-12-09 12:24:54.169944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 241], ["created_at", "2016-12-09 12:24:54.171702"], ["updated_at", "2016-12-09 12:24:54.171702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 241], ["updated_at", "2016-12-09 12:24:54.172999"], ["id", 241]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 241]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 241]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 241]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 241]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 241]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 241]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 241]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 241]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:24:54.199583"], ["updated_at", "2016-12-09 12:24:54.199583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:24:54.200985"], ["updated_at", "2016-12-09 12:24:54.200985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:24:54.202536"], ["updated_at", "2016-12-09 12:24:54.202536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:24:54.207051"], ["updated_at", "2016-12-09 12:24:54.207051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:24:54.208560"], ["updated_at", "2016-12-09 12:24:54.208560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:24:54.209948"], ["updated_at", "2016-12-09 12:24:54.209948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:24:54.215237"], ["updated_at", "2016-12-09 12:24:54.215237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:24:54.221035"], ["updated_at", "2016-12-09 12:24:54.221035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:24:54.223463"], ["updated_at", "2016-12-09 12:24:54.223463"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:24:54.225478"], ["updated_at", "2016-12-09 12:24:54.225478"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:24:54.230787"], ["updated_at", "2016-12-09 12:24:54.230787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:24:54.232795"], ["updated_at", "2016-12-09 12:24:54.232795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:24:54.234724"], ["updated_at", "2016-12-09 12:24:54.234724"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:24:54.237780"], ["updated_at", "2016-12-09 12:24:54.237780"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:24:54.238856"], ["updated_at", "2016-12-09 12:24:54.238856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:24:54.241592"], ["updated_at", "2016-12-09 12:24:54.241592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 240]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 240]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 240]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 240]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 240]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 240]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 240]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 240]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:26:26.707690"], ["updated_at", "2016-12-09 12:26:26.707690"]]  (18.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 241], ["created_at", "2016-12-09 12:26:26.768936"], ["updated_at", "2016-12-09 12:26:26.768936"]]  (26.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 241], ["created_at", "2016-12-09 12:26:26.804367"], ["updated_at", "2016-12-09 12:26:26.804367"]]  (20.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 241], ["created_at", "2016-12-09 12:26:26.834115"], ["updated_at", "2016-12-09 12:26:26.834115"]]  (27.6ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 241], ["updated_at", "2016-12-09 12:26:26.864359"], ["id", 241]]  (20.6ms) commit transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '654850d28c5dc462fb37d0a907649a73', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '997b65fb4bc7a54284693aef1be8022b', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9e5c6a2c642ed9308182979c9499cf1a', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cfa6755fc61535bf3369ec2b7f8ba59f', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '07cfc945794f230507fb1be34b8c77dc', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b99b7ed6fc37ea1cdf1303f7515dcbd7', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '74c51b6d4fa74e65f57e08450c526353', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'a846a6ef653e1019e3b8042f7e2daacc', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '159fe97f168a57bf4b9c9f54d3349071', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '85fd0f95e48d827e51505209e9a775fe', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5afbd17cf1bae105609d0a860483df0d', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '1dc2055826b3786b8b88ebb9e6f4ee28', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8ec4ea8296414f6865a126cb4b337706', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '61e2e3038752222d371c7160470b95b0', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'aba7cadb8fd01c321679d3e7c4c9b8b6', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:26:26', '2016-12-09 12:26:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:26:26', '2016-12-09 12:26:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:26:26', '2016-12-09 12:26:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'abb6fc6f6cb5f77624f775b2a91dbe3a', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9cbf86c1308c4ba23d93f2d5e52b76f6', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ba99a49b345eb1310eba5ba4645a6764', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'fa6f60518460985e29d06e1731283297', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:26:26', '2016-12-09 12:26:26', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:26:26', '2016-12-09 12:26:26', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:26:26', '2016-12-09 12:26:26', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e298932dc9a384d79ea63b3ea14e3d13', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f61c9db926e452e3f5091b7718d47816', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2ff806aad0175f765a7c93e2c01a17e1', '2016-12-09 12:26:26', '2016-12-09 12:26:26', 410780858)  (35.1ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 241]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 241]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 241]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 241]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 241]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 241]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 241]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 241]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:26:27.212876"], ["updated_at", "2016-12-09 12:26:27.212876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:26:27.215102"], ["updated_at", "2016-12-09 12:26:27.215102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:26:27.218074"], ["updated_at", "2016-12-09 12:26:27.218074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:26:27.219486"], ["updated_at", "2016-12-09 12:26:27.219486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:26:27.221731"], ["updated_at", "2016-12-09 12:26:27.221731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."id" = ? LIMIT 1 [["id", 992936600]] Event Load (0.1ms) SELECT "events".* FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders")) ORDER BY "events"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:26:27.255491"], ["updated_at", "2016-12-09 12:26:27.255491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:26:27.257269"], ["updated_at", "2016-12-09 12:26:27.257269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:26:27.258717"], ["updated_at", "2016-12-09 12:26:27.258717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:26:27.261526"], ["updated_at", "2016-12-09 12:26:27.261526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 242], ["created_at", "2016-12-09 12:26:27.263482"], ["updated_at", "2016-12-09 12:26:27.263482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 242], ["created_at", "2016-12-09 12:26:27.265239"], ["updated_at", "2016-12-09 12:26:27.265239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 242], ["created_at", "2016-12-09 12:26:27.267060"], ["updated_at", "2016-12-09 12:26:27.267060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:26:27.285880"], ["updated_at", "2016-12-09 12:26:27.285880"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:26:27.287559"], ["updated_at", "2016-12-09 12:26:27.287559"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:26:27.288837"], ["updated_at", "2016-12-09 12:26:27.288837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:26:27.305202"], ["updated_at", "2016-12-09 12:26:27.305202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:26:27.306697"], ["updated_at", "2016-12-09 12:26:27.306697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:26:27.308033"], ["updated_at", "2016-12-09 12:26:27.308033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:26:27.317172"], ["updated_at", "2016-12-09 12:26:27.317172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:26:27.318589"], ["updated_at", "2016-12-09 12:26:27.318589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:26:27.319908"], ["updated_at", "2016-12-09 12:26:27.319908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:26:27.322422"], ["updated_at", "2016-12-09 12:26:27.322422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:26:27.327222"], ["updated_at", "2016-12-09 12:26:27.327222"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:26:27.328347"], ["updated_at", "2016-12-09 12:26:27.328347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:26:27.331545"], ["updated_at", "2016-12-09 12:26:27.331545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:26:27.332988"], ["updated_at", "2016-12-09 12:26:27.332988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:26:27.334242"], ["updated_at", "2016-12-09 12:26:27.334242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:26:27.335646"], ["updated_at", "2016-12-09 12:26:27.335646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:26:27.336827"], ["updated_at", "2016-12-09 12:26:27.336827"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:26:27.337978"], ["updated_at", "2016-12-09 12:26:27.337978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:26:27.342351"], ["updated_at", "2016-12-09 12:26:27.342351"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 242], ["created_at", "2016-12-09 12:26:27.344272"], ["updated_at", "2016-12-09 12:26:27.344272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:26:27.346755"], ["updated_at", "2016-12-09 12:26:27.346755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:26:27.355600"], ["updated_at", "2016-12-09 12:26:27.355600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:26:27.359914"], ["updated_at", "2016-12-09 12:26:27.359914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:26:27.361290"], ["updated_at", "2016-12-09 12:26:27.361290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:26:27.362548"], ["updated_at", "2016-12-09 12:26:27.362548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:26:27.363720"], ["updated_at", "2016-12-09 12:26:27.363720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:26:27.364878"], ["updated_at", "2016-12-09 12:26:27.364878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:26:27.366170"], ["updated_at", "2016-12-09 12:26:27.366170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:26:27.369910"], ["updated_at", "2016-12-09 12:26:27.369910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 242], ["created_at", "2016-12-09 12:26:27.371758"], ["updated_at", "2016-12-09 12:26:27.371758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 242], ["created_at", "2016-12-09 12:26:27.373603"], ["updated_at", "2016-12-09 12:26:27.373603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 242], ["created_at", "2016-12-09 12:26:27.375493"], ["updated_at", "2016-12-09 12:26:27.375493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 242], ["updated_at", "2016-12-09 12:26:27.376789"], ["id", 242]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 242]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 242]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 242]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 242]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 242]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 242]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 242]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 242]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:26:27.403693"], ["updated_at", "2016-12-09 12:26:27.403693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:26:27.405037"], ["updated_at", "2016-12-09 12:26:27.405037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:26:27.406289"], ["updated_at", "2016-12-09 12:26:27.406289"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:26:27.412615"], ["updated_at", "2016-12-09 12:26:27.412615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:26:27.413982"], ["updated_at", "2016-12-09 12:26:27.413982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:26:27.415380"], ["updated_at", "2016-12-09 12:26:27.415380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:26:27.422862"], ["updated_at", "2016-12-09 12:26:27.422862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:26:27.426121"], ["updated_at", "2016-12-09 12:26:27.426121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:26:27.428248"], ["updated_at", "2016-12-09 12:26:27.428248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:26:27.430062"], ["updated_at", "2016-12-09 12:26:27.430062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:26:27.433397"], ["updated_at", "2016-12-09 12:26:27.433397"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:26:27.434331"], ["updated_at", "2016-12-09 12:26:27.434331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:26:27.437006"], ["updated_at", "2016-12-09 12:26:27.437006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:26:27.442966"], ["updated_at", "2016-12-09 12:26:27.442966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:26:27.445529"], ["updated_at", "2016-12-09 12:26:27.445529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:26:27.448247"], ["updated_at", "2016-12-09 12:26:27.448247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:26:27.452354"], ["updated_at", "2016-12-09 12:26:27.452354"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:26:27.453703"], ["updated_at", "2016-12-09 12:26:27.453703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:26:27.455050"], ["updated_at", "2016-12-09 12:26:27.455050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:27:09.254187"], ["updated_at", "2016-12-09 12:27:09.254187"]]  (31.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 242], ["created_at", "2016-12-09 12:27:09.318837"], ["updated_at", "2016-12-09 12:27:09.318837"]]  (30.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 242], ["created_at", "2016-12-09 12:27:09.365732"], ["updated_at", "2016-12-09 12:27:09.365732"]]  (22.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 242], ["created_at", "2016-12-09 12:27:09.403694"], ["updated_at", "2016-12-09 12:27:09.403694"]]  (31.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 242], ["updated_at", "2016-12-09 12:27:09.437595"], ["id", 242]]  (34.4ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e05472f56585da80bec2cdce884de4f5', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '512d114d4bc9a1c511f52bf9c62dd34d', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e8a5331a86cfeb7a22d6f609bd93a00e', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ecfc34ecebb2dc802b73224891314b3c', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '557cfd9a514d3ecba1d4520345e6085b', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '886c321113adf97729d55412ce73c311', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '1ee25996bdcc2713986d039aa5fde6bb', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '072a4cf4b164184de042dc38017da0ec', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'ee674ed16bbb8dcfc9666348e924bac6', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1d77a04300cb908e1eec9abe4e1880a8', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'aa75fd1e86f0e738825a365274a268ab', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c2e43686a4b6b53ad63972d29c477dcd', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a179536a9889fbfa5fd250f92df7a354', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5b4a3dda8b8d2335485a60fa2b0b1a69', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0b8a0cc5dbade892104814775cb452e2', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:27:09', '2016-12-09 12:27:09', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:27:09', '2016-12-09 12:27:09', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:27:09', '2016-12-09 12:27:09', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '26da78c5e64afd3a273fd0d406fd34ba', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ec24804fc7e5243a058693f6b1ce42fa', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd3414b9105917fce63930ecc3900a329', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '648ee9b748d2d4476ca9dbf051463b25', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:27:09', '2016-12-09 12:27:09', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:27:09', '2016-12-09 12:27:09', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:27:09', '2016-12-09 12:27:09', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a0e647c2acdacb3214c8a9fdf54606cf', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6e1af5356d731f511e6c3de1cd557ce1', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '17fe57313bca004cb5a2cd5aadddfb49', '2016-12-09 12:27:09', '2016-12-09 12:27:09', 410780858)  (30.5ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 242]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 242]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 242]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 242]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 242]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 242]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 242]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 242]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:27:09.782962"], ["updated_at", "2016-12-09 12:27:09.782962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:27:09.790784"], ["updated_at", "2016-12-09 12:27:09.790784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:27:09.792513"], ["updated_at", "2016-12-09 12:27:09.792513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:27:09.793786"], ["updated_at", "2016-12-09 12:27:09.793786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:27:09.795032"], ["updated_at", "2016-12-09 12:27:09.795032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:27:09.796219"], ["updated_at", "2016-12-09 12:27:09.796219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:27:09.797502"], ["updated_at", "2016-12-09 12:27:09.797502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:27:09.803955"], ["updated_at", "2016-12-09 12:27:09.803955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:27:09.805348"], ["updated_at", "2016-12-09 12:27:09.805348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:27:09.806898"], ["updated_at", "2016-12-09 12:27:09.806898"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:27:09.810593"], ["updated_at", "2016-12-09 12:27:09.810593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:27:09.812858"], ["updated_at", "2016-12-09 12:27:09.812858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:27:09.814309"], ["updated_at", "2016-12-09 12:27:09.814309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:27:09.815697"], ["updated_at", "2016-12-09 12:27:09.815697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:27:09.816893"], ["updated_at", "2016-12-09 12:27:09.816893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:27:09.818096"], ["updated_at", "2016-12-09 12:27:09.818096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:27:09.819309"], ["updated_at", "2016-12-09 12:27:09.819309"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:27:09.822431"], ["updated_at", "2016-12-09 12:27:09.822431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:27:09.824572"], ["updated_at", "2016-12-09 12:27:09.824572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:27:09.825934"], ["updated_at", "2016-12-09 12:27:09.825934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:27:09.827229"], ["updated_at", "2016-12-09 12:27:09.827229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:27:09.837328"], ["updated_at", "2016-12-09 12:27:09.837328"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:27:09.838347"], ["updated_at", "2016-12-09 12:27:09.838347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:27:09.841678"], ["updated_at", "2016-12-09 12:27:09.841678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:27:09.843167"], ["updated_at", "2016-12-09 12:27:09.843167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:27:09.844486"], ["updated_at", "2016-12-09 12:27:09.844486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:27:09.847624"], ["updated_at", "2016-12-09 12:27:09.847624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 243], ["created_at", "2016-12-09 12:27:09.849483"], ["updated_at", "2016-12-09 12:27:09.849483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 243], ["created_at", "2016-12-09 12:27:09.851265"], ["updated_at", "2016-12-09 12:27:09.851265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 243], ["created_at", "2016-12-09 12:27:09.853099"], ["updated_at", "2016-12-09 12:27:09.853099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:27:09.860129"], ["updated_at", "2016-12-09 12:27:09.860129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:27:09.861583"], ["updated_at", "2016-12-09 12:27:09.861583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:27:09.862939"], ["updated_at", "2016-12-09 12:27:09.862939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:27:09.865844"], ["updated_at", "2016-12-09 12:27:09.865844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:27:09.869476"], ["updated_at", "2016-12-09 12:27:09.869476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:27:09.872629"], ["updated_at", "2016-12-09 12:27:09.872629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:27:09.876496"], ["updated_at", "2016-12-09 12:27:09.876496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 243], ["created_at", "2016-12-09 12:27:09.878304"], ["updated_at", "2016-12-09 12:27:09.878304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 243], ["created_at", "2016-12-09 12:27:09.880211"], ["updated_at", "2016-12-09 12:27:09.880211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 243], ["created_at", "2016-12-09 12:27:09.881947"], ["updated_at", "2016-12-09 12:27:09.881947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 243], ["updated_at", "2016-12-09 12:27:09.883236"], ["id", 243]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 243]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 243]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 243]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 243]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 243]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 243]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 243]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 243]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:27:09.905848"], ["updated_at", "2016-12-09 12:27:09.905848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 243], ["created_at", "2016-12-09 12:27:09.907693"], ["updated_at", "2016-12-09 12:27:09.907693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:27:09.910187"], ["updated_at", "2016-12-09 12:27:09.910187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:27:09.926118"], ["updated_at", "2016-12-09 12:27:09.926118"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:27:09.927376"], ["updated_at", "2016-12-09 12:27:09.927376"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:27:09.928271"], ["updated_at", "2016-12-09 12:27:09.928271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:27:09.949735"], ["updated_at", "2016-12-09 12:27:09.949735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:27:09.951253"], ["updated_at", "2016-12-09 12:27:09.951253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:27:09.952612"], ["updated_at", "2016-12-09 12:27:09.952612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:27:09.960897"], ["updated_at", "2016-12-09 12:27:09.960897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:27:09.962285"], ["updated_at", "2016-12-09 12:27:09.962285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:27:09.963590"], ["updated_at", "2016-12-09 12:27:09.963590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:27:09.965879"], ["updated_at", "2016-12-09 12:27:09.965879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:27:09.968050"], ["updated_at", "2016-12-09 12:27:09.968050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:27:09.969964"], ["updated_at", "2016-12-09 12:27:09.969964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:27:09.972878"], ["updated_at", "2016-12-09 12:27:09.972878"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:27:09.973835"], ["updated_at", "2016-12-09 12:27:09.973835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:27:09.976806"], ["updated_at", "2016-12-09 12:27:09.976806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:27:09.981645"], ["updated_at", "2016-12-09 12:27:09.981645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders")) ORDER BY "events"."id" ASC LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:27:09.992466"], ["updated_at", "2016-12-09 12:27:09.992466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:27:09.994617"], ["updated_at", "2016-12-09 12:27:09.994617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:27:09.997430"], ["updated_at", "2016-12-09 12:27:09.997430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:27:09.998937"], ["updated_at", "2016-12-09 12:27:09.998937"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:06.284815"], ["updated_at", "2016-12-09 12:28:06.284815"]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 243], ["created_at", "2016-12-09 12:28:06.333893"], ["updated_at", "2016-12-09 12:28:06.333893"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 243], ["created_at", "2016-12-09 12:28:06.356692"], ["updated_at", "2016-12-09 12:28:06.356692"]]  (16.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 243], ["created_at", "2016-12-09 12:28:06.385071"], ["updated_at", "2016-12-09 12:28:06.385071"]]  (17.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 243], ["updated_at", "2016-12-09 12:28:06.405609"], ["id", 243]]  (12.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b98a659c467cf52820e51ec191d74521', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e77a51ed18ee056014ae288dd1c8df24', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3b79576560bbb7a8220b501878cf6811', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '74ac6fae30940a472ae50bb879461b33', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0bef6c5b7aae078c915f5e39625c68cc', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a0e24866875cb4b6704dd3758892968c', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2a6ffaffec3bda5778e655fd93b8523f', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '90b2ff06115ee888ca510f57726005b8', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f8cff449587f13f4835801d62b3c174c', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '8b7a581376bdae20394f74e65f9562a6', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e4d77fbd1b511fb452a805662644d8bb', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b7f5f083700d6427b6e85ae3df7d1dd8', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '714b6095a19a308f3d132228956dcbf5', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e238a04cb535f2fd48c8691cc938ab7b', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dffcc4311c8536a0e8659a68531419ca', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:28:06', '2016-12-09 12:28:06', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:28:06', '2016-12-09 12:28:06', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:28:06', '2016-12-09 12:28:06', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f64a982bb2c7991ef96d0f8f080bd020', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e874a293a411123afc76ace183144fea', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a41ca313387d16abb51c4a9278ee32af', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '206cd791c47571deefd8c5fb40405dae', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:28:06', '2016-12-09 12:28:06', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:28:06', '2016-12-09 12:28:06', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:28:06', '2016-12-09 12:28:06', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'afddfbcc1a7773391904a111ce8b32ed', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '180138cdf4be63cf45f53f5e861daca8', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8179f8c985a42e50b75de557963770cb', '2016-12-09 12:28:06', '2016-12-09 12:28:06', 410780858)  (13.3ms) commit transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.6ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:06.707460"], ["updated_at", "2016-12-09 12:28:06.707460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:28:06.709965"], ["updated_at", "2016-12-09 12:28:06.709965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:06.712973"], ["updated_at", "2016-12-09 12:28:06.712973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:28:06.714352"], ["updated_at", "2016-12-09 12:28:06.714352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:28:06.717468"], ["updated_at", "2016-12-09 12:28:06.717468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 243]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 243]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 243]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 243]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 243]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 243]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 243]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 243]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:28:06.782579"], ["updated_at", "2016-12-09 12:28:06.782579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:28:06.784161"], ["updated_at", "2016-12-09 12:28:06.784161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:28:06.785513"], ["updated_at", "2016-12-09 12:28:06.785513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:28:06.794118"], ["updated_at", "2016-12-09 12:28:06.794118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:28:06.796423"], ["updated_at", "2016-12-09 12:28:06.796423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:06.798392"], ["updated_at", "2016-12-09 12:28:06.798392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:28:06.801490"], ["updated_at", "2016-12-09 12:28:06.801490"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:28:06.802543"], ["updated_at", "2016-12-09 12:28:06.802543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:06.805547"], ["updated_at", "2016-12-09 12:28:06.805547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:06.808158"], ["updated_at", "2016-12-09 12:28:06.808158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:28:06.820526"], ["updated_at", "2016-12-09 12:28:06.820526"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:28:06.821541"], ["updated_at", "2016-12-09 12:28:06.821541"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:28:06.822514"], ["updated_at", "2016-12-09 12:28:06.822514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:28:06.838172"], ["updated_at", "2016-12-09 12:28:06.838172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:28:06.839615"], ["updated_at", "2016-12-09 12:28:06.839615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:28:06.840894"], ["updated_at", "2016-12-09 12:28:06.840894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:28:06.842216"], ["updated_at", "2016-12-09 12:28:06.842216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:28:06.843811"], ["updated_at", "2016-12-09 12:28:06.843811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:28:06.845260"], ["updated_at", "2016-12-09 12:28:06.845260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:28:06.849851"], ["updated_at", "2016-12-09 12:28:06.849851"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:28:06.850896"], ["updated_at", "2016-12-09 12:28:06.850896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:28:06.853937"], ["updated_at", "2016-12-09 12:28:06.853937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:28:06.855353"], ["updated_at", "2016-12-09 12:28:06.855353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:28:06.856656"], ["updated_at", "2016-12-09 12:28:06.856656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:28:06.860669"], ["updated_at", "2016-12-09 12:28:06.860669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:28:06.862045"], ["updated_at", "2016-12-09 12:28:06.862045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:28:06.863328"], ["updated_at", "2016-12-09 12:28:06.863328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:06.869744"], ["updated_at", "2016-12-09 12:28:06.869744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 244], ["created_at", "2016-12-09 12:28:06.871640"], ["updated_at", "2016-12-09 12:28:06.871640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 244], ["created_at", "2016-12-09 12:28:06.873488"], ["updated_at", "2016-12-09 12:28:06.873488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 244], ["created_at", "2016-12-09 12:28:06.875265"], ["updated_at", "2016-12-09 12:28:06.875265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 244], ["updated_at", "2016-12-09 12:28:06.876607"], ["id", 244]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 244]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 244]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 244]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 244]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 244]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 244]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 244]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 244]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:06.902614"], ["updated_at", "2016-12-09 12:28:06.902614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 244], ["created_at", "2016-12-09 12:28:06.904443"], ["updated_at", "2016-12-09 12:28:06.904443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:28:06.906920"], ["updated_at", "2016-12-09 12:28:06.906920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:06.909520"], ["updated_at", "2016-12-09 12:28:06.909520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 244], ["created_at", "2016-12-09 12:28:06.911232"], ["updated_at", "2016-12-09 12:28:06.911232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 244], ["created_at", "2016-12-09 12:28:06.913048"], ["updated_at", "2016-12-09 12:28:06.913048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 244], ["created_at", "2016-12-09 12:28:06.914845"], ["updated_at", "2016-12-09 12:28:06.914845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:28:06.925036"], ["updated_at", "2016-12-09 12:28:06.925036"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:28:06.928786"], ["updated_at", "2016-12-09 12:28:06.928786"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:28:06.932493"], ["updated_at", "2016-12-09 12:28:06.932493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (1.0ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:28:06.947333"], ["updated_at", "2016-12-09 12:28:06.947333"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:28:06.948961"], ["updated_at", "2016-12-09 12:28:06.948961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:28:06.950645"], ["updated_at", "2016-12-09 12:28:06.950645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:28:06.958259"], ["updated_at", "2016-12-09 12:28:06.958259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:28:06.964339"], ["updated_at", "2016-12-09 12:28:06.964339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:28:06.965832"], ["updated_at", "2016-12-09 12:28:06.965832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:28:06.967187"], ["updated_at", "2016-12-09 12:28:06.967187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:28:06.968358"], ["updated_at", "2016-12-09 12:28:06.968358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:28:06.969493"], ["updated_at", "2016-12-09 12:28:06.969493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:28:06.970703"], ["updated_at", "2016-12-09 12:28:06.970703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:28:06.975095"], ["updated_at", "2016-12-09 12:28:06.975095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:28:06.979080"], ["updated_at", "2016-12-09 12:28:06.979080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:28:06.980443"], ["updated_at", "2016-12-09 12:28:06.980443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:28:06.981761"], ["updated_at", "2016-12-09 12:28:06.981761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:28:06.985186"], ["updated_at", "2016-12-09 12:28:06.985186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:28:06.986516"], ["updated_at", "2016-12-09 12:28:06.986516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:28:06.987845"], ["updated_at", "2016-12-09 12:28:06.987845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:44.752460"], ["updated_at", "2016-12-09 12:28:44.752460"]]  (26.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 244], ["created_at", "2016-12-09 12:28:44.821622"], ["updated_at", "2016-12-09 12:28:44.821622"]]  (22.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 244], ["created_at", "2016-12-09 12:28:44.858147"], ["updated_at", "2016-12-09 12:28:44.858147"]]  (23.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 244], ["created_at", "2016-12-09 12:28:44.896521"], ["updated_at", "2016-12-09 12:28:44.896521"]]  (20.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 244], ["updated_at", "2016-12-09 12:28:44.920111"], ["id", 244]]  (26.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '08d94e49fe78191949c3187ceec066e0', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '82bd601b49747e1c47e20b5f182aa306', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f7f6b6154ffb2fae5fb28d4a749db0d4', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cc803018fa125df826e45459e7636957', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '16cc1408c1eeeaa462de203b5cb4bd0f', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3a19472507de127e31eeaccdb0de8e72', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'b8888b4c078e3aeffe758edde7edd03e', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '58798a8784d846a1b44ebc176b4b4827', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f6d1fa95cc485ba9fa686431010b00ff', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f40d6bd7d66cada5a4203e1a08a61d6c', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd37d19422ef7de8837790c8091ae7a94', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b953c934d73b8050b681f025bf66bf32', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a793ac22d2b4698c5a640fd5de06d83e', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '137b1f06c239b5bd6a5e3474eb9c2a27', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b71de52f50f4c39cc8feb9afd676ef26', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:28:45', '2016-12-09 12:28:45', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:28:45', '2016-12-09 12:28:45', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:28:45', '2016-12-09 12:28:45', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '46d5281e603ba962172656f0d46d86e5', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9db7525b02cc2b58f951dd00682105cd', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b26da8fc19d376e759ae37f94c55ebe1', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'ede1a9f0c061e73eacd44e52efe55606', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:28:45', '2016-12-09 12:28:45', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:28:45', '2016-12-09 12:28:45', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:28:45', '2016-12-09 12:28:45', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '12d0a4c5c0fdc40e2c40f781d15c59a3', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1ab53164c65a3146c39eda5c790371d6', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '78594f2dff57cf9fdfa70eb40787b5e0', '2016-12-09 12:28:45', '2016-12-09 12:28:45', 410780858)  (22.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.3ms) 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"]] Photo Load (0.4ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:45.222855"], ["updated_at", "2016-12-09 12:28:45.222855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:28:45.229353"], ["updated_at", "2016-12-09 12:28:45.229353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:28:45.232729"], ["updated_at", "2016-12-09 12:28:45.232729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:45.241449"], ["updated_at", "2016-12-09 12:28:45.241449"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:28:45.243139"], ["updated_at", "2016-12-09 12:28:45.243139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:28:45.264038"], ["updated_at", "2016-12-09 12:28:45.264038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:28:45.266223"], ["updated_at", "2016-12-09 12:28:45.266223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:45.268237"], ["updated_at", "2016-12-09 12:28:45.268237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:28:45.271298"], ["updated_at", "2016-12-09 12:28:45.271298"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:28:45.272290"], ["updated_at", "2016-12-09 12:28:45.272290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:45.275211"], ["updated_at", "2016-12-09 12:28:45.275211"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:28:45.279200"], ["updated_at", "2016-12-09 12:28:45.279200"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:28:45.280190"], ["updated_at", "2016-12-09 12:28:45.280190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:45.283196"], ["updated_at", "2016-12-09 12:28:45.283196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 245], ["created_at", "2016-12-09 12:28:45.285047"], ["updated_at", "2016-12-09 12:28:45.285047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 245], ["created_at", "2016-12-09 12:28:45.286901"], ["updated_at", "2016-12-09 12:28:45.286901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 245], ["created_at", "2016-12-09 12:28:45.288658"], ["updated_at", "2016-12-09 12:28:45.288658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:45.299991"], ["updated_at", "2016-12-09 12:28:45.299991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:45.302717"], ["updated_at", "2016-12-09 12:28:45.302717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 245], ["created_at", "2016-12-09 12:28:45.304432"], ["updated_at", "2016-12-09 12:28:45.304432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 245], ["created_at", "2016-12-09 12:28:45.306151"], ["updated_at", "2016-12-09 12:28:45.306151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 245], ["created_at", "2016-12-09 12:28:45.307844"], ["updated_at", "2016-12-09 12:28:45.307844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 245], ["updated_at", "2016-12-09 12:28:45.309167"], ["id", 245]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 245]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 245]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 245]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 245]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 245]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 245]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 245]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 245]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:28:45.335536"], ["updated_at", "2016-12-09 12:28:45.335536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:28:45.336997"], ["updated_at", "2016-12-09 12:28:45.336997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:28:45.338211"], ["updated_at", "2016-12-09 12:28:45.338211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:28:45.348745"], ["updated_at", "2016-12-09 12:28:45.348745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:28:45.353450"], ["updated_at", "2016-12-09 12:28:45.353450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:28:45.354777"], ["updated_at", "2016-12-09 12:28:45.354777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:28:45.356023"], ["updated_at", "2016-12-09 12:28:45.356023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.7ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:28:45.364967"], ["updated_at", "2016-12-09 12:28:45.364967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:28:45.367034"], ["updated_at", "2016-12-09 12:28:45.367034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:28:45.368347"], ["updated_at", "2016-12-09 12:28:45.368347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:28:45.371344"], ["updated_at", "2016-12-09 12:28:45.371344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:28:45.372678"], ["updated_at", "2016-12-09 12:28:45.372678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:28:45.373917"], ["updated_at", "2016-12-09 12:28:45.373917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:28:45.386435"], ["updated_at", "2016-12-09 12:28:45.386435"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:28:45.387549"], ["updated_at", "2016-12-09 12:28:45.387549"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:28:45.388444"], ["updated_at", "2016-12-09 12:28:45.388444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.1ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:28:45.400779"], ["updated_at", "2016-12-09 12:28:45.400779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:28:45.402102"], ["updated_at", "2016-12-09 12:28:45.402102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:28:45.403607"], ["updated_at", "2016-12-09 12:28:45.403607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:28:45.404943"], ["updated_at", "2016-12-09 12:28:45.404943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:28:45.406106"], ["updated_at", "2016-12-09 12:28:45.406106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:28:45.407381"], ["updated_at", "2016-12-09 12:28:45.407381"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:28:45.411928"], ["updated_at", "2016-12-09 12:28:45.411928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:28:45.414496"], ["updated_at", "2016-12-09 12:28:45.414496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:28:45.416173"], ["updated_at", "2016-12-09 12:28:45.416173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:28:45.420557"], ["updated_at", "2016-12-09 12:28:45.420557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:28:45.426659"], ["updated_at", "2016-12-09 12:28:45.426659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:28:45.429443"], ["updated_at", "2016-12-09 12:28:45.429443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:28:45.432006"], ["updated_at", "2016-12-09 12:28:45.432006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:28:45.436461"], ["updated_at", "2016-12-09 12:28:45.436461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 245], ["created_at", "2016-12-09 12:28:45.438175"], ["updated_at", "2016-12-09 12:28:45.438175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:28:45.440845"], ["updated_at", "2016-12-09 12:28:45.440845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:28:45.443380"], ["updated_at", "2016-12-09 12:28:45.443380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:28:45.444724"], ["updated_at", "2016-12-09 12:28:45.444724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:28:45.445954"], ["updated_at", "2016-12-09 12:28:45.445954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:28:45.448263"], ["updated_at", "2016-12-09 12:28:45.448263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:28:45.449617"], ["updated_at", "2016-12-09 12:28:45.449617"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:28:45.450983"], ["updated_at", "2016-12-09 12:28:45.450983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:28:45.452121"], ["updated_at", "2016-12-09 12:28:45.452121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:28:45.453305"], ["updated_at", "2016-12-09 12:28:45.453305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:28:45.454440"], ["updated_at", "2016-12-09 12:28:45.454440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 244]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 244]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 244]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 244]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 244]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 244]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 244]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 244]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:29:47.413893"], ["updated_at", "2016-12-09 12:29:47.413893"]]  (22.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 245], ["created_at", "2016-12-09 12:29:47.475037"], ["updated_at", "2016-12-09 12:29:47.475037"]]  (25.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 245], ["created_at", "2016-12-09 12:29:47.512332"], ["updated_at", "2016-12-09 12:29:47.512332"]]  (16.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 245], ["created_at", "2016-12-09 12:29:47.538504"], ["updated_at", "2016-12-09 12:29:47.538504"]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 245], ["updated_at", "2016-12-09 12:29:47.557592"], ["id", 245]]  (21.0ms) commit transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f42b4cfd9f892d7a10585d886d84c456', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '86a83eb5f434e5ee5f890ee3c2fdbf46', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ad7e13c43c2c8184373f0efc11e87ca6', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1995207fc6e160c58e513ae2803cb701', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '14b081a9e1cdfd0aba3b8bffc95847d3', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f95bb4b72b6d25985aabe11c4dfc1a59', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '69197766e891d28807dc99bfba980121', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c701d4262ed1062b5896a7fcc7858d63', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '68c315e7b7df481abb884934ddc99012', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c35058fa7c0084800040cb1164aedab4', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '108d1868e7d41a444a160a4e89ba78cb', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '54e4178065462b18475d0976acc50267', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1ba889ff318c942258db60f4cb33a51e', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd49a09f2e4811b52db3bb0a0e0654925', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '825885489445ae66ece382dab1fd5625', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:29:47', '2016-12-09 12:29:47', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:29:47', '2016-12-09 12:29:47', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:29:47', '2016-12-09 12:29:47', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '207795b27f3d33859ae700b6907d71cc', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2d8cb50ab7115c46eb8cb1429dc1d073', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0158acb7902b94fb94d4dbaddd089eb8', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'de82e77a87d79e10760f8141ede110a6', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:29:47', '2016-12-09 12:29:47', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:29:47', '2016-12-09 12:29:47', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:29:47', '2016-12-09 12:29:47', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e5ba0d695fd5819b44a8e5aab3b800fc', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2bf110ea91a80cae3e760b63103b0ba8', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '656fcdf59dc76ad345c3aac8d9ee3674', '2016-12-09 12:29:47', '2016-12-09 12:29:47', 410780858)  (23.6ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:29:47.844912"], ["updated_at", "2016-12-09 12:29:47.844912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:29:47.847244"], ["updated_at", "2016-12-09 12:29:47.847244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:29:47.850391"], ["updated_at", "2016-12-09 12:29:47.850391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:29:47.860400"], ["updated_at", "2016-12-09 12:29:47.860400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:29:47.861892"], ["updated_at", "2016-12-09 12:29:47.861892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:29:47.875476"], ["updated_at", "2016-12-09 12:29:47.875476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 246], ["created_at", "2016-12-09 12:29:47.877956"], ["updated_at", "2016-12-09 12:29:47.877956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 246], ["created_at", "2016-12-09 12:29:47.880026"], ["updated_at", "2016-12-09 12:29:47.880026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 246], ["created_at", "2016-12-09 12:29:47.881878"], ["updated_at", "2016-12-09 12:29:47.881878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:29:47.893813"], ["updated_at", "2016-12-09 12:29:47.893813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:29:47.896188"], ["updated_at", "2016-12-09 12:29:47.896188"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:29:47.898485"], ["updated_at", "2016-12-09 12:29:47.898485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:29:47.902365"], ["updated_at", "2016-12-09 12:29:47.902365"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:29:47.903478"], ["updated_at", "2016-12-09 12:29:47.903478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:29:47.906960"], ["updated_at", "2016-12-09 12:29:47.906960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:29:47.910686"], ["updated_at", "2016-12-09 12:29:47.910686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:29:47.912110"], ["updated_at", "2016-12-09 12:29:47.912110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:29:47.913417"], ["updated_at", "2016-12-09 12:29:47.913417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:29:47.916499"], ["updated_at", "2016-12-09 12:29:47.916499"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:29:47.917944"], ["updated_at", "2016-12-09 12:29:47.917944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:29:47.919360"], ["updated_at", "2016-12-09 12:29:47.919360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:29:47.920656"], ["updated_at", "2016-12-09 12:29:47.920656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:29:47.922013"], ["updated_at", "2016-12-09 12:29:47.922013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:29:47.923573"], ["updated_at", "2016-12-09 12:29:47.923573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:29:47.943492"], ["updated_at", "2016-12-09 12:29:47.943492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:29:47.945283"], ["updated_at", "2016-12-09 12:29:47.945283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:29:47.946792"], ["updated_at", "2016-12-09 12:29:47.946792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:29:47.965962"], ["updated_at", "2016-12-09 12:29:47.965962"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:29:47.967194"], ["updated_at", "2016-12-09 12:29:47.967194"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:29:47.970398"], ["updated_at", "2016-12-09 12:29:47.970398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:29:47.973824"], ["updated_at", "2016-12-09 12:29:47.973824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:29:47.976665"], ["updated_at", "2016-12-09 12:29:47.976665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:29:47.980621"], ["updated_at", "2016-12-09 12:29:47.980621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 246], ["created_at", "2016-12-09 12:29:47.982619"], ["updated_at", "2016-12-09 12:29:47.982619"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 246], ["created_at", "2016-12-09 12:29:47.985135"], ["updated_at", "2016-12-09 12:29:47.985135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 246], ["created_at", "2016-12-09 12:29:47.987597"], ["updated_at", "2016-12-09 12:29:47.987597"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 246], ["updated_at", "2016-12-09 12:29:47.989344"], ["id", 246]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 246]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 246]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 246]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 246]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 246]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 246]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 246]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 246]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:29:48.016259"], ["updated_at", "2016-12-09 12:29:48.016259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:29:48.027068"], ["updated_at", "2016-12-09 12:29:48.027068"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:29:48.028201"], ["updated_at", "2016-12-09 12:29:48.028201"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:29:48.029174"], ["updated_at", "2016-12-09 12:29:48.029174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:29:48.043527"], ["updated_at", "2016-12-09 12:29:48.043527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:29:48.045024"], ["updated_at", "2016-12-09 12:29:48.045024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:29:48.046407"], ["updated_at", "2016-12-09 12:29:48.046407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:29:48.053331"], ["updated_at", "2016-12-09 12:29:48.053331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:29:48.055742"], ["updated_at", "2016-12-09 12:29:48.055742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:29:48.057274"], ["updated_at", "2016-12-09 12:29:48.057274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:29:48.058715"], ["updated_at", "2016-12-09 12:29:48.058715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:29:48.061169"], ["updated_at", "2016-12-09 12:29:48.061169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:29:48.062579"], ["updated_at", "2016-12-09 12:29:48.062579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:29:48.064001"], ["updated_at", "2016-12-09 12:29:48.064001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:29:48.069120"], ["updated_at", "2016-12-09 12:29:48.069120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:29:48.070586"], ["updated_at", "2016-12-09 12:29:48.070586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:29:48.071939"], ["updated_at", "2016-12-09 12:29:48.071939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:29:48.073255"], ["updated_at", "2016-12-09 12:29:48.073255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:29:48.074487"], ["updated_at", "2016-12-09 12:29:48.074487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:29:48.075751"], ["updated_at", "2016-12-09 12:29:48.075751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:29:48.079364"], ["updated_at", "2016-12-09 12:29:48.079364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 246], ["created_at", "2016-12-09 12:29:48.081341"], ["updated_at", "2016-12-09 12:29:48.081341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:29:48.084100"], ["updated_at", "2016-12-09 12:29:48.084100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:29:48.088181"], ["updated_at", "2016-12-09 12:29:48.088181"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:29:48.090590"], ["updated_at", "2016-12-09 12:29:48.090590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:29:48.092411"], ["updated_at", "2016-12-09 12:29:48.092411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:29:48.093825"], ["updated_at", "2016-12-09 12:29:48.093825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 245]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 245]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 245]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 245]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 245]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 245]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 245]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 245]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:30:27.284355"], ["updated_at", "2016-12-09 12:30:27.284355"]]  (14.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 246], ["created_at", "2016-12-09 12:30:27.339304"], ["updated_at", "2016-12-09 12:30:27.339304"]]  (17.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 246], ["created_at", "2016-12-09 12:30:27.364691"], ["updated_at", "2016-12-09 12:30:27.364691"]]  (30.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 246], ["created_at", "2016-12-09 12:30:27.403821"], ["updated_at", "2016-12-09 12:30:27.403821"]]  (23.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 246], ["updated_at", "2016-12-09 12:30:27.429521"], ["id", 246]]  (23.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '30969f27268e1328c0324a2f2da137e5', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '51f25ecac4ac19af2787c1f37c176a8b', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '12eb68a8febd3ea8f0601c66107b8a85', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a0599131980f94b96e58eb7fb4a8b88f', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd53b4d3e4a83964778b99e37ce96a117', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4583d3c064df6f6c7600408294da4394', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd18ec4dc86a48482c83b5d24d449b701', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f435c53d023a1ffa48d83f781db3b203', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '764e4b74ca8da0b75a0a2525a2bb6aef', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '45701be97310fd4d1f27043932cb6078', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '52a1d4b5a1d0e0a1f77416d0ca7f84dc', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'caf4bb1d9b2b18d60cf08357aa4dd9f0', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e2aade95ecaeaeb7121c2c243e27f04f', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9ec9a78b3fad1edd7f31f8887829b402', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f7949b2dccb02b55660714d6b92abb78', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:30:27', '2016-12-09 12:30:27', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:30:27', '2016-12-09 12:30:27', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:30:27', '2016-12-09 12:30:27', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '84d8405cea2f3c1c8c13a32c44997fc2', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a5bd3afd0595187356749e5096f656f9', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e568acb5166656b53a5915c0ea80e348', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '46c6716101111f2011b22709d7ca4833', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:30:27', '2016-12-09 12:30:27', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:30:27', '2016-12-09 12:30:27', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:30:27', '2016-12-09 12:30:27', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'f06fccadbe910e5777c13350c2c261aa', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8455392d186e600f61cadbd72b7d19b2', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4b728978a208df0cb9c2035be37cee61', '2016-12-09 12:30:27', '2016-12-09 12:30:27', 410780858)  (25.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:30:27.596207"], ["updated_at", "2016-12-09 12:30:27.596207"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:30:27.602686"], ["updated_at", "2016-12-09 12:30:27.602686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:30:27.605826"], ["updated_at", "2016-12-09 12:30:27.605826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:30:27.607319"], ["updated_at", "2016-12-09 12:30:27.607319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:30:27.609718"], ["updated_at", "2016-12-09 12:30:27.609718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders")) ORDER BY "events"."id" ASC LIMIT 1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:30:27.637644"], ["updated_at", "2016-12-09 12:30:27.637644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:30:27.639337"], ["updated_at", "2016-12-09 12:30:27.639337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:30:27.640683"], ["updated_at", "2016-12-09 12:30:27.640683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:30:27.665754"], ["updated_at", "2016-12-09 12:30:27.665754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:30:27.667460"], ["updated_at", "2016-12-09 12:30:27.667460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:30:27.668840"], ["updated_at", "2016-12-09 12:30:27.668840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:30:27.671490"], ["updated_at", "2016-12-09 12:30:27.671490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 247], ["created_at", "2016-12-09 12:30:27.673387"], ["updated_at", "2016-12-09 12:30:27.673387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:30:27.676169"], ["updated_at", "2016-12-09 12:30:27.676169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:30:27.679986"], ["updated_at", "2016-12-09 12:30:27.679986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:30:27.683154"], ["updated_at", "2016-12-09 12:30:27.683154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:30:27.685699"], ["updated_at", "2016-12-09 12:30:27.685699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:30:27.699726"], ["updated_at", "2016-12-09 12:30:27.699726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:30:27.701357"], ["updated_at", "2016-12-09 12:30:27.701357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:30:27.702644"], ["updated_at", "2016-12-09 12:30:27.702644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:30:27.710291"], ["updated_at", "2016-12-09 12:30:27.710291"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:30:27.711522"], ["updated_at", "2016-12-09 12:30:27.711522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:30:27.716692"], ["updated_at", "2016-12-09 12:30:27.716692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:30:27.718085"], ["updated_at", "2016-12-09 12:30:27.718085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:30:27.719351"], ["updated_at", "2016-12-09 12:30:27.719351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:30:27.720618"], ["updated_at", "2016-12-09 12:30:27.720618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:30:27.721803"], ["updated_at", "2016-12-09 12:30:27.721803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:30:27.723061"], ["updated_at", "2016-12-09 12:30:27.723061"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:30:27.728840"], ["updated_at", "2016-12-09 12:30:27.728840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:30:27.731873"], ["updated_at", "2016-12-09 12:30:27.731873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:30:27.733207"], ["updated_at", "2016-12-09 12:30:27.733207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:30:27.734479"], ["updated_at", "2016-12-09 12:30:27.734479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:30:27.735673"], ["updated_at", "2016-12-09 12:30:27.735673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:30:27.736875"], ["updated_at", "2016-12-09 12:30:27.736875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:30:27.738069"], ["updated_at", "2016-12-09 12:30:27.738069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:30:27.749229"], ["updated_at", "2016-12-09 12:30:27.749229"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:30:27.750357"], ["updated_at", "2016-12-09 12:30:27.750357"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:30:27.751277"], ["updated_at", "2016-12-09 12:30:27.751277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:30:27.766128"], ["updated_at", "2016-12-09 12:30:27.766128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:30:27.767655"], ["updated_at", "2016-12-09 12:30:27.767655"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:30:27.768929"], ["updated_at", "2016-12-09 12:30:27.768929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:30:27.771461"], ["updated_at", "2016-12-09 12:30:27.771461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:30:27.772881"], ["updated_at", "2016-12-09 12:30:27.772881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:30:27.774153"], ["updated_at", "2016-12-09 12:30:27.774153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:30:27.778704"], ["updated_at", "2016-12-09 12:30:27.778704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 247], ["created_at", "2016-12-09 12:30:27.780610"], ["updated_at", "2016-12-09 12:30:27.780610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 247], ["created_at", "2016-12-09 12:30:27.782432"], ["updated_at", "2016-12-09 12:30:27.782432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 247], ["created_at", "2016-12-09 12:30:27.784199"], ["updated_at", "2016-12-09 12:30:27.784199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:30:27.791813"], ["updated_at", "2016-12-09 12:30:27.791813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:30:27.793181"], ["updated_at", "2016-12-09 12:30:27.793181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:30:27.794420"], ["updated_at", "2016-12-09 12:30:27.794420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:30:27.800610"], ["updated_at", "2016-12-09 12:30:27.800610"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:30:27.802829"], ["updated_at", "2016-12-09 12:30:27.802829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:30:27.804664"], ["updated_at", "2016-12-09 12:30:27.804664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:30:27.807838"], ["updated_at", "2016-12-09 12:30:27.807838"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:30:27.808783"], ["updated_at", "2016-12-09 12:30:27.808783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:30:27.811541"], ["updated_at", "2016-12-09 12:30:27.811541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:30:27.816325"], ["updated_at", "2016-12-09 12:30:27.816325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:30:27.818523"], ["updated_at", "2016-12-09 12:30:27.818523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:30:27.824900"], ["updated_at", "2016-12-09 12:30:27.824900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 247], ["created_at", "2016-12-09 12:30:27.826873"], ["updated_at", "2016-12-09 12:30:27.826873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 247], ["created_at", "2016-12-09 12:30:27.828673"], ["updated_at", "2016-12-09 12:30:27.828673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 247], ["created_at", "2016-12-09 12:30:27.830355"], ["updated_at", "2016-12-09 12:30:27.830355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 247], ["updated_at", "2016-12-09 12:30:27.831641"], ["id", 247]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 247]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 247]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 247]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 247]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 247]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 247]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 247]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 247]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 246]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 246]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 246]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 246]]  (0.1ms) rollback transaction  (2.5ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 246]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 246]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 246]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 246]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:30:59.959109"], ["updated_at", "2016-12-09 12:30:59.959109"]]  (23.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 247], ["created_at", "2016-12-09 12:31:00.023308"], ["updated_at", "2016-12-09 12:31:00.023308"]]  (26.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 247], ["created_at", "2016-12-09 12:31:00.058344"], ["updated_at", "2016-12-09 12:31:00.058344"]]  (16.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 247], ["created_at", "2016-12-09 12:31:00.092363"], ["updated_at", "2016-12-09 12:31:00.092363"]]  (29.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 247], ["updated_at", "2016-12-09 12:31:00.125233"], ["id", 247]]  (25.5ms) commit transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a88af98ac4c737b348732d5eada1dd2c', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9aa7608fb4082ee6630e5527b5bf1c15', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3ec5d299e68d5269f080fbe0adb8c217', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '52f283283d44541accef2875d6d6e824', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f2358b7d7f36a650020982b684775da7', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8465dac4c1abc7765e1062692fd219a8', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4c15bc631afcfa5de8b6ceda6a0db427', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd3eb943b84b56e787e94be5d938dc41e', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a2edb0afc27bb7a107b30a990a7e2630', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0ca810042ccb8ae09e751ae9fcc03191', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '998e092c159d6fc4e8e3317c57e23f75', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '455177283e6e27d43322af2673480fb7', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a5d2ed3a7ea47987d9d3abde81cf4012', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '06317825ed27c5a55e3b28d209688c64', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ef92f4a337d26f21bfd0cf6d300b4c39', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:00', '2016-12-09 12:31:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:00', '2016-12-09 12:31:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:00', '2016-12-09 12:31:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '11f3075cbf31a099c2148268bd65296c', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ad8b7dd0d40465723561032f19948a38', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '461345023d3e84bdafde620a17d5a642', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'c24e28ded89d83dc90b94a6882193c68', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:00', '2016-12-09 12:31:00', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:00', '2016-12-09 12:31:00', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:00', '2016-12-09 12:31:00', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c68b94f82eec2a901f351194e5d58e0b', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '430cedae50b9fc93f052d7847acd5dfb', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3eccf7d1ce6c55bed7005f9ed698cfb4', '2016-12-09 12:31:00', '2016-12-09 12:31:00', 410780858)  (24.4ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 247]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 247]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 247]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 247]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 247]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 247]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 247]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 247]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:00.400752"], ["updated_at", "2016-12-09 12:31:00.400752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:00.409732"], ["updated_at", "2016-12-09 12:31:00.409732"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 248], ["created_at", "2016-12-09 12:31:00.413040"], ["updated_at", "2016-12-09 12:31:00.413040"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:00.419541"], ["updated_at", "2016-12-09 12:31:00.419541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:00.422996"], ["updated_at", "2016-12-09 12:31:00.422996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:00.425267"], ["updated_at", "2016-12-09 12:31:00.425267"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:00.427415"], ["updated_at", "2016-12-09 12:31:00.427415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:00.430424"], ["updated_at", "2016-12-09 12:31:00.430424"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:00.431521"], ["updated_at", "2016-12-09 12:31:00.431521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:00.434608"], ["updated_at", "2016-12-09 12:31:00.434608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:31:00.446755"], ["updated_at", "2016-12-09 12:31:00.446755"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:31:00.448014"], ["updated_at", "2016-12-09 12:31:00.448014"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:31:00.449176"], ["updated_at", "2016-12-09 12:31:00.449176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:00.464973"], ["updated_at", "2016-12-09 12:31:00.464973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:00.466427"], ["updated_at", "2016-12-09 12:31:00.466427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:00.467950"], ["updated_at", "2016-12-09 12:31:00.467950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:00.474420"], ["updated_at", "2016-12-09 12:31:00.474420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 248], ["created_at", "2016-12-09 12:31:00.476555"], ["updated_at", "2016-12-09 12:31:00.476555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 248], ["created_at", "2016-12-09 12:31:00.478332"], ["updated_at", "2016-12-09 12:31:00.478332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 248], ["created_at", "2016-12-09 12:31:00.480168"], ["updated_at", "2016-12-09 12:31:00.480168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:00.491527"], ["updated_at", "2016-12-09 12:31:00.491527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:00.492972"], ["updated_at", "2016-12-09 12:31:00.492972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:00.494286"], ["updated_at", "2016-12-09 12:31:00.494286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:00.500171"], ["updated_at", "2016-12-09 12:31:00.500171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:00.501536"], ["updated_at", "2016-12-09 12:31:00.501536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:00.502871"], ["updated_at", "2016-12-09 12:31:00.502871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:00.507483"], ["updated_at", "2016-12-09 12:31:00.507483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 248], ["created_at", "2016-12-09 12:31:00.509359"], ["updated_at", "2016-12-09 12:31:00.509359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 248], ["created_at", "2016-12-09 12:31:00.511250"], ["updated_at", "2016-12-09 12:31:00.511250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 248], ["created_at", "2016-12-09 12:31:00.513026"], ["updated_at", "2016-12-09 12:31:00.513026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 248], ["updated_at", "2016-12-09 12:31:00.514336"], ["id", 248]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 248]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 248]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 248]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 248]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 248]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 248]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 248]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 248]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]]  (0.3ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:00.537767"], ["updated_at", "2016-12-09 12:31:00.537767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:00.539343"], ["updated_at", "2016-12-09 12:31:00.539343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:00.540625"], ["updated_at", "2016-12-09 12:31:00.540625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:00.541818"], ["updated_at", "2016-12-09 12:31:00.541818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:00.543081"], ["updated_at", "2016-12-09 12:31:00.543081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:00.544372"], ["updated_at", "2016-12-09 12:31:00.544372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:00.547841"], ["updated_at", "2016-12-09 12:31:00.547841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:00.549243"], ["updated_at", "2016-12-09 12:31:00.549243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:00.550567"], ["updated_at", "2016-12-09 12:31:00.550567"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:00.552002"], ["updated_at", "2016-12-09 12:31:00.552002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:00.553342"], ["updated_at", "2016-12-09 12:31:00.553342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:00.554797"], ["updated_at", "2016-12-09 12:31:00.554797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:00.563539"], ["updated_at", "2016-12-09 12:31:00.563539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:00.565006"], ["updated_at", "2016-12-09 12:31:00.565006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:00.566376"], ["updated_at", "2016-12-09 12:31:00.566376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:31:00.570350"], ["updated_at", "2016-12-09 12:31:00.570350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:31:00.572004"], ["updated_at", "2016-12-09 12:31:00.572004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:31:00.573316"], ["updated_at", "2016-12-09 12:31:00.573316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:00.576342"], ["updated_at", "2016-12-09 12:31:00.576342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:00.579049"], ["updated_at", "2016-12-09 12:31:00.579049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:31:00.581707"], ["updated_at", "2016-12-09 12:31:00.581707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:00.587438"], ["updated_at", "2016-12-09 12:31:00.587438"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:00.588459"], ["updated_at", "2016-12-09 12:31:00.588459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:00.593332"], ["updated_at", "2016-12-09 12:31:00.593332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:31:00.597238"], ["updated_at", "2016-12-09 12:31:00.597238"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:31:00.602793"], ["updated_at", "2016-12-09 12:31:00.602793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:31:00.604211"], ["updated_at", "2016-12-09 12:31:00.604211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:31:00.605612"], ["updated_at", "2016-12-09 12:31:00.605612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:31:00.613537"], ["updated_at", "2016-12-09 12:31:00.613537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:00.619096"], ["updated_at", "2016-12-09 12:31:00.619096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:00.621217"], ["updated_at", "2016-12-09 12:31:00.621217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:00.624013"], ["updated_at", "2016-12-09 12:31:00.624013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:00.625472"], ["updated_at", "2016-12-09 12:31:00.625472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:14.845488"], ["updated_at", "2016-12-09 12:31:14.845488"]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 248], ["created_at", "2016-12-09 12:31:14.897895"], ["updated_at", "2016-12-09 12:31:14.897895"]]  (16.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 248], ["created_at", "2016-12-09 12:31:14.923229"], ["updated_at", "2016-12-09 12:31:14.923229"]]  (11.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 248], ["created_at", "2016-12-09 12:31:14.951307"], ["updated_at", "2016-12-09 12:31:14.951307"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 248], ["updated_at", "2016-12-09 12:31:14.965747"], ["id", 248]]  (12.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4197f7ba8d17de856d30a24120c444aa', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '660a42072200c7d76ab9160431b83860', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5ebc915e57b60cc61be822df8989d332', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '96ff072536a6bd59b6cd59594496677f', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a50b90a7abc94a7e2ad157736c64cf11', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ef11e4f1cac682e76aea891ed966b65e', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ce51e2150b81f938f16025d4070482b7', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e609005b7120c30340930adf95e85502', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'dff51f6502d015daa5135ee981dfcf48', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5bd5c4156eea5efe177fcf56b381f7fc', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1d7474c81ff1e6653139c2602fd04065', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8e05db48e3e0db58358aa1eafcbd67b8', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6d52db5d0e014e9af984a53b8d9b5668', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '18159ec95f016a49fba94a26543110e6', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4350a3f7155eeb71cb5d2773000932da', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:15', '2016-12-09 12:31:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:15', '2016-12-09 12:31:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:15', '2016-12-09 12:31:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4afccbad6b2a8672e4afb4ad19bd42d0', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '41e79ac6362b5c30763f72f83aa2e994', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '893440ae1d913870b3d6e8225344e64f', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'f0bdf4255eedeb52b2192ebbf0c608b0', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:15', '2016-12-09 12:31:15', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:15', '2016-12-09 12:31:15', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:15', '2016-12-09 12:31:15', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '099a9c625fc7fade90a267cb79b37d0c', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '891c4e9c93f216f46ff9f6d0b1efdb4f', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f66f2dc6ba6c5392b5cbf6f56db6684c', '2016-12-09 12:31:15', '2016-12-09 12:31:15', 410780858)  (25.7ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:15.105963"], ["updated_at", "2016-12-09 12:31:15.105963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:15.112477"], ["updated_at", "2016-12-09 12:31:15.112477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:15.117338"], ["updated_at", "2016-12-09 12:31:15.117338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:15.119308"], ["updated_at", "2016-12-09 12:31:15.119308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:31:15.122551"], ["updated_at", "2016-12-09 12:31:15.122551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 248]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 248]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 248]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 248]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 248]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 248]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 248]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 248]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:15.329815"], ["updated_at", "2016-12-09 12:31:15.329815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 249], ["created_at", "2016-12-09 12:31:15.331870"], ["updated_at", "2016-12-09 12:31:15.331870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:15.334763"], ["updated_at", "2016-12-09 12:31:15.334763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:15.337672"], ["updated_at", "2016-12-09 12:31:15.337672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:15.339681"], ["updated_at", "2016-12-09 12:31:15.339681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:15.341480"], ["updated_at", "2016-12-09 12:31:15.341480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:15.344473"], ["updated_at", "2016-12-09 12:31:15.344473"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:15.345457"], ["updated_at", "2016-12-09 12:31:15.345457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:15.348289"], ["updated_at", "2016-12-09 12:31:15.348289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:31:15.357111"], ["updated_at", "2016-12-09 12:31:15.357111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:31:15.358612"], ["updated_at", "2016-12-09 12:31:15.358612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:31:15.359912"], ["updated_at", "2016-12-09 12:31:15.359912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:15.363777"], ["updated_at", "2016-12-09 12:31:15.363777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:15.365145"], ["updated_at", "2016-12-09 12:31:15.365145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:15.366444"], ["updated_at", "2016-12-09 12:31:15.366444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:31:15.378284"], ["updated_at", "2016-12-09 12:31:15.378284"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:31:15.379421"], ["updated_at", "2016-12-09 12:31:15.379421"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:31:15.380356"], ["updated_at", "2016-12-09 12:31:15.380356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:15.395862"], ["updated_at", "2016-12-09 12:31:15.395862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:15.401372"], ["updated_at", "2016-12-09 12:31:15.401372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:15.402723"], ["updated_at", "2016-12-09 12:31:15.402723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:15.403997"], ["updated_at", "2016-12-09 12:31:15.403997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:15.407666"], ["updated_at", "2016-12-09 12:31:15.407666"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 249], ["created_at", "2016-12-09 12:31:15.409478"], ["updated_at", "2016-12-09 12:31:15.409478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 249], ["created_at", "2016-12-09 12:31:15.411237"], ["updated_at", "2016-12-09 12:31:15.411237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 249], ["created_at", "2016-12-09 12:31:15.412949"], ["updated_at", "2016-12-09 12:31:15.412949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 249], ["updated_at", "2016-12-09 12:31:15.414222"], ["id", 249]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 249]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 249]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 249]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 249]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 249]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 249]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 249]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 249]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:15.451875"], ["updated_at", "2016-12-09 12:31:15.451875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:15.454035"], ["updated_at", "2016-12-09 12:31:15.454035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:15.455423"], ["updated_at", "2016-12-09 12:31:15.455423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:15.456654"], ["updated_at", "2016-12-09 12:31:15.456654"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:15.461587"], ["updated_at", "2016-12-09 12:31:15.461587"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:15.462692"], ["updated_at", "2016-12-09 12:31:15.462692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:15.465718"], ["updated_at", "2016-12-09 12:31:15.465718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:15.467064"], ["updated_at", "2016-12-09 12:31:15.467064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:15.468288"], ["updated_at", "2016-12-09 12:31:15.468288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:31:15.472859"], ["updated_at", "2016-12-09 12:31:15.472859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:15.475307"], ["updated_at", "2016-12-09 12:31:15.475307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:15.476608"], ["updated_at", "2016-12-09 12:31:15.476608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:15.477812"], ["updated_at", "2016-12-09 12:31:15.477812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:15.478975"], ["updated_at", "2016-12-09 12:31:15.478975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:15.480105"], ["updated_at", "2016-12-09 12:31:15.480105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:15.481223"], ["updated_at", "2016-12-09 12:31:15.481223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:15.483493"], ["updated_at", "2016-12-09 12:31:15.483493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:15.484791"], ["updated_at", "2016-12-09 12:31:15.484791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:15.486018"], ["updated_at", "2016-12-09 12:31:15.486018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:15.487186"], ["updated_at", "2016-12-09 12:31:15.487186"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:15.488335"], ["updated_at", "2016-12-09 12:31:15.488335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:15.489450"], ["updated_at", "2016-12-09 12:31:15.489450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:15.492862"], ["updated_at", "2016-12-09 12:31:15.492862"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 249], ["created_at", "2016-12-09 12:31:15.494830"], ["updated_at", "2016-12-09 12:31:15.494830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 249], ["created_at", "2016-12-09 12:31:15.496618"], ["updated_at", "2016-12-09 12:31:15.496618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 249], ["created_at", "2016-12-09 12:31:15.498327"], ["updated_at", "2016-12-09 12:31:15.498327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:15.507487"], ["updated_at", "2016-12-09 12:31:15.507487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:15.510015"], ["updated_at", "2016-12-09 12:31:15.510015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:31:15.512541"], ["updated_at", "2016-12-09 12:31:15.512541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:31:15.515737"], ["updated_at", "2016-12-09 12:31:15.515737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:31:15.517173"], ["updated_at", "2016-12-09 12:31:15.517173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:31:15.518447"], ["updated_at", "2016-12-09 12:31:15.518447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:18.348492"], ["updated_at", "2016-12-09 12:31:18.348492"]]  (14.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 249], ["created_at", "2016-12-09 12:31:18.386295"], ["updated_at", "2016-12-09 12:31:18.386295"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 249], ["created_at", "2016-12-09 12:31:18.412694"], ["updated_at", "2016-12-09 12:31:18.412694"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 249], ["created_at", "2016-12-09 12:31:18.435077"], ["updated_at", "2016-12-09 12:31:18.435077"]]  (23.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 249], ["updated_at", "2016-12-09 12:31:18.462695"], ["id", 249]]  (22.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '03c00da324d04426d3d85892b8d4b028', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a13923a9da91536c5db71dac313a06a1', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9b15720b27d1f455807817d1b685c8a1', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '7265c275d3d21c7076292a9deb8d3138', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e93d184a7893aa034a4bf8e40afda867', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bf419c27bf2d011e8efd6c9215b98fd1', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6faee4f9fed9deb4e963b7474c642a4e', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd77f162d814a4061f82b390d0bdce315', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '015be21a00881724476f2b07ff92c814', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '999aee21dfb229dc4df355f75c43367e', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'e0a4971b8de4eb9aa8e98e603848e0e7', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'd42e5c34c1f972e56cff729075b3b45b', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '982ecbf61c74415068607bcd114f33a7', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e223bcb7e49a297daa6ce654daa3cb0', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '68e52ee85c873cf5776e3337e34bdb9c', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:18', '2016-12-09 12:31:18', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:18', '2016-12-09 12:31:18', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:18', '2016-12-09 12:31:18', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6f7d98ce92722cbbf2a5cb99fb3d0845', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a7bf5b558890f41a304d97566b0e6145', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd3b748213e882903aa9d2102ddc77fb7', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '81ea6c8e043043df272ca194e162a5e5', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:18', '2016-12-09 12:31:18', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:18', '2016-12-09 12:31:18', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:18', '2016-12-09 12:31:18', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6f5138aa243589567f1d67959ffd7923', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'c75203cc07ef4d348ca658ce4da45951', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dd9384b9f4224f2e8903df14e29af38e', '2016-12-09 12:31:18', '2016-12-09 12:31:18', 410780858)  (26.2ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.4ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:18.633410"], ["updated_at", "2016-12-09 12:31:18.633410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 250], ["created_at", "2016-12-09 12:31:18.635625"], ["updated_at", "2016-12-09 12:31:18.635625"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:18.642746"], ["updated_at", "2016-12-09 12:31:18.642746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:18.646058"], ["updated_at", "2016-12-09 12:31:18.646058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:18.648536"], ["updated_at", "2016-12-09 12:31:18.648536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:18.650597"], ["updated_at", "2016-12-09 12:31:18.650597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:18.669662"], ["updated_at", "2016-12-09 12:31:18.669662"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:18.671079"], ["updated_at", "2016-12-09 12:31:18.671079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:18.674540"], ["updated_at", "2016-12-09 12:31:18.674540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:31:18.684775"], ["updated_at", "2016-12-09 12:31:18.684775"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:31:18.685908"], ["updated_at", "2016-12-09 12:31:18.685908"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:31:18.687010"], ["updated_at", "2016-12-09 12:31:18.687010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:18.703583"], ["updated_at", "2016-12-09 12:31:18.703583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:18.708388"], ["updated_at", "2016-12-09 12:31:18.708388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:31:18.711412"], ["updated_at", "2016-12-09 12:31:18.711412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:18.715824"], ["updated_at", "2016-12-09 12:31:18.715824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:18.717264"], ["updated_at", "2016-12-09 12:31:18.717264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:18.718698"], ["updated_at", "2016-12-09 12:31:18.718698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:18.722548"], ["updated_at", "2016-12-09 12:31:18.722548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:18.723939"], ["updated_at", "2016-12-09 12:31:18.723939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:18.725271"], ["updated_at", "2016-12-09 12:31:18.725271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:18.726659"], ["updated_at", "2016-12-09 12:31:18.726659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:18.727921"], ["updated_at", "2016-12-09 12:31:18.727921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:18.729210"], ["updated_at", "2016-12-09 12:31:18.729210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:18.731712"], ["updated_at", "2016-12-09 12:31:18.731712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:18.733153"], ["updated_at", "2016-12-09 12:31:18.733153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:18.734646"], ["updated_at", "2016-12-09 12:31:18.734646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:18.736966"], ["updated_at", "2016-12-09 12:31:18.736966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:18.743059"], ["updated_at", "2016-12-09 12:31:18.743059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 250], ["created_at", "2016-12-09 12:31:18.745164"], ["updated_at", "2016-12-09 12:31:18.745164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 250], ["created_at", "2016-12-09 12:31:18.747248"], ["updated_at", "2016-12-09 12:31:18.747248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 250], ["created_at", "2016-12-09 12:31:18.749197"], ["updated_at", "2016-12-09 12:31:18.749197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:31:18.775247"], ["updated_at", "2016-12-09 12:31:18.775247"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:18.780704"], ["updated_at", "2016-12-09 12:31:18.780704"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:18.781800"], ["updated_at", "2016-12-09 12:31:18.781800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:18.786050"], ["updated_at", "2016-12-09 12:31:18.786050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 250], ["created_at", "2016-12-09 12:31:18.788027"], ["updated_at", "2016-12-09 12:31:18.788027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 250], ["created_at", "2016-12-09 12:31:18.789805"], ["updated_at", "2016-12-09 12:31:18.789805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 250], ["created_at", "2016-12-09 12:31:18.791744"], ["updated_at", "2016-12-09 12:31:18.791744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 250], ["updated_at", "2016-12-09 12:31:18.793143"], ["id", 250]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 250]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 250]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 250]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 250]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 250]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 250]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 250]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 250]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:18.823609"], ["updated_at", "2016-12-09 12:31:18.823609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:18.828667"], ["updated_at", "2016-12-09 12:31:18.828667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:18.830175"], ["updated_at", "2016-12-09 12:31:18.830175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:18.831571"], ["updated_at", "2016-12-09 12:31:18.831571"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:18.835641"], ["updated_at", "2016-12-09 12:31:18.835641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:18.837038"], ["updated_at", "2016-12-09 12:31:18.837038"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:18.838443"], ["updated_at", "2016-12-09 12:31:18.838443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:31:18.847663"], ["updated_at", "2016-12-09 12:31:18.847663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:31:18.849326"], ["updated_at", "2016-12-09 12:31:18.849326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:31:18.850774"], ["updated_at", "2016-12-09 12:31:18.850774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:31:18.855127"], ["updated_at", "2016-12-09 12:31:18.855127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:31:18.856679"], ["updated_at", "2016-12-09 12:31:18.856679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:31:18.858042"], ["updated_at", "2016-12-09 12:31:18.858042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:18.862570"], ["updated_at", "2016-12-09 12:31:18.862570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:18.863996"], ["updated_at", "2016-12-09 12:31:18.863996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:18.865408"], ["updated_at", "2016-12-09 12:31:18.865408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:18.866742"], ["updated_at", "2016-12-09 12:31:18.866742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:18.868016"], ["updated_at", "2016-12-09 12:31:18.868016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:18.869258"], ["updated_at", "2016-12-09 12:31:18.869258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:18.977776"], ["updated_at", "2016-12-09 12:31:18.977776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:18.980339"], ["updated_at", "2016-12-09 12:31:18.980339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:18.983781"], ["updated_at", "2016-12-09 12:31:18.983781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:18.985249"], ["updated_at", "2016-12-09 12:31:18.985249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:31:18.987791"], ["updated_at", "2016-12-09 12:31:18.987791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 249]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 249]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 249]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 249]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 249]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 249]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 249]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 249]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:21.679526"], ["updated_at", "2016-12-09 12:31:21.679526"]]  (29.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 250], ["created_at", "2016-12-09 12:31:21.729277"], ["updated_at", "2016-12-09 12:31:21.729277"]]  (14.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 250], ["created_at", "2016-12-09 12:31:21.757809"], ["updated_at", "2016-12-09 12:31:21.757809"]]  (16.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 250], ["created_at", "2016-12-09 12:31:21.789751"], ["updated_at", "2016-12-09 12:31:21.789751"]]  (19.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 250], ["updated_at", "2016-12-09 12:31:21.811752"], ["id", 250]]  (25.9ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '572b39044b15b511863eb79c8eb879bd', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '36763e7f741851c0c7f825cbe780ee46', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9704d001aded0e9352350cdafab91a00', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0f3c6bb9c7254adfe247490b46f8a7f0', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '73c1c782b361a1f73043b6b9eed960cf', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '811cce23010be9fee3e9c8cb73c28c3c', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '61a9604e0d832810bc5c2385f7df5621', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '3e9628cd2bac0ef8feb5013bd3b6baa3', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1203db5305777e0faa4cce22f7015890', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4bc0587b195cd3b7aa553199defeaadb', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '188c24c25421847facd14f572a3f9ef4', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5ac65e8d4b3e8f75f470a1997fae6ad0', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 483796712) Fixture Delete (0.2ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1adc4ba74a11baaea37f30dd795cd4b1', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '45e4c7fac8ba1d4a4e8206b1651bbfef', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '406949a14cbabbfed8c6793d79de0c91', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:21', '2016-12-09 12:31:21', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:21', '2016-12-09 12:31:21', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:21', '2016-12-09 12:31:21', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '335a3d5091db8be1c2fed85f1f3b538b', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3c57c31af9d0ce1c93d4ca2b7ab8b40c', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f847f6b3cb9e9f8c511de11c1f122242', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '1e628c01551957c10772ac2d5524956a', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:21', '2016-12-09 12:31:21', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:21', '2016-12-09 12:31:21', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:21', '2016-12-09 12:31:21', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bb6eb85d3c253405da6666b84406d022', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '45519af1a85fca5b6384c5ee1cff355d', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3b13ef1887bb0cffc770c46880c8bec1', '2016-12-09 12:31:21', '2016-12-09 12:31:21', 410780858)  (26.8ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.3ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:22.096469"], ["updated_at", "2016-12-09 12:31:22.096469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:22.098230"], ["updated_at", "2016-12-09 12:31:22.098230"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:22.099907"], ["updated_at", "2016-12-09 12:31:22.099907"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:22.101534"], ["updated_at", "2016-12-09 12:31:22.101534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:22.103219"], ["updated_at", "2016-12-09 12:31:22.103219"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:22.104808"], ["updated_at", "2016-12-09 12:31:22.104808"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:22.117188"], ["updated_at", "2016-12-09 12:31:22.117188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:22.126237"], ["updated_at", "2016-12-09 12:31:22.126237"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:22.127392"], ["updated_at", "2016-12-09 12:31:22.127392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:22.131555"], ["updated_at", "2016-12-09 12:31:22.131555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:22.138016"], ["updated_at", "2016-12-09 12:31:22.138016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 251], ["created_at", "2016-12-09 12:31:22.139916"], ["updated_at", "2016-12-09 12:31:22.139916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 251], ["created_at", "2016-12-09 12:31:22.141822"], ["updated_at", "2016-12-09 12:31:22.141822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 251], ["created_at", "2016-12-09 12:31:22.143861"], ["updated_at", "2016-12-09 12:31:22.143861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:22.158815"], ["updated_at", "2016-12-09 12:31:22.158815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:22.162342"], ["updated_at", "2016-12-09 12:31:22.162342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:31:22.165048"], ["updated_at", "2016-12-09 12:31:22.165048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:22.171795"], ["updated_at", "2016-12-09 12:31:22.171795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:22.173300"], ["updated_at", "2016-12-09 12:31:22.173300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:22.174597"], ["updated_at", "2016-12-09 12:31:22.174597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:22.177072"], ["updated_at", "2016-12-09 12:31:22.177072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:22.178412"], ["updated_at", "2016-12-09 12:31:22.178412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:22.179675"], ["updated_at", "2016-12-09 12:31:22.179675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:31:22.194810"], ["updated_at", "2016-12-09 12:31:22.194810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:31:22.196658"], ["updated_at", "2016-12-09 12:31:22.196658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:31:22.198091"], ["updated_at", "2016-12-09 12:31:22.198091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:22.203762"], ["updated_at", "2016-12-09 12:31:22.203762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:22.205296"], ["updated_at", "2016-12-09 12:31:22.205296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:22.206605"], ["updated_at", "2016-12-09 12:31:22.206605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:22.213115"], ["updated_at", "2016-12-09 12:31:22.213115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:22.214635"], ["updated_at", "2016-12-09 12:31:22.214635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:22.216214"], ["updated_at", "2016-12-09 12:31:22.216214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:22.217542"], ["updated_at", "2016-12-09 12:31:22.217542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:22.218891"], ["updated_at", "2016-12-09 12:31:22.218891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:22.220226"], ["updated_at", "2016-12-09 12:31:22.220226"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:22.222926"], ["updated_at", "2016-12-09 12:31:22.222926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 251], ["created_at", "2016-12-09 12:31:22.224880"], ["updated_at", "2016-12-09 12:31:22.224880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:22.227392"], ["updated_at", "2016-12-09 12:31:22.227392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:31:22.230266"], ["updated_at", "2016-12-09 12:31:22.230266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:31:22.231764"], ["updated_at", "2016-12-09 12:31:22.231764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:31:22.233208"], ["updated_at", "2016-12-09 12:31:22.233208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:31:22.243456"], ["updated_at", "2016-12-09 12:31:22.243456"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:31:22.244641"], ["updated_at", "2016-12-09 12:31:22.244641"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:31:22.245676"], ["updated_at", "2016-12-09 12:31:22.245676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:22.261314"], ["updated_at", "2016-12-09 12:31:22.261314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:22.262717"], ["updated_at", "2016-12-09 12:31:22.262717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:22.264007"], ["updated_at", "2016-12-09 12:31:22.264007"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:22.266377"], ["updated_at", "2016-12-09 12:31:22.266377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 251], ["created_at", "2016-12-09 12:31:22.268256"], ["updated_at", "2016-12-09 12:31:22.268256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 251], ["created_at", "2016-12-09 12:31:22.270083"], ["updated_at", "2016-12-09 12:31:22.270083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 251], ["created_at", "2016-12-09 12:31:22.271890"], ["updated_at", "2016-12-09 12:31:22.271890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 251], ["updated_at", "2016-12-09 12:31:22.273169"], ["id", 251]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 251]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 251]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 251]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 251]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 251]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 251]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 251]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 251]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:22.296515"], ["updated_at", "2016-12-09 12:31:22.296515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:22.298824"], ["updated_at", "2016-12-09 12:31:22.298824"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:22.300660"], ["updated_at", "2016-12-09 12:31:22.300660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:22.303571"], ["updated_at", "2016-12-09 12:31:22.303571"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:22.304460"], ["updated_at", "2016-12-09 12:31:22.304460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:22.307246"], ["updated_at", "2016-12-09 12:31:22.307246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:31:22.310695"], ["updated_at", "2016-12-09 12:31:22.310695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 250]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 250]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 250]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 250]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.3ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 250]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 250]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 250]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 250]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:22.407192"], ["updated_at", "2016-12-09 12:31:22.407192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:22.409359"], ["updated_at", "2016-12-09 12:31:22.409359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:31:22.412517"], ["updated_at", "2016-12-09 12:31:22.412517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.1ms) SAVEPOINT active_record_1 Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.2ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:22.420476"], ["updated_at", "2016-12-09 12:31:22.420476"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:22.422402"], ["updated_at", "2016-12-09 12:31:22.422402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:25.131335"], ["updated_at", "2016-12-09 12:31:25.131335"]]  (14.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 251], ["created_at", "2016-12-09 12:31:25.174163"], ["updated_at", "2016-12-09 12:31:25.174163"]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 251], ["created_at", "2016-12-09 12:31:25.196716"], ["updated_at", "2016-12-09 12:31:25.196716"]]  (17.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 251], ["created_at", "2016-12-09 12:31:25.223386"], ["updated_at", "2016-12-09 12:31:25.223386"]]  (17.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 251], ["updated_at", "2016-12-09 12:31:25.242799"], ["id", 251]]  (12.2ms) commit transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6cc38ebbd804009eac591a8c040f1e06', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '45650f49a56b2b857739c139e8b2876d', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0a5cca1808b17bc4a563a2385f0e44dd', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '08d60e28032d216ccde0ebed7db8ea07', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5f10434334eca20a4bbf83f47e1f3621', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd820e72e6f9b838e111af0f5e90770e6', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2e39bba6a8ff5931d6633182aa116f1f', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd19bf852f65cff381f2cf7f4c2f576f4', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2f5f012678f199a912d983c343d8d198', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0558d62706e7945cce2659e428b9cb6f', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '1b9cef46eba5a2ac9b4095c4f97cf1dc', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c67fec4d9d4eea573b678fafc56d0ef9', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '76ee936b8548eda547cae7fd83913e3c', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '61786a103415ad0dd86564c67cbfebe9', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '932a7f34699aa1d6b6e28605565de13b', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:25', '2016-12-09 12:31:25', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:25', '2016-12-09 12:31:25', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:25', '2016-12-09 12:31:25', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ecf478ff9893fc6334f4cbea6f47555f', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ab21859fbbc74e0b04d87578729cea9d', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e94a6a1363a6f89bec2f50a1525814f1', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '6c74b08e1a8b104f331fc2a6c43b6c0f', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:25', '2016-12-09 12:31:25', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:25', '2016-12-09 12:31:25', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:25', '2016-12-09 12:31:25', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '325e8dfc2ea9ffc937fb8f9542c8aac4', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'fe56d483328b07b1fb83d3f6ab275df7', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1e528ae9068dc97ddd18003ed311a0c6', '2016-12-09 12:31:25', '2016-12-09 12:31:25', 410780858)  (17.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:25.455841"], ["updated_at", "2016-12-09 12:31:25.455841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:25.462359"], ["updated_at", "2016-12-09 12:31:25.462359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:25.465821"], ["updated_at", "2016-12-09 12:31:25.465821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:25.467231"], ["updated_at", "2016-12-09 12:31:25.467231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:31:25.469564"], ["updated_at", "2016-12-09 12:31:25.469564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.2ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:25.489405"], ["updated_at", "2016-12-09 12:31:25.489405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 252], ["created_at", "2016-12-09 12:31:25.491451"], ["updated_at", "2016-12-09 12:31:25.491451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 252], ["created_at", "2016-12-09 12:31:25.493292"], ["updated_at", "2016-12-09 12:31:25.493292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 252], ["created_at", "2016-12-09 12:31:25.495146"], ["updated_at", "2016-12-09 12:31:25.495146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:31:25.504249"], ["updated_at", "2016-12-09 12:31:25.504249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:25.511076"], ["updated_at", "2016-12-09 12:31:25.511076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:25.513278"], ["updated_at", "2016-12-09 12:31:25.513278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 252], ["created_at", "2016-12-09 12:31:25.515424"], ["updated_at", "2016-12-09 12:31:25.515424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 252], ["created_at", "2016-12-09 12:31:25.517202"], ["updated_at", "2016-12-09 12:31:25.517202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 252], ["created_at", "2016-12-09 12:31:25.518974"], ["updated_at", "2016-12-09 12:31:25.518974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 252], ["updated_at", "2016-12-09 12:31:25.520230"], ["id", 252]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 252]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 252]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 252]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 252]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 252]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 252]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 252]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 252]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:25.546317"], ["updated_at", "2016-12-09 12:31:25.546317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:25.555149"], ["updated_at", "2016-12-09 12:31:25.555149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 252], ["created_at", "2016-12-09 12:31:25.556965"], ["updated_at", "2016-12-09 12:31:25.556965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:25.559519"], ["updated_at", "2016-12-09 12:31:25.559519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:31:25.562954"], ["updated_at", "2016-12-09 12:31:25.562954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:31:25.564389"], ["updated_at", "2016-12-09 12:31:25.564389"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:31:25.566006"], ["updated_at", "2016-12-09 12:31:25.566006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:25.570980"], ["updated_at", "2016-12-09 12:31:25.570980"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:25.572008"], ["updated_at", "2016-12-09 12:31:25.572008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:25.576681"], ["updated_at", "2016-12-09 12:31:25.576681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:25.578093"], ["updated_at", "2016-12-09 12:31:25.578093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:25.579336"], ["updated_at", "2016-12-09 12:31:25.579336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:25.580524"], ["updated_at", "2016-12-09 12:31:25.580524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:25.581671"], ["updated_at", "2016-12-09 12:31:25.581671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:25.583006"], ["updated_at", "2016-12-09 12:31:25.583006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:25.585448"], ["updated_at", "2016-12-09 12:31:25.585448"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:25.586791"], ["updated_at", "2016-12-09 12:31:25.586791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:25.588041"], ["updated_at", "2016-12-09 12:31:25.588041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:25.592152"], ["updated_at", "2016-12-09 12:31:25.592152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:25.595132"], ["updated_at", "2016-12-09 12:31:25.595132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:31:25.597589"], ["updated_at", "2016-12-09 12:31:25.597589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:25.608517"], ["updated_at", "2016-12-09 12:31:25.608517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:25.609986"], ["updated_at", "2016-12-09 12:31:25.609986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:25.611238"], ["updated_at", "2016-12-09 12:31:25.611238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:25.615761"], ["updated_at", "2016-12-09 12:31:25.615761"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:25.618204"], ["updated_at", "2016-12-09 12:31:25.618204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:25.620110"], ["updated_at", "2016-12-09 12:31:25.620110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:25.623168"], ["updated_at", "2016-12-09 12:31:25.623168"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:25.624084"], ["updated_at", "2016-12-09 12:31:25.624084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:25.626924"], ["updated_at", "2016-12-09 12:31:25.626924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:31:25.629339"], ["updated_at", "2016-12-09 12:31:25.629339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:31:25.630810"], ["updated_at", "2016-12-09 12:31:25.630810"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:31:25.632151"], ["updated_at", "2016-12-09 12:31:25.632151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:31:25.641442"], ["updated_at", "2016-12-09 12:31:25.641442"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:31:25.642514"], ["updated_at", "2016-12-09 12:31:25.642514"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:31:25.643456"], ["updated_at", "2016-12-09 12:31:25.643456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:25.659529"], ["updated_at", "2016-12-09 12:31:25.659529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:25.660926"], ["updated_at", "2016-12-09 12:31:25.660926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:25.662175"], ["updated_at", "2016-12-09 12:31:25.662175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:25.671778"], ["updated_at", "2016-12-09 12:31:25.671778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:25.673395"], ["updated_at", "2016-12-09 12:31:25.673395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:25.674658"], ["updated_at", "2016-12-09 12:31:25.674658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:25.675857"], ["updated_at", "2016-12-09 12:31:25.675857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:25.677012"], ["updated_at", "2016-12-09 12:31:25.677012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:25.678206"], ["updated_at", "2016-12-09 12:31:25.678206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:25.682974"], ["updated_at", "2016-12-09 12:31:25.682974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:25.684367"], ["updated_at", "2016-12-09 12:31:25.684367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:25.685615"], ["updated_at", "2016-12-09 12:31:25.685615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 251]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 251]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 251]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 251]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 251]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 251]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 251]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 251]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:28.488160"], ["updated_at", "2016-12-09 12:31:28.488160"]]  (18.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 252], ["created_at", "2016-12-09 12:31:28.542480"], ["updated_at", "2016-12-09 12:31:28.542480"]]  (27.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 252], ["created_at", "2016-12-09 12:31:28.586733"], ["updated_at", "2016-12-09 12:31:28.586733"]]  (36.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 252], ["created_at", "2016-12-09 12:31:28.636565"], ["updated_at", "2016-12-09 12:31:28.636565"]]  (25.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 252], ["updated_at", "2016-12-09 12:31:28.664409"], ["id", 252]]  (23.0ms) commit transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8963742b3f1ebd947ea37f95e47dc060', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8299524550555ad90c93e263cf5e2360', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6f80dc5b80ad4edb84577f383d1cf7b0', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '006240dfb12917320b919041bc9e80bb', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8cdac4e117cd9474fc3638eb53d7ee9e', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6d7cf8fed1fb235e19ac8bf486cb163b', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0223dc7f8cfeaf3f5f50bef909ad3c6b', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0b325a9e680b23a668d9805fbf667893', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'aad9e879427cd3b4c6fed8e78466099d', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '13f70caad536435eaa88a35371a63420', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b2d4637d2e9f12ddaf97b5f1cb1749e9', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '14acadd8086cbae332240e0de5d41923', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f19fe53509b9835102b859aa004efb63', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ad0fd9aee808c889db09f2375f8d5b3a', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'eb246b1555fdfbdf58965c22822e146f', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:28', '2016-12-09 12:31:28', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:28', '2016-12-09 12:31:28', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:28', '2016-12-09 12:31:28', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '56fefc76a2fd75124e05d487edd9802a', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '05ae02a9882a18c4db1beebd4883fe40', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '366ef0792d576e51948f26b7f81a8fb8', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'fb0b11bd4d92adb077448011b32c1989', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:28', '2016-12-09 12:31:28', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:28', '2016-12-09 12:31:28', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:28', '2016-12-09 12:31:28', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a7089bf52affbc77e23152ced99373e9', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '6f44a2f6b0f5018b94e185f6d78887d2', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd12b0129f212c35cf69612b3929d1dbb', '2016-12-09 12:31:28', '2016-12-09 12:31:28', 410780858)  (22.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:28.819404"], ["updated_at", "2016-12-09 12:31:28.819404"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:28.826601"], ["updated_at", "2016-12-09 12:31:28.826601"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:31:28.830794"], ["updated_at", "2016-12-09 12:31:28.830794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.2ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:28.837511"], ["updated_at", "2016-12-09 12:31:28.837511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:28.839030"], ["updated_at", "2016-12-09 12:31:28.839030"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:28.858178"], ["updated_at", "2016-12-09 12:31:28.858178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 253], ["created_at", "2016-12-09 12:31:28.861098"], ["updated_at", "2016-12-09 12:31:28.861098"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.3ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:28.870757"], ["updated_at", "2016-12-09 12:31:28.870757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:31:28.889059"], ["updated_at", "2016-12-09 12:31:28.889059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:31:28.890776"], ["updated_at", "2016-12-09 12:31:28.890776"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:31:28.892111"], ["updated_at", "2016-12-09 12:31:28.892111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:28.895252"], ["updated_at", "2016-12-09 12:31:28.895252"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:28.896698"], ["updated_at", "2016-12-09 12:31:28.896698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:28.897984"], ["updated_at", "2016-12-09 12:31:28.897984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:28.899252"], ["updated_at", "2016-12-09 12:31:28.899252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:28.900481"], ["updated_at", "2016-12-09 12:31:28.900481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:28.901887"], ["updated_at", "2016-12-09 12:31:28.901887"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.4ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:31:28.906880"], ["updated_at", "2016-12-09 12:31:28.906880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:28.911447"], ["updated_at", "2016-12-09 12:31:28.911447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:28.912910"], ["updated_at", "2016-12-09 12:31:28.912910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:28.914217"], ["updated_at", "2016-12-09 12:31:28.914217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:28.915697"], ["updated_at", "2016-12-09 12:31:28.915697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:28.917005"], ["updated_at", "2016-12-09 12:31:28.917005"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:28.918303"], ["updated_at", "2016-12-09 12:31:28.918303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:28.923135"], ["updated_at", "2016-12-09 12:31:28.923135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:28.925385"], ["updated_at", "2016-12-09 12:31:28.925385"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:28.926776"], ["updated_at", "2016-12-09 12:31:28.926776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:28.928039"], ["updated_at", "2016-12-09 12:31:28.928039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:31:28.930687"], ["updated_at", "2016-12-09 12:31:28.930687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:31:28.932232"], ["updated_at", "2016-12-09 12:31:28.932232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:31:28.933604"], ["updated_at", "2016-12-09 12:31:28.933604"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:28.939600"], ["updated_at", "2016-12-09 12:31:28.939600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:28.941054"], ["updated_at", "2016-12-09 12:31:28.941054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:28.942760"], ["updated_at", "2016-12-09 12:31:28.942760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:28.946330"], ["updated_at", "2016-12-09 12:31:28.946330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:28.948611"], ["updated_at", "2016-12-09 12:31:28.948611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:28.950541"], ["updated_at", "2016-12-09 12:31:28.950541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:28.959093"], ["updated_at", "2016-12-09 12:31:28.959093"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:28.960199"], ["updated_at", "2016-12-09 12:31:28.960199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:28.963458"], ["updated_at", "2016-12-09 12:31:28.963458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:28.968794"], ["updated_at", "2016-12-09 12:31:28.968794"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 253], ["created_at", "2016-12-09 12:31:28.971337"], ["updated_at", "2016-12-09 12:31:28.971337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 253], ["created_at", "2016-12-09 12:31:28.973652"], ["updated_at", "2016-12-09 12:31:28.973652"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 253], ["created_at", "2016-12-09 12:31:28.975707"], ["updated_at", "2016-12-09 12:31:28.975707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 253], ["updated_at", "2016-12-09 12:31:28.977189"], ["id", 253]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 253]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 253]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 253]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 253]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 253]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 253]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 253]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 253]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:29.009969"], ["updated_at", "2016-12-09 12:31:29.009969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 253], ["created_at", "2016-12-09 12:31:29.011930"], ["updated_at", "2016-12-09 12:31:29.011930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 253], ["created_at", "2016-12-09 12:31:29.013768"], ["updated_at", "2016-12-09 12:31:29.013768"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 253], ["created_at", "2016-12-09 12:31:29.015792"], ["updated_at", "2016-12-09 12:31:29.015792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:29.023100"], ["updated_at", "2016-12-09 12:31:29.023100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:29.024491"], ["updated_at", "2016-12-09 12:31:29.024491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:29.025888"], ["updated_at", "2016-12-09 12:31:29.025888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:31:29.042136"], ["updated_at", "2016-12-09 12:31:29.042136"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:31:29.043407"], ["updated_at", "2016-12-09 12:31:29.043407"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:31:29.044338"], ["updated_at", "2016-12-09 12:31:29.044338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:29.065004"], ["updated_at", "2016-12-09 12:31:29.065004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:29.068754"], ["updated_at", "2016-12-09 12:31:29.068754"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:29.070177"], ["updated_at", "2016-12-09 12:31:29.070177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:29.071493"], ["updated_at", "2016-12-09 12:31:29.071493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:29.083033"], ["updated_at", "2016-12-09 12:31:29.083033"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:29.084092"], ["updated_at", "2016-12-09 12:31:29.084092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:29.087165"], ["updated_at", "2016-12-09 12:31:29.087165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:29.089868"], ["updated_at", "2016-12-09 12:31:29.089868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:31:29.092633"], ["updated_at", "2016-12-09 12:31:29.092633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 252]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 252]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 252]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 252]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 252]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 252]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 252]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 252]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:32.028675"], ["updated_at", "2016-12-09 12:31:32.028675"]]  (30.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 253], ["created_at", "2016-12-09 12:31:32.086716"], ["updated_at", "2016-12-09 12:31:32.086716"]]  (18.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 253], ["created_at", "2016-12-09 12:31:32.117050"], ["updated_at", "2016-12-09 12:31:32.117050"]]  (24.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 253], ["created_at", "2016-12-09 12:31:32.158372"], ["updated_at", "2016-12-09 12:31:32.158372"]]  (23.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 253], ["updated_at", "2016-12-09 12:31:32.184868"], ["id", 253]]  (17.0ms) commit transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3acee63a505ed2f921f1ce4440164910', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '1e23d55827f4afbde2e820ecb0aeb06e', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'bda349a4a01ca1d9d9a620dfe1bdfc4b', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3a8c66225c72280efc573dc4c459e28f', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a958d12eba65e63c4699d2edcba38cd7', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a96911266320cbdf7068cfac650f4490', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7e946f758892af70c9f9f4ba92ba14f7', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '41b4bc3490743b648473a0acc7a82e33', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '59397b3f59d636722b0652eb5659e0f9', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '5e88335a3a4cd17ba684911c2dfccedd', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '268b9d8072d0ef7ba3f2a8b4240cf3cc', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'b648998e7b8dc5ad37a800a0ee82c182', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '50e40c347784fcb1bb61078444cba87e', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '0ba47f94ec6829ff082cf4ac593cf82f', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '83bcbc733ffc7a1967be014c9be397a6', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:32', '2016-12-09 12:31:32', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:32', '2016-12-09 12:31:32', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:32', '2016-12-09 12:31:32', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7d730aaa107c1fe1d37295e14e5f7f46', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9dc006dbf056d52c6553721fd26a847b', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '89866eb2b7921c8f9ca78d74c5d299ab', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '5f271fca159606b54ef9efd3c6fb45e8', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:32', '2016-12-09 12:31:32', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:32', '2016-12-09 12:31:32', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:32', '2016-12-09 12:31:32', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4896b6dc28a165e4ca3537433c176a77', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'debcfea0c48563999debd1162b901f79', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '012e12d14c48fef567dcf7d170a79456', '2016-12-09 12:31:32', '2016-12-09 12:31:32', 410780858)  (22.7ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 253]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 253]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 253]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 253]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 253]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 253]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 253]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 253]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:32.513920"], ["updated_at", "2016-12-09 12:31:32.513920"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:32.520249"], ["updated_at", "2016-12-09 12:31:32.520249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:32.523607"], ["updated_at", "2016-12-09 12:31:32.523607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:32.525075"], ["updated_at", "2016-12-09 12:31:32.525075"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:31:32.527499"], ["updated_at", "2016-12-09 12:31:32.527499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:32.549910"], ["updated_at", "2016-12-09 12:31:32.549910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:32.551473"], ["updated_at", "2016-12-09 12:31:32.551473"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:32.552816"], ["updated_at", "2016-12-09 12:31:32.552816"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:32.554323"], ["updated_at", "2016-12-09 12:31:32.554323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:32.555621"], ["updated_at", "2016-12-09 12:31:32.555621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:32.556860"], ["updated_at", "2016-12-09 12:31:32.556860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:32.565455"], ["updated_at", "2016-12-09 12:31:32.565455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:32.566855"], ["updated_at", "2016-12-09 12:31:32.566855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:32.568065"], ["updated_at", "2016-12-09 12:31:32.568065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:32.569222"], ["updated_at", "2016-12-09 12:31:32.569222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:32.570510"], ["updated_at", "2016-12-09 12:31:32.570510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:32.571696"], ["updated_at", "2016-12-09 12:31:32.571696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:32.577560"], ["updated_at", "2016-12-09 12:31:32.577560"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:32.579602"], ["updated_at", "2016-12-09 12:31:32.579602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:32.581584"], ["updated_at", "2016-12-09 12:31:32.581584"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:32.585591"], ["updated_at", "2016-12-09 12:31:32.585591"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:32.586855"], ["updated_at", "2016-12-09 12:31:32.586855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:32.589777"], ["updated_at", "2016-12-09 12:31:32.589777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:32.592015"], ["updated_at", "2016-12-09 12:31:32.592015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:32.597422"], ["updated_at", "2016-12-09 12:31:32.597422"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:32.598387"], ["updated_at", "2016-12-09 12:31:32.598387"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:32.601981"], ["updated_at", "2016-12-09 12:31:32.601981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:32.603367"], ["updated_at", "2016-12-09 12:31:32.603367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:32.604692"], ["updated_at", "2016-12-09 12:31:32.604692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:32.616392"], ["updated_at", "2016-12-09 12:31:32.616392"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:31:32.621178"], ["updated_at", "2016-12-09 12:31:32.621178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:31:32.623133"], ["updated_at", "2016-12-09 12:31:32.623133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:31:32.624972"], ["updated_at", "2016-12-09 12:31:32.624972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:32.628034"], ["updated_at", "2016-12-09 12:31:32.628034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:32.629350"], ["updated_at", "2016-12-09 12:31:32.629350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:32.630624"], ["updated_at", "2016-12-09 12:31:32.630624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:32.642085"], ["updated_at", "2016-12-09 12:31:32.642085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 254], ["created_at", "2016-12-09 12:31:32.644120"], ["updated_at", "2016-12-09 12:31:32.644120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:32.646725"], ["updated_at", "2016-12-09 12:31:32.646725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:31:32.649864"], ["updated_at", "2016-12-09 12:31:32.649864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:31:32.651327"], ["updated_at", "2016-12-09 12:31:32.651327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:31:32.652590"], ["updated_at", "2016-12-09 12:31:32.652590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:31:32.655650"], ["updated_at", "2016-12-09 12:31:32.655650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:32.659065"], ["updated_at", "2016-12-09 12:31:32.659065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:32.662384"], ["updated_at", "2016-12-09 12:31:32.662384"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:31:32.665233"], ["updated_at", "2016-12-09 12:31:32.665233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:32.670529"], ["updated_at", "2016-12-09 12:31:32.670529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 254], ["created_at", "2016-12-09 12:31:32.673029"], ["updated_at", "2016-12-09 12:31:32.673029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 254], ["created_at", "2016-12-09 12:31:32.675204"], ["updated_at", "2016-12-09 12:31:32.675204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 254], ["created_at", "2016-12-09 12:31:32.676975"], ["updated_at", "2016-12-09 12:31:32.676975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:32.689605"], ["updated_at", "2016-12-09 12:31:32.689605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:32.691292"], ["updated_at", "2016-12-09 12:31:32.691292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:32.692638"], ["updated_at", "2016-12-09 12:31:32.692638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:32.696304"], ["updated_at", "2016-12-09 12:31:32.696304"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:32.697888"], ["updated_at", "2016-12-09 12:31:32.697888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:32.699399"], ["updated_at", "2016-12-09 12:31:32.699399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:32.706143"], ["updated_at", "2016-12-09 12:31:32.706143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 254], ["created_at", "2016-12-09 12:31:32.708019"], ["updated_at", "2016-12-09 12:31:32.708019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 254], ["created_at", "2016-12-09 12:31:32.709798"], ["updated_at", "2016-12-09 12:31:32.709798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 254], ["created_at", "2016-12-09 12:31:32.711544"], ["updated_at", "2016-12-09 12:31:32.711544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 254], ["updated_at", "2016-12-09 12:31:32.712826"], ["id", 254]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 254]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 254]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 254]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 254]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 254]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 254]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 254]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 254]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:31:32.744912"], ["updated_at", "2016-12-09 12:31:32.744912"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:31:32.746023"], ["updated_at", "2016-12-09 12:31:32.746023"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:31:32.746950"], ["updated_at", "2016-12-09 12:31:32.746950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.2ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:35.452649"], ["updated_at", "2016-12-09 12:31:35.452649"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 254], ["created_at", "2016-12-09 12:31:35.498820"], ["updated_at", "2016-12-09 12:31:35.498820"]]  (20.3ms) commit transaction  (0.2ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 254], ["created_at", "2016-12-09 12:31:35.529844"], ["updated_at", "2016-12-09 12:31:35.529844"]]  (24.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 254], ["created_at", "2016-12-09 12:31:35.574699"], ["updated_at", "2016-12-09 12:31:35.574699"]]  (26.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 254], ["updated_at", "2016-12-09 12:31:35.605630"], ["id", 254]]  (20.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9cb95321d6bcb135dbc8350fc6a2d6b9', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '51b5311389329f1c8f0b5411a89ed56d', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '73b7160a99e47a9da24b9aecea029e6a', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '283fafbc54593f29b01673528b12efb3', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b0584576297c13358db036317abfa4b7', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'daea97c20627e36d0277ff5ee239f40a', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '492314b3ee903686d456ea163a1ba2a3', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'ba58cad92af77d7a19c5ab1ea02c810d', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f513450195831652a335ed69b5844999', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '9a33d3bedcdb71ad7ee6a81af0bd40b5', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '9d9088660ecd4506c87df82606d61de4', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2d7e59312db7d8f15246d7a4869b80eb', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '22dc966652c2214867bbdd290fa01219', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '9e37b7f206625d065110925a4fede4c5', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '34ca5ab40a96f0401098381d28683bad', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:35', '2016-12-09 12:31:35', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:35', '2016-12-09 12:31:35', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:35', '2016-12-09 12:31:35', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a2dccb20a9a7533e843e1a373b4a6c9e', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '38325d99a1d348d934a6b8b1c1c59a13', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6c8a4ef25e2033a7326744c2bcf78bdf', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '591ec24a048ef2cac304881acb28fa0a', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:35', '2016-12-09 12:31:35', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:35', '2016-12-09 12:31:35', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:35', '2016-12-09 12:31:35', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'fad13a37d444a23efb1291386c04b344', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ab684f3a9bec53f19a789252be1f1d9b', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '281d5ec183fa606f0f19755ac11f3400', '2016-12-09 12:31:35', '2016-12-09 12:31:35', 410780858)  (25.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:35.759611"], ["updated_at", "2016-12-09 12:31:35.759611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:35.766300"], ["updated_at", "2016-12-09 12:31:35.766300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:35.770775"], ["updated_at", "2016-12-09 12:31:35.770775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:35.772240"], ["updated_at", "2016-12-09 12:31:35.772240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:31:35.774822"], ["updated_at", "2016-12-09 12:31:35.774822"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.1ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.3ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 254]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 254]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 254]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 254]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 254]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 254]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 254]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 254]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:35.958902"], ["updated_at", "2016-12-09 12:31:35.958902"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:35.960062"], ["updated_at", "2016-12-09 12:31:35.960062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:35.969343"], ["updated_at", "2016-12-09 12:31:35.969343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:35.971582"], ["updated_at", "2016-12-09 12:31:35.971582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:35.973624"], ["updated_at", "2016-12-09 12:31:35.973624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:35.976460"], ["updated_at", "2016-12-09 12:31:35.976460"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:35.977360"], ["updated_at", "2016-12-09 12:31:35.977360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:35.980030"], ["updated_at", "2016-12-09 12:31:35.980030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:35.983374"], ["updated_at", "2016-12-09 12:31:35.983374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:35.984724"], ["updated_at", "2016-12-09 12:31:35.984724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:35.985961"], ["updated_at", "2016-12-09 12:31:35.985961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:35.993325"], ["updated_at", "2016-12-09 12:31:35.993325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:35.994705"], ["updated_at", "2016-12-09 12:31:35.994705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:35.995940"], ["updated_at", "2016-12-09 12:31:35.995940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:35.997090"], ["updated_at", "2016-12-09 12:31:35.997090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:35.998237"], ["updated_at", "2016-12-09 12:31:35.998237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:35.999441"], ["updated_at", "2016-12-09 12:31:35.999441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:36.002945"], ["updated_at", "2016-12-09 12:31:36.002945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 255], ["created_at", "2016-12-09 12:31:36.004854"], ["updated_at", "2016-12-09 12:31:36.004854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 255], ["created_at", "2016-12-09 12:31:36.006652"], ["updated_at", "2016-12-09 12:31:36.006652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 255], ["created_at", "2016-12-09 12:31:36.008356"], ["updated_at", "2016-12-09 12:31:36.008356"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 255], ["updated_at", "2016-12-09 12:31:36.009574"], ["id", 255]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 255]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 255]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 255]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 255]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 255]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 255]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 255]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 255]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:36.034062"], ["updated_at", "2016-12-09 12:31:36.034062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:36.037855"], ["updated_at", "2016-12-09 12:31:36.037855"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:31:36.040884"], ["updated_at", "2016-12-09 12:31:36.040884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:36.046310"], ["updated_at", "2016-12-09 12:31:36.046310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 255], ["created_at", "2016-12-09 12:31:36.048133"], ["updated_at", "2016-12-09 12:31:36.048133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:36.050662"], ["updated_at", "2016-12-09 12:31:36.050662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:36.053231"], ["updated_at", "2016-12-09 12:31:36.053231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:36.055433"], ["updated_at", "2016-12-09 12:31:36.055433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:36.056970"], ["updated_at", "2016-12-09 12:31:36.056970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:36.058240"], ["updated_at", "2016-12-09 12:31:36.058240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:36.059452"], ["updated_at", "2016-12-09 12:31:36.059452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:36.060608"], ["updated_at", "2016-12-09 12:31:36.060608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:36.061775"], ["updated_at", "2016-12-09 12:31:36.061775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:36.066123"], ["updated_at", "2016-12-09 12:31:36.066123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:31:36.081040"], ["updated_at", "2016-12-09 12:31:36.081040"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:31:36.082180"], ["updated_at", "2016-12-09 12:31:36.082180"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:31:36.083212"], ["updated_at", "2016-12-09 12:31:36.083212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:36.097630"], ["updated_at", "2016-12-09 12:31:36.097630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:36.099030"], ["updated_at", "2016-12-09 12:31:36.099030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:36.100266"], ["updated_at", "2016-12-09 12:31:36.100266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:36.105358"], ["updated_at", "2016-12-09 12:31:36.105358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:36.106721"], ["updated_at", "2016-12-09 12:31:36.106721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:36.107942"], ["updated_at", "2016-12-09 12:31:36.107942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:31:36.111240"], ["updated_at", "2016-12-09 12:31:36.111240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:31:36.112839"], ["updated_at", "2016-12-09 12:31:36.112839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:31:36.114531"], ["updated_at", "2016-12-09 12:31:36.114531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:36.122261"], ["updated_at", "2016-12-09 12:31:36.122261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 255], ["created_at", "2016-12-09 12:31:36.124219"], ["updated_at", "2016-12-09 12:31:36.124219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 255], ["created_at", "2016-12-09 12:31:36.126131"], ["updated_at", "2016-12-09 12:31:36.126131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 255], ["created_at", "2016-12-09 12:31:36.127897"], ["updated_at", "2016-12-09 12:31:36.127897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:31:36.135283"], ["updated_at", "2016-12-09 12:31:36.135283"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:31:36.136916"], ["updated_at", "2016-12-09 12:31:36.136916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:31:36.138252"], ["updated_at", "2016-12-09 12:31:36.138252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:36.141927"], ["updated_at", "2016-12-09 12:31:36.141927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:36.143350"], ["updated_at", "2016-12-09 12:31:36.143350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:36.144707"], ["updated_at", "2016-12-09 12:31:36.144707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:31:36.151379"], ["updated_at", "2016-12-09 12:31:36.151379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:39.282956"], ["updated_at", "2016-12-09 12:31:39.282956"]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 255], ["created_at", "2016-12-09 12:31:39.315643"], ["updated_at", "2016-12-09 12:31:39.315643"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 255], ["created_at", "2016-12-09 12:31:39.336732"], ["updated_at", "2016-12-09 12:31:39.336732"]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 255], ["created_at", "2016-12-09 12:31:39.371943"], ["updated_at", "2016-12-09 12:31:39.371943"]]  (17.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 255], ["updated_at", "2016-12-09 12:31:39.392162"], ["id", 255]]  (20.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f5d1062195a38915cf971427d741e62b', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a71528b137b653d4908779bff3f43a6d', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2c22df271cbf6efad353b907c9c65fcb', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0054ba34ba85f4561e5f674296b28489', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'fd67f246f1776bdf001c903d2bca048e', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '15a738fa37f57734179c50e1a054cae0', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0e33c7949722ba33b2bedf1072a2648c', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '8969ce56fef1e666ac8068dc89410114', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1362e5695235d845d67d756d34b785bc', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '3203c9c36582491565929182678ecf0d', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '40a42cf9e34bf4ac3677ce5955774bbd', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '854dc3046cf35c94a27ecca1abd1a166', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f1e24071a29aaecfae479b6a6a65e3bf', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6acc5bed861ecb61590fa0542052c516', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2ee9713ee22ca1bfcdb44e4026c062a1', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:39', '2016-12-09 12:31:39', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:39', '2016-12-09 12:31:39', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:39', '2016-12-09 12:31:39', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4d723df1cfdf47d9fb7df5dd6c76bf4f', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7e6b2bbe6cc4682d6db3783ebd7d396e', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0ad1d4a0fad950a05a666c677dcb445c', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '9e4699351c5d8b69c943f5e2a8024fc0', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:39', '2016-12-09 12:31:39', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:39', '2016-12-09 12:31:39', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:31:39', '2016-12-09 12:31:39', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '13ef1ec164649859ed8b04455f283db3', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f16c30ba260237509973ce606d95a0f4', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '235a20e334c937b52a6c31a1e04ecf59', '2016-12-09 12:31:39', '2016-12-09 12:31:39', 410780858)  (20.9ms) commit transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 255]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 255]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 255]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 255]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 255]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 255]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:39.725148"], ["updated_at", "2016-12-09 12:31:39.725148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:39.727313"], ["updated_at", "2016-12-09 12:31:39.727313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:31:39.730492"], ["updated_at", "2016-12-09 12:31:39.730492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.1ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:39.736045"], ["updated_at", "2016-12-09 12:31:39.736045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:31:39.737459"], ["updated_at", "2016-12-09 12:31:39.737459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:31:39.756767"], ["updated_at", "2016-12-09 12:31:39.756767"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:31:39.757988"], ["updated_at", "2016-12-09 12:31:39.757988"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:31:39.758890"], ["updated_at", "2016-12-09 12:31:39.758890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:39.773118"], ["updated_at", "2016-12-09 12:31:39.773118"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 256], ["created_at", "2016-12-09 12:31:39.775411"], ["updated_at", "2016-12-09 12:31:39.775411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 256], ["created_at", "2016-12-09 12:31:39.777231"], ["updated_at", "2016-12-09 12:31:39.777231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 256], ["created_at", "2016-12-09 12:31:39.779225"], ["updated_at", "2016-12-09 12:31:39.779225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 256], ["updated_at", "2016-12-09 12:31:39.780460"], ["id", 256]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 256]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 256]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 256]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 256]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 256]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 256]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 256]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 256]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:39.803426"], ["updated_at", "2016-12-09 12:31:39.803426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:39.805736"], ["updated_at", "2016-12-09 12:31:39.805736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:39.807757"], ["updated_at", "2016-12-09 12:31:39.807757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:39.810714"], ["updated_at", "2016-12-09 12:31:39.810714"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:39.811676"], ["updated_at", "2016-12-09 12:31:39.811676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:39.814851"], ["updated_at", "2016-12-09 12:31:39.814851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:39.822125"], ["updated_at", "2016-12-09 12:31:39.822125"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:31:39.823111"], ["updated_at", "2016-12-09 12:31:39.823111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:31:39.826304"], ["updated_at", "2016-12-09 12:31:39.826304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:31:39.827814"], ["updated_at", "2016-12-09 12:31:39.827814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:31:39.829104"], ["updated_at", "2016-12-09 12:31:39.829104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:39.832177"], ["updated_at", "2016-12-09 12:31:39.832177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:39.836084"], ["updated_at", "2016-12-09 12:31:39.836084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:31:39.838676"], ["updated_at", "2016-12-09 12:31:39.838676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:39.841459"], ["updated_at", "2016-12-09 12:31:39.841459"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:39.842841"], ["updated_at", "2016-12-09 12:31:39.842841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:39.844079"], ["updated_at", "2016-12-09 12:31:39.844079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:39.846600"], ["updated_at", "2016-12-09 12:31:39.846600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:39.847880"], ["updated_at", "2016-12-09 12:31:39.847880"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:39.849157"], ["updated_at", "2016-12-09 12:31:39.849157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:31:39.852366"], ["updated_at", "2016-12-09 12:31:39.852366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:39.857934"], ["updated_at", "2016-12-09 12:31:39.857934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 256], ["created_at", "2016-12-09 12:31:39.859805"], ["updated_at", "2016-12-09 12:31:39.859805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 256], ["created_at", "2016-12-09 12:31:39.861550"], ["updated_at", "2016-12-09 12:31:39.861550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 256], ["created_at", "2016-12-09 12:31:39.863352"], ["updated_at", "2016-12-09 12:31:39.863352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:39.871462"], ["updated_at", "2016-12-09 12:31:39.871462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:39.873088"], ["updated_at", "2016-12-09 12:31:39.873088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:39.874381"], ["updated_at", "2016-12-09 12:31:39.874381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:39.875588"], ["updated_at", "2016-12-09 12:31:39.875588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:39.876730"], ["updated_at", "2016-12-09 12:31:39.876730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:39.877894"], ["updated_at", "2016-12-09 12:31:39.877894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:39.881789"], ["updated_at", "2016-12-09 12:31:39.881789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 256], ["created_at", "2016-12-09 12:31:39.883912"], ["updated_at", "2016-12-09 12:31:39.883912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:39.886499"], ["updated_at", "2016-12-09 12:31:39.886499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:39.897934"], ["updated_at", "2016-12-09 12:31:39.897934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:39.899349"], ["updated_at", "2016-12-09 12:31:39.899349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:39.900567"], ["updated_at", "2016-12-09 12:31:39.900567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:31:39.905170"], ["updated_at", "2016-12-09 12:31:39.905170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:31:39.916109"], ["updated_at", "2016-12-09 12:31:39.916109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:31:39.917481"], ["updated_at", "2016-12-09 12:31:39.917481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:31:39.918775"], ["updated_at", "2016-12-09 12:31:39.918775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:31:39.923676"], ["updated_at", "2016-12-09 12:31:39.923676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:31:39.926588"], ["updated_at", "2016-12-09 12:31:39.926588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:31:39.927921"], ["updated_at", "2016-12-09 12:31:39.927921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:31:39.929140"], ["updated_at", "2016-12-09 12:31:39.929140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:39.930333"], ["updated_at", "2016-12-09 12:31:39.930333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:39.931617"], ["updated_at", "2016-12-09 12:31:39.931617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:39.933023"], ["updated_at", "2016-12-09 12:31:39.933023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:31:39.937411"], ["updated_at", "2016-12-09 12:31:39.937411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:31:39.938729"], ["updated_at", "2016-12-09 12:31:39.938729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:31:39.939948"], ["updated_at", "2016-12-09 12:31:39.939948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:34:36.075411"], ["updated_at", "2016-12-09 12:34:36.075411"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 256], ["created_at", "2016-12-09 12:34:36.127298"], ["updated_at", "2016-12-09 12:34:36.127298"]]  (17.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 256], ["created_at", "2016-12-09 12:34:36.153603"], ["updated_at", "2016-12-09 12:34:36.153603"]]  (17.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 256], ["created_at", "2016-12-09 12:34:36.179248"], ["updated_at", "2016-12-09 12:34:36.179248"]]  (26.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 256], ["updated_at", "2016-12-09 12:34:36.207940"], ["id", 256]]  (34.8ms) commit transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '490fc026e9c0a78acb482f5a94923f3c', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5e6d0bd422d2f499ee5b5df874a3bce5', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '132a6be6a914b42c9dbc38be0f0fb131', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0b0e2f6c483a97c4640c98118f2184ce', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '79940dd26d52e0dec72d64ecc07639b4', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9965db76b1020c64146c387a44ce1604', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '24fa38f071bf76e07363b6e1d172089e', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '37f13f6964e236fd90249fabd2ec3ebd', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'f45f737ee81cbb7e4e64cf330b72b23e', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '319a9a8c83e4307f24da80fda1ca7e66', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'b8cbeb113724190da2628f65b076f84d', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '88649add1f9d8bce7726574cf3449b83', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a29b98f8adbbe38dacc160eb671e7597', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '842c1edecf2be408d484e02815983768', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'efdbec600eeed7fda6fab7922f177840', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:34:36', '2016-12-09 12:34:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:34:36', '2016-12-09 12:34:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:34:36', '2016-12-09 12:34:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '74048f1f3ac40b7bd3da238179b9268b', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2d786d6af26023f3c76321dd0f061d03', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'bdd1db91b58a1a99457aac8a06a2b5e5', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '66add7b47a8c09d89e81eec59c43b3df', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 743354599) Fixture Delete (0.0ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:34:36', '2016-12-09 12:34:36', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:34:36', '2016-12-09 12:34:36', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:34:36', '2016-12-09 12:34:36', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'b402c95e05c3ace111255e3d75b27f2d', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '77ed30397bbe22a35d6ae6c32bffbb56', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1c4e2d5cbd951f30de2c63407eda9c32', '2016-12-09 12:34:36', '2016-12-09 12:34:36', 410780858)  (32.6ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:34:36.405130"], ["updated_at", "2016-12-09 12:34:36.405130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:34:36.406785"], ["updated_at", "2016-12-09 12:34:36.406785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:34:36.408147"], ["updated_at", "2016-12-09 12:34:36.408147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:34:36.417810"], ["updated_at", "2016-12-09 12:34:36.417810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:34:36.443555"], ["updated_at", "2016-12-09 12:34:36.443555"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:34:36.444740"], ["updated_at", "2016-12-09 12:34:36.444740"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:34:36.445641"], ["updated_at", "2016-12-09 12:34:36.445641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:34:36.460866"], ["updated_at", "2016-12-09 12:34:36.460866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:34:36.462637"], ["updated_at", "2016-12-09 12:34:36.462637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:34:36.463945"], ["updated_at", "2016-12-09 12:34:36.463945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:34:36.469442"], ["updated_at", "2016-12-09 12:34:36.469442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 257], ["created_at", "2016-12-09 12:34:36.471408"], ["updated_at", "2016-12-09 12:34:36.471408"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 257], ["created_at", "2016-12-09 12:34:36.473556"], ["updated_at", "2016-12-09 12:34:36.473556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 257], ["created_at", "2016-12-09 12:34:36.475290"], ["updated_at", "2016-12-09 12:34:36.475290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 257], ["updated_at", "2016-12-09 12:34:36.476555"], ["id", 257]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 257]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 257]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 257]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 257]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 257]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 257]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 257]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 257]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:34:36.500250"], ["updated_at", "2016-12-09 12:34:36.500250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:34:36.502063"], ["updated_at", "2016-12-09 12:34:36.502063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:34:36.504497"], ["updated_at", "2016-12-09 12:34:36.504497"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:34:36.506618"], ["updated_at", "2016-12-09 12:34:36.506618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:34:36.508701"], ["updated_at", "2016-12-09 12:34:36.508701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:34:36.510244"], ["updated_at", "2016-12-09 12:34:36.510244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:34:36.516293"], ["updated_at", "2016-12-09 12:34:36.516293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:34:36.517729"], ["updated_at", "2016-12-09 12:34:36.517729"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:34:36.519178"], ["updated_at", "2016-12-09 12:34:36.519178"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:34:36.522744"], ["updated_at", "2016-12-09 12:34:36.522744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:34:36.524119"], ["updated_at", "2016-12-09 12:34:36.524119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:34:36.525388"], ["updated_at", "2016-12-09 12:34:36.525388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:34:36.534348"], ["updated_at", "2016-12-09 12:34:36.534348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:34:36.539648"], ["updated_at", "2016-12-09 12:34:36.539648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 257], ["created_at", "2016-12-09 12:34:36.541473"], ["updated_at", "2016-12-09 12:34:36.541473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 257], ["created_at", "2016-12-09 12:34:36.543414"], ["updated_at", "2016-12-09 12:34:36.543414"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 257], ["created_at", "2016-12-09 12:34:36.545828"], ["updated_at", "2016-12-09 12:34:36.545828"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:34:36.557172"], ["updated_at", "2016-12-09 12:34:36.557172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:34:36.558810"], ["updated_at", "2016-12-09 12:34:36.558810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:34:36.560176"], ["updated_at", "2016-12-09 12:34:36.560176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:34:36.564968"], ["updated_at", "2016-12-09 12:34:36.564968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:34:36.566326"], ["updated_at", "2016-12-09 12:34:36.566326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:34:36.567604"], ["updated_at", "2016-12-09 12:34:36.567604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:34:36.568865"], ["updated_at", "2016-12-09 12:34:36.568865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:34:36.570074"], ["updated_at", "2016-12-09 12:34:36.570074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:34:36.571280"], ["updated_at", "2016-12-09 12:34:36.571280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:34:36.574448"], ["updated_at", "2016-12-09 12:34:36.574448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 257], ["created_at", "2016-12-09 12:34:36.576312"], ["updated_at", "2016-12-09 12:34:36.576312"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:34:36.578852"], ["updated_at", "2016-12-09 12:34:36.578852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:34:36.596590"], ["updated_at", "2016-12-09 12:34:36.596590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:34:36.600349"], ["updated_at", "2016-12-09 12:34:36.600349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:34:36.603154"], ["updated_at", "2016-12-09 12:34:36.603154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:34:36.605881"], ["updated_at", "2016-12-09 12:34:36.605881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:34:36.611254"], ["updated_at", "2016-12-09 12:34:36.611254"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:34:36.612308"], ["updated_at", "2016-12-09 12:34:36.612308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:34:36.615585"], ["updated_at", "2016-12-09 12:34:36.615585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:34:36.617747"], ["updated_at", "2016-12-09 12:34:36.617747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:34:36.619672"], ["updated_at", "2016-12-09 12:34:36.619672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:34:36.622355"], ["updated_at", "2016-12-09 12:34:36.622355"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:34:36.623278"], ["updated_at", "2016-12-09 12:34:36.623278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:34:36.625902"], ["updated_at", "2016-12-09 12:34:36.625902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:34:36.629259"], ["updated_at", "2016-12-09 12:34:36.629259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:34:36.630708"], ["updated_at", "2016-12-09 12:34:36.630708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:34:36.632278"], ["updated_at", "2016-12-09 12:34:36.632278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:34:36.758791"], ["updated_at", "2016-12-09 12:34:36.758791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:34:36.760976"], ["updated_at", "2016-12-09 12:34:36.760976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:34:36.763938"], ["updated_at", "2016-12-09 12:34:36.763938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:34:36.765312"], ["updated_at", "2016-12-09 12:34:36.765312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:34:36.767711"], ["updated_at", "2016-12-09 12:34:36.767711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 256]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 256]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 256]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 256]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 256]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 256]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 256]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 256]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:39:52.935622"], ["updated_at", "2016-12-09 12:39:52.935622"]]  (18.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 257], ["created_at", "2016-12-09 12:39:52.995486"], ["updated_at", "2016-12-09 12:39:52.995486"]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 257], ["created_at", "2016-12-09 12:39:53.026809"], ["updated_at", "2016-12-09 12:39:53.026809"]]  (16.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 257], ["created_at", "2016-12-09 12:39:53.057283"], ["updated_at", "2016-12-09 12:39:53.057283"]]  (27.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 257], ["updated_at", "2016-12-09 12:39:53.087528"], ["id", 257]]  (29.0ms) commit transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2f02b42141eb97a415aabde1872c965a', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '137e799075b56c2fb296b4bb52e008be', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd3db90a26356ee203c6be329d0a1ad51', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1807430db151a593b57c8b1e28855d18', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6ff79cb330d1807c5d24382e89d2118b', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'cb26f0fc5a1521ea4ef22e7c70c17ae3', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '59dd85c31b2abaa24ab553c4a861bfef', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'e41e22ac9f72a38db0e2e7e2a54f4dcc', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a1f8321f5ff6a3f0392f900ff2339911', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'db37afc7574eec431b04bb6a663eb04d', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '96ce750669c6e1c6978e215271e269e8', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '9d8949c98117cdbefa7fbb99082396d5', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1bf98f04fe9d11b42f754f40df895b95', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'bd96407b7bc1d0510ce6cc194191bbb3', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b6e742dd5ed4cca3af51c9959a8bc481', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:39:53', '2016-12-09 12:39:53', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:39:53', '2016-12-09 12:39:53', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:39:53', '2016-12-09 12:39:53', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ce6f0c4497ab3207b84f44d7be3cced3', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '17d3208c0999c04d4c93607871999890', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'def6306917fc607d03a6a9d2e0014561', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'e0fa5403b5927250423ddd1be47c9d33', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:39:53', '2016-12-09 12:39:53', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:39:53', '2016-12-09 12:39:53', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-09 12:39:53', '2016-12-09 12:39:53', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '008fe7ae8a1e8ec3e146de05ae710b63', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0211ef3b4757b66f03b99ed6f60daa00', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '1a8392f79c4efbfb0ca65ed9956f8345', '2016-12-09 12:39:53', '2016-12-09 12:39:53', 410780858)  (26.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:39:53.367591"], ["updated_at", "2016-12-09 12:39:53.367591"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:39:53.374702"], ["updated_at", "2016-12-09 12:39:53.374702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-09 12:39:53.378439"], ["updated_at", "2016-12-09 12:39:53.378439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:39:53.385353"], ["updated_at", "2016-12-09 12:39:53.385353"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582482], ["created_at", "2016-12-09 12:39:53.387317"], ["updated_at", "2016-12-09 12:39:53.387317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582482]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 257]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 257]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 257]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 257]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 257]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 257]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 257]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 257]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.5ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:39:53.520680"], ["updated_at", "2016-12-09 12:39:53.520680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:39:53.528989"], ["updated_at", "2016-12-09 12:39:53.528989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 258], ["created_at", "2016-12-09 12:39:53.531566"], ["updated_at", "2016-12-09 12:39:53.531566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 258], ["created_at", "2016-12-09 12:39:53.533794"], ["updated_at", "2016-12-09 12:39:53.533794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 258], ["created_at", "2016-12-09 12:39:53.535882"], ["updated_at", "2016-12-09 12:39:53.535882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 258], ["updated_at", "2016-12-09 12:39:53.537364"], ["id", 258]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 258]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 258]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 258]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 258]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 258]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 258]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Delta Load (0.3ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 258]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 258]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:39:53.567079"], ["updated_at", "2016-12-09 12:39:53.567079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 258], ["created_at", "2016-12-09 12:39:53.569355"], ["updated_at", "2016-12-09 12:39:53.569355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 258], ["created_at", "2016-12-09 12:39:53.571744"], ["updated_at", "2016-12-09 12:39:53.571744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 258], ["created_at", "2016-12-09 12:39:53.573844"], ["updated_at", "2016-12-09 12:39:53.573844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-09 12:39:53.586603"], ["updated_at", "2016-12-09 12:39:53.586603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-09 12:39:53.588491"], ["updated_at", "2016-12-09 12:39:53.588491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-09 12:39:53.590009"], ["updated_at", "2016-12-09 12:39:53.590009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:39:53.598479"], ["updated_at", "2016-12-09 12:39:53.598479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:39:53.600154"], ["updated_at", "2016-12-09 12:39:53.600154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:39:53.601626"], ["updated_at", "2016-12-09 12:39:53.601626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:39:53.612647"], ["updated_at", "2016-12-09 12:39:53.612647"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:39:53.614231"], ["updated_at", "2016-12-09 12:39:53.614231"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:39:53.619758"], ["updated_at", "2016-12-09 12:39:53.619758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:39:53.621355"], ["updated_at", "2016-12-09 12:39:53.621355"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:39:53.622920"], ["updated_at", "2016-12-09 12:39:53.622920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:39:53.628540"], ["updated_at", "2016-12-09 12:39:53.628540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:39:53.631653"], ["updated_at", "2016-12-09 12:39:53.631653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-09 12:39:53.634858"], ["updated_at", "2016-12-09 12:39:53.634858"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-09 12:39:53.638694"], ["updated_at", "2016-12-09 12:39:53.638694"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-09 12:39:53.640379"], ["updated_at", "2016-12-09 12:39:53.640379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-09 12:39:53.642281"], ["updated_at", "2016-12-09 12:39:53.642281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-09 12:39:53.661015"], ["updated_at", "2016-12-09 12:39:53.661015"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-09 12:39:53.662534"], ["updated_at", "2016-12-09 12:39:53.662534"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-09 12:39:53.663709"], ["updated_at", "2016-12-09 12:39:53.663709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:39:53.680472"], ["updated_at", "2016-12-09 12:39:53.680472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:39:53.682359"], ["updated_at", "2016-12-09 12:39:53.682359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:39:53.683877"], ["updated_at", "2016-12-09 12:39:53.683877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:39:53.685416"], ["updated_at", "2016-12-09 12:39:53.685416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:39:53.686894"], ["updated_at", "2016-12-09 12:39:53.686894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:39:53.688314"], ["updated_at", "2016-12-09 12:39:53.688314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:39:53.692425"], ["updated_at", "2016-12-09 12:39:53.692425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:39:53.693981"], ["updated_at", "2016-12-09 12:39:53.693981"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:39:53.695932"], ["updated_at", "2016-12-09 12:39:53.695932"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.3ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:39:53.704111"], ["updated_at", "2016-12-09 12:39:53.704111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:39:53.706134"], ["updated_at", "2016-12-09 12:39:53.706134"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:39:53.707828"], ["updated_at", "2016-12-09 12:39:53.707828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:39:53.709314"], ["updated_at", "2016-12-09 12:39:53.709314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:39:53.710862"], ["updated_at", "2016-12-09 12:39:53.710862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-09 12:39:53.712394"], ["updated_at", "2016-12-09 12:39:53.712394"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-09 12:39:53.719457"], ["updated_at", "2016-12-09 12:39:53.719457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:39:53.722014"], ["updated_at", "2016-12-09 12:39:53.722014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:39:53.724403"], ["updated_at", "2016-12-09 12:39:53.724403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:39:53.727900"], ["updated_at", "2016-12-09 12:39:53.727900"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-09 12:39:53.728970"], ["updated_at", "2016-12-09 12:39:53.728970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:39:53.732411"], ["updated_at", "2016-12-09 12:39:53.732411"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-09 12:39:53.738745"], ["updated_at", "2016-12-09 12:39:53.738745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-09 12:39:53.741845"], ["updated_at", "2016-12-09 12:39:53.741845"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-09 12:39:53.743464"], ["updated_at", "2016-12-09 12:39:53.743464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-09 12:39:53.744978"], ["updated_at", "2016-12-09 12:39:53.744978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-09 12:39:53.754614"], ["updated_at", "2016-12-09 12:39:53.754614"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 12:39:53.764079"], ["updated_at", "2016-12-09 12:39:53.764079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 258], ["created_at", "2016-12-09 12:39:53.766272"], ["updated_at", "2016-12-09 12:39:53.766272"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-09 12:39:53.769337"], ["updated_at", "2016-12-09 12:39:53.769337"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.3ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.3ms) SELECT DISTINCT "phones"."phoneable_type" FROM "phones"  (0.2ms) SELECT DISTINCT "phones"."phoneable_type" FROM "phones"  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 13:04:22.762746"], ["updated_at", "2016-12-09 13:04:22.762746"]]  (18.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_id", 325582482], ["phoneable_type", "WorkOrder"], ["created_at", "2016-12-09 13:04:31.416416"], ["updated_at", "2016-12-09 13:04:31.416416"]]  (39.4ms) commit transaction  (0.4ms) SELECT DISTINCT "phones"."phoneable_type" FROM "phones"  (0.4ms) SELECT DISTINCT "phones"."phoneable_type" FROM "phones"  (0.4ms) SELECT DISTINCT "phones"."phoneable_type" FROM "phones"  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-09 13:07:55.061215"], ["updated_at", "2016-12-09 13:07:55.061215"]]  (36.1ms) commit transaction WorkOrder Load (0.4ms) SELECT "work_orders".* FROM "work_orders" ORDER BY "work_orders"."id" DESC LIMIT 1 Phone Load (0.3ms) SELECT "phones".* FROM "phones" ORDER BY "phones"."id" DESC LIMIT 1 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:08:35.762505"], ["updated_at", "2016-12-10 07:08:35.762505"]]  (22.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 258], ["created_at", "2016-12-10 07:08:35.826451"], ["updated_at", "2016-12-10 07:08:35.826451"]]  (39.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 258], ["created_at", "2016-12-10 07:08:35.875142"], ["updated_at", "2016-12-10 07:08:35.875142"]]  (35.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 258], ["created_at", "2016-12-10 07:08:35.919527"], ["updated_at", "2016-12-10 07:08:35.919527"]]  (36.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 258], ["updated_at", "2016-12-10 07:08:35.959626"], ["id", 258]]  (34.8ms) commit transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bd53a3508cb6431e9d0630f3da805f81', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e4c3a70b72511f24eacbec4499fe8871', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '33b1c3e2bdaec217a4a9999973705968', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '3576eb75d0087bf801eb60044e9b13a1', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f334a8a876589ceb6303b69468769708', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'b9c07046bf99e7435e81af178a32f3e3', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '847efe63d282448bc34ba1591d19ea7e', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '811706faa605f777fb40160298c01f2a', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '5b2dbd3b7b6b31df8e2868ed252ce202', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '52714c9e7f16bf3b3fe127f96d4f1b24', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3abf72e2ac693086bf466b3e87bad51f', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 102195269) Fixture Insert (0.2ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'a2ae2ab4e47b8cff5d27e7e27ad74ff5', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4d70c57cb53ea683cb281796af07cd9d', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 1053526200) Fixture Insert (0.2ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '95b57e0664719104bb05afe2480226e4', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '60c35b19324ef5279ada9dfd0ddefae5', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:08:36', '2016-12-10 07:08:36', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:08:36', '2016-12-10 07:08:36', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:08:36', '2016-12-10 07:08:36', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'faddbb85a94e399e77312c2b4db7976f', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7dea788b4133cc2fb9f7c95671e8d71c', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'dd181196ae78d6d1dc5c1fbe4305acfc', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'dee73838ccda2620f50f9eb7f50041dd', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:08:36', '2016-12-10 07:08:36', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:08:36', '2016-12-10 07:08:36', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:08:36', '2016-12-10 07:08:36', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'bb910959b76a625650f83aa8e7527af5', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'db74347accf832d63856359f62d2c597', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '57a7a7ac54d1b1c710f47e169d3cc154', '2016-12-10 07:08:36', '2016-12-10 07:08:36', 410780858)  (30.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:08:36.131997"], ["updated_at", "2016-12-10 07:08:36.131997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 07:08:36.138873"], ["updated_at", "2016-12-10 07:08:36.138873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:08:36.143506"], ["updated_at", "2016-12-10 07:08:36.143506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 07:08:36.145128"], ["updated_at", "2016-12-10 07:08:36.145128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 07:08:36.147970"], ["updated_at", "2016-12-10 07:08:36.147970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.0ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 258]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 258]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 258]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 258]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 258]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 258]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 258]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 258]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:08:36.401920"], ["updated_at", "2016-12-10 07:08:36.401920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 259], ["created_at", "2016-12-10 07:08:36.404212"], ["updated_at", "2016-12-10 07:08:36.404212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 259], ["created_at", "2016-12-10 07:08:36.406361"], ["updated_at", "2016-12-10 07:08:36.406361"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 259], ["created_at", "2016-12-10 07:08:36.408407"], ["updated_at", "2016-12-10 07:08:36.408407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]]  (0.3ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 07:08:36.431178"], ["updated_at", "2016-12-10 07:08:36.431178"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 07:08:36.432466"], ["updated_at", "2016-12-10 07:08:36.432466"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 07:08:36.433552"], ["updated_at", "2016-12-10 07:08:36.433552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:08:36.451468"], ["updated_at", "2016-12-10 07:08:36.451468"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 07:08:36.452785"], ["updated_at", "2016-12-10 07:08:36.452785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 07:08:36.456617"], ["updated_at", "2016-12-10 07:08:36.456617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 07:08:36.458434"], ["updated_at", "2016-12-10 07:08:36.458434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 07:08:36.460103"], ["updated_at", "2016-12-10 07:08:36.460103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 07:08:36.466035"], ["updated_at", "2016-12-10 07:08:36.466035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 07:08:36.468072"], ["updated_at", "2016-12-10 07:08:36.468072"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 07:08:36.469841"], ["updated_at", "2016-12-10 07:08:36.469841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:08:36.473562"], ["updated_at", "2016-12-10 07:08:36.473562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:08:36.477466"], ["updated_at", "2016-12-10 07:08:36.477466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 07:08:36.480663"], ["updated_at", "2016-12-10 07:08:36.480663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 07:08:36.487078"], ["updated_at", "2016-12-10 07:08:36.487078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:08:36.490709"], ["updated_at", "2016-12-10 07:08:36.490709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:08:36.492340"], ["updated_at", "2016-12-10 07:08:36.492340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:08:36.493827"], ["updated_at", "2016-12-10 07:08:36.493827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:08:36.500419"], ["updated_at", "2016-12-10 07:08:36.500419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:08:36.503344"], ["updated_at", "2016-12-10 07:08:36.503344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:08:36.505682"], ["updated_at", "2016-12-10 07:08:36.505682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:08:36.509473"], ["updated_at", "2016-12-10 07:08:36.509473"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 07:08:36.510565"], ["updated_at", "2016-12-10 07:08:36.510565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:08:36.513691"], ["updated_at", "2016-12-10 07:08:36.513691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:08:36.516384"], ["updated_at", "2016-12-10 07:08:36.516384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:08:36.517895"], ["updated_at", "2016-12-10 07:08:36.517895"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:08:36.519423"], ["updated_at", "2016-12-10 07:08:36.519423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:08:36.522034"], ["updated_at", "2016-12-10 07:08:36.522034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:08:36.523830"], ["updated_at", "2016-12-10 07:08:36.523830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:08:36.525391"], ["updated_at", "2016-12-10 07:08:36.525391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:08:36.526796"], ["updated_at", "2016-12-10 07:08:36.526796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:08:36.528184"], ["updated_at", "2016-12-10 07:08:36.528184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:08:36.529615"], ["updated_at", "2016-12-10 07:08:36.529615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:08:36.532108"], ["updated_at", "2016-12-10 07:08:36.532108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:08:36.536643"], ["updated_at", "2016-12-10 07:08:36.536643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 259], ["created_at", "2016-12-10 07:08:36.538749"], ["updated_at", "2016-12-10 07:08:36.538749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:08:36.541913"], ["updated_at", "2016-12-10 07:08:36.541913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:08:36.544927"], ["updated_at", "2016-12-10 07:08:36.544927"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:08:36.546629"], ["updated_at", "2016-12-10 07:08:36.546629"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:08:36.548332"], ["updated_at", "2016-12-10 07:08:36.548332"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:08:36.563128"], ["updated_at", "2016-12-10 07:08:36.563128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:08:36.564912"], ["updated_at", "2016-12-10 07:08:36.564912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:08:36.566367"], ["updated_at", "2016-12-10 07:08:36.566367"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:08:36.571357"], ["updated_at", "2016-12-10 07:08:36.571357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 259], ["created_at", "2016-12-10 07:08:36.573444"], ["updated_at", "2016-12-10 07:08:36.573444"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 259], ["created_at", "2016-12-10 07:08:36.575606"], ["updated_at", "2016-12-10 07:08:36.575606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 259], ["created_at", "2016-12-10 07:08:36.577611"], ["updated_at", "2016-12-10 07:08:36.577611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 259], ["updated_at", "2016-12-10 07:08:36.579079"], ["id", 259]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 259]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 259]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 259]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 259]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 259]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 259]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 259]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 259]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:08:36.608447"], ["updated_at", "2016-12-10 07:08:36.608447"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:08:36.613859"], ["updated_at", "2016-12-10 07:08:36.613859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:08:36.615431"], ["updated_at", "2016-12-10 07:08:36.615431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:08:36.616873"], ["updated_at", "2016-12-10 07:08:36.616873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:08:36.618251"], ["updated_at", "2016-12-10 07:08:36.618251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:08:36.619738"], ["updated_at", "2016-12-10 07:08:36.619738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:08:36.621106"], ["updated_at", "2016-12-10 07:08:36.621106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:09:00.671053"], ["updated_at", "2016-12-10 07:09:00.671053"]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 259], ["created_at", "2016-12-10 07:09:00.720091"], ["updated_at", "2016-12-10 07:09:00.720091"]]  (28.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 259], ["created_at", "2016-12-10 07:09:00.762918"], ["updated_at", "2016-12-10 07:09:00.762918"]]  (24.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 259], ["created_at", "2016-12-10 07:09:00.805181"], ["updated_at", "2016-12-10 07:09:00.805181"]]  (21.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 259], ["updated_at", "2016-12-10 07:09:00.829848"], ["id", 259]]  (34.5ms) commit transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '589fb29781de5b843f2a0569b2d4dcad', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ac8bdf289b099aeb8515d543f11fafc4', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '95dcf98505a00f12deea7fd4bef77e28', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e89fceb929048f532590607d558475ca', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4088f6e17a2cc459b5ff2c57c94a5a82', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ba1ae7920678e5c025db844a2791077b', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '7054cf4304eb4f5048c4d0b3d9a3cde5', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '333c7216f599775c54ce0d23a9ef1576', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'caccf100e005f9d63e92dbacb802ec84', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '4d798c5c4f0d69fa691f659229d44f2d', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'baa870bee31675f3ac11cb02f52153c4', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '2b23755c56b6908a34e564b67d786685', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '8f2c5fbd9bdfc447ccae2a24814208ac', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a92338a84a062d572d1bf8f1be975be5', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a9bc554db4bdd278c4d22a79259b4815', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:09:00', '2016-12-10 07:09:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:09:00', '2016-12-10 07:09:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:09:00', '2016-12-10 07:09:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '06f3fb410834262b423867a378a27d1c', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '964ce3895048697706c0a0cd9deba11a', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b9c860fd4cb9d52aaf4f520da7198b95', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '36baac53659126bfe0b446fd5c5fdd80', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:09:00', '2016-12-10 07:09:00', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:09:00', '2016-12-10 07:09:00', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:09:00', '2016-12-10 07:09:00', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a8a7d74b416e07138dee0ed031c75017', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '7c5751aae74691ce039fd33af017e36c', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '549ff4c14302708d51dd7b84c87642da', '2016-12-10 07:09:00', '2016-12-10 07:09:00', 410780858)  (31.2ms) commit transaction  (0.2ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 07:09:01.026635"], ["updated_at", "2016-12-10 07:09:01.026635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 07:09:01.028543"], ["updated_at", "2016-12-10 07:09:01.028543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 07:09:01.030167"], ["updated_at", "2016-12-10 07:09:01.030167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:09:01.038147"], ["updated_at", "2016-12-10 07:09:01.038147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:09:01.039985"], ["updated_at", "2016-12-10 07:09:01.039985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:09:01.041537"], ["updated_at", "2016-12-10 07:09:01.041537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:09:01.046839"], ["updated_at", "2016-12-10 07:09:01.046839"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 260], ["created_at", "2016-12-10 07:09:01.049561"], ["updated_at", "2016-12-10 07:09:01.049561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:09:01.052905"], ["updated_at", "2016-12-10 07:09:01.052905"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 07:09:01.061045"], ["updated_at", "2016-12-10 07:09:01.061045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 07:09:01.062746"], ["updated_at", "2016-12-10 07:09:01.062746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 07:09:01.064347"], ["updated_at", "2016-12-10 07:09:01.064347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 07:09:01.086266"], ["updated_at", "2016-12-10 07:09:01.086266"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 07:09:01.087740"], ["updated_at", "2016-12-10 07:09:01.087740"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 07:09:01.088903"], ["updated_at", "2016-12-10 07:09:01.088903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:09:01.106362"], ["updated_at", "2016-12-10 07:09:01.106362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:09:01.108935"], ["updated_at", "2016-12-10 07:09:01.108935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:09:01.111090"], ["updated_at", "2016-12-10 07:09:01.111090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:09:01.118602"], ["updated_at", "2016-12-10 07:09:01.118602"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 07:09:01.119829"], ["updated_at", "2016-12-10 07:09:01.119829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:09:01.123379"], ["updated_at", "2016-12-10 07:09:01.123379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:09:01.126037"], ["updated_at", "2016-12-10 07:09:01.126037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:09:01.129115"], ["updated_at", "2016-12-10 07:09:01.129115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 07:09:01.132097"], ["updated_at", "2016-12-10 07:09:01.132097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:09:01.137961"], ["updated_at", "2016-12-10 07:09:01.137961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:09:01.142730"], ["updated_at", "2016-12-10 07:09:01.142730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:09:01.144718"], ["updated_at", "2016-12-10 07:09:01.144718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:09:01.146700"], ["updated_at", "2016-12-10 07:09:01.146700"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:09:01.153824"], ["updated_at", "2016-12-10 07:09:01.153824"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 07:09:01.155006"], ["updated_at", "2016-12-10 07:09:01.155006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:09:01.159451"], ["updated_at", "2016-12-10 07:09:01.159451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 260], ["created_at", "2016-12-10 07:09:01.161541"], ["updated_at", "2016-12-10 07:09:01.161541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 260], ["created_at", "2016-12-10 07:09:01.163696"], ["updated_at", "2016-12-10 07:09:01.163696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 260], ["created_at", "2016-12-10 07:09:01.165669"], ["updated_at", "2016-12-10 07:09:01.165669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 260], ["updated_at", "2016-12-10 07:09:01.167149"], ["id", 260]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 260]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 260]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 260]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 260]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 260]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 260]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 260]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 260]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:09:01.193571"], ["updated_at", "2016-12-10 07:09:01.193571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 260], ["created_at", "2016-12-10 07:09:01.195651"], ["updated_at", "2016-12-10 07:09:01.195651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 260], ["created_at", "2016-12-10 07:09:01.197691"], ["updated_at", "2016-12-10 07:09:01.197691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 260], ["created_at", "2016-12-10 07:09:01.199742"], ["updated_at", "2016-12-10 07:09:01.199742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:09:01.207628"], ["updated_at", "2016-12-10 07:09:01.207628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:09:01.209247"], ["updated_at", "2016-12-10 07:09:01.209247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:09:01.210798"], ["updated_at", "2016-12-10 07:09:01.210798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:09:01.217033"], ["updated_at", "2016-12-10 07:09:01.217033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:09:01.219350"], ["updated_at", "2016-12-10 07:09:01.219350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:09:01.220906"], ["updated_at", "2016-12-10 07:09:01.220906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:09:01.222396"], ["updated_at", "2016-12-10 07:09:01.222396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:09:01.223847"], ["updated_at", "2016-12-10 07:09:01.223847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:09:01.225290"], ["updated_at", "2016-12-10 07:09:01.225290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:09:01.226728"], ["updated_at", "2016-12-10 07:09:01.226728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:09:01.229628"], ["updated_at", "2016-12-10 07:09:01.229628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:09:01.231363"], ["updated_at", "2016-12-10 07:09:01.231363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:09:01.232880"], ["updated_at", "2016-12-10 07:09:01.232880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 07:09:01.248833"], ["updated_at", "2016-12-10 07:09:01.248833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:09:01.259611"], ["updated_at", "2016-12-10 07:09:01.259611"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:09:01.261244"], ["updated_at", "2016-12-10 07:09:01.261244"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:09:01.262749"], ["updated_at", "2016-12-10 07:09:01.262749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:09:01.264173"], ["updated_at", "2016-12-10 07:09:01.264173"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:09:01.265890"], ["updated_at", "2016-12-10 07:09:01.265890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:09:01.267469"], ["updated_at", "2016-12-10 07:09:01.267469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:09:01.327380"], ["updated_at", "2016-12-10 07:09:01.327380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 07:09:01.333692"], ["updated_at", "2016-12-10 07:09:01.333692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:09:01.337100"], ["updated_at", "2016-12-10 07:09:01.337100"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 07:09:01.338755"], ["updated_at", "2016-12-10 07:09:01.338755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 07:09:01.341480"], ["updated_at", "2016-12-10 07:09:01.341480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.0ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 259]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 259]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 259]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 259]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 259]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 259]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 259]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 259]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:30:56.603208"], ["updated_at", "2016-12-10 07:30:56.603208"]]  (13.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 260], ["created_at", "2016-12-10 07:30:56.654279"], ["updated_at", "2016-12-10 07:30:56.654279"]]  (25.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 260], ["created_at", "2016-12-10 07:30:56.692123"], ["updated_at", "2016-12-10 07:30:56.692123"]]  (22.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 260], ["created_at", "2016-12-10 07:30:56.726246"], ["updated_at", "2016-12-10 07:30:56.726246"]]  (24.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 260], ["updated_at", "2016-12-10 07:30:56.753441"], ["id", 260]]  (29.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '825ee83326e10a5ff45f3180e6211253', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c49b8600a24d42eba6b64b83bfd55109', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '809d81559addee8ee6cb3eae49869c36', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2f83468fb30555e0dc2a5a2c0c523bbc', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e4a79eecc90f37635f59c609c3ab7bf1', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '96d34f1962f7dbdadc5fa140bdc71f5c', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2a49a57c585362f0a72bc1593d5a01dd', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'abdd870756e6ce75e0f5c31807cd50e4', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6cb814b5c5f31568d7f31bbddc588878', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '0ef3211bd77b4cfffdee402b5c38ebcd', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '13c8ca6f61af0c679c0a4e6db80b13c2', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c690301126c4099a337d4d0d0c7d260f', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1358fbbcc293d63c1974b34d41217635', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '194943dafa48dc9bbb080685782a45a3', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd97b9ebb234a44f107c3e8e237473ef6', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:30:56', '2016-12-10 07:30:56', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:30:56', '2016-12-10 07:30:56', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:30:56', '2016-12-10 07:30:56', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a70b753dcf418ec759dc8f26f58598d9', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b55d7171e0e554906fba9ccd61161c4a', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '34d555ebc9f23c2ca24500dd8080833e', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '59889abf8387c0711fb500233fce7586', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:30:56', '2016-12-10 07:30:56', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:30:56', '2016-12-10 07:30:56', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:30:56', '2016-12-10 07:30:56', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '1ecdcd5827f7658b1db29323e4948a6b', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'e798bbfc7a254ea078487c4d22a3c803', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c7f748420f1b6745e687095c8c00fa65', '2016-12-10 07:30:56', '2016-12-10 07:30:56', 410780858)  (25.9ms) commit transaction  (0.2ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:30:57.008462"], ["updated_at", "2016-12-10 07:30:57.008462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 07:30:57.015264"], ["updated_at", "2016-12-10 07:30:57.015264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:30:57.018660"], ["updated_at", "2016-12-10 07:30:57.018660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 07:30:57.020240"], ["updated_at", "2016-12-10 07:30:57.020240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 07:30:57.023051"], ["updated_at", "2016-12-10 07:30:57.023051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.1ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.0ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 260]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 260]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 260]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 260]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 260]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 260]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 260]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 260]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:30:57.179228"], ["updated_at", "2016-12-10 07:30:57.179228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:30:57.180912"], ["updated_at", "2016-12-10 07:30:57.180912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:30:57.182443"], ["updated_at", "2016-12-10 07:30:57.182443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 07:30:57.188085"], ["updated_at", "2016-12-10 07:30:57.188085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 07:30:57.189844"], ["updated_at", "2016-12-10 07:30:57.189844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 07:30:57.191410"], ["updated_at", "2016-12-10 07:30:57.191410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:30:57.199483"], ["updated_at", "2016-12-10 07:30:57.199483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:30:57.203117"], ["updated_at", "2016-12-10 07:30:57.203117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 07:30:57.206122"], ["updated_at", "2016-12-10 07:30:57.206122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:30:57.209087"], ["updated_at", "2016-12-10 07:30:57.209087"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 261], ["created_at", "2016-12-10 07:30:57.211150"], ["updated_at", "2016-12-10 07:30:57.211150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:30:57.214149"], ["updated_at", "2016-12-10 07:30:57.214149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 07:30:57.227453"], ["updated_at", "2016-12-10 07:30:57.227453"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 07:30:57.228769"], ["updated_at", "2016-12-10 07:30:57.228769"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 07:30:57.229877"], ["updated_at", "2016-12-10 07:30:57.229877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.2ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:30:57.246136"], ["updated_at", "2016-12-10 07:30:57.246136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:30:57.247730"], ["updated_at", "2016-12-10 07:30:57.247730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:30:57.249192"], ["updated_at", "2016-12-10 07:30:57.249192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:30:57.252872"], ["updated_at", "2016-12-10 07:30:57.252872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:30:57.255301"], ["updated_at", "2016-12-10 07:30:57.255301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:30:57.257433"], ["updated_at", "2016-12-10 07:30:57.257433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:30:57.260781"], ["updated_at", "2016-12-10 07:30:57.260781"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 07:30:57.261998"], ["updated_at", "2016-12-10 07:30:57.261998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:30:57.265188"], ["updated_at", "2016-12-10 07:30:57.265188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:30:57.271128"], ["updated_at", "2016-12-10 07:30:57.271128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:30:57.272750"], ["updated_at", "2016-12-10 07:30:57.272750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:30:57.274236"], ["updated_at", "2016-12-10 07:30:57.274236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 07:30:57.279633"], ["updated_at", "2016-12-10 07:30:57.279633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:30:57.285820"], ["updated_at", "2016-12-10 07:30:57.285820"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:30:57.291123"], ["updated_at", "2016-12-10 07:30:57.291123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:30:57.292724"], ["updated_at", "2016-12-10 07:30:57.292724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:30:57.294211"], ["updated_at", "2016-12-10 07:30:57.294211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:30:57.296719"], ["updated_at", "2016-12-10 07:30:57.296719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 261], ["created_at", "2016-12-10 07:30:57.298832"], ["updated_at", "2016-12-10 07:30:57.298832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 261], ["created_at", "2016-12-10 07:30:57.300893"], ["updated_at", "2016-12-10 07:30:57.300893"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 261], ["created_at", "2016-12-10 07:30:57.303056"], ["updated_at", "2016-12-10 07:30:57.303056"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 261], ["updated_at", "2016-12-10 07:30:57.304534"], ["id", 261]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 261]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 261]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 261]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 261]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 261]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 261]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 261]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 261]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:30:57.331282"], ["updated_at", "2016-12-10 07:30:57.331282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:30:57.333000"], ["updated_at", "2016-12-10 07:30:57.333000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:30:57.334519"], ["updated_at", "2016-12-10 07:30:57.334519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:30:57.335937"], ["updated_at", "2016-12-10 07:30:57.335937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:30:57.337327"], ["updated_at", "2016-12-10 07:30:57.337327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:30:57.338805"], ["updated_at", "2016-12-10 07:30:57.338805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:30:57.345756"], ["updated_at", "2016-12-10 07:30:57.345756"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 07:30:57.346927"], ["updated_at", "2016-12-10 07:30:57.346927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:30:57.350045"], ["updated_at", "2016-12-10 07:30:57.350045"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 261], ["created_at", "2016-12-10 07:30:57.352246"], ["updated_at", "2016-12-10 07:30:57.352246"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 261], ["created_at", "2016-12-10 07:30:57.354298"], ["updated_at", "2016-12-10 07:30:57.354298"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 261], ["created_at", "2016-12-10 07:30:57.356330"], ["updated_at", "2016-12-10 07:30:57.356330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 07:30:57.364561"], ["updated_at", "2016-12-10 07:30:57.364561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 07:30:57.366234"], ["updated_at", "2016-12-10 07:30:57.366234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 07:30:57.367798"], ["updated_at", "2016-12-10 07:30:57.367798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:30:57.375164"], ["updated_at", "2016-12-10 07:30:57.375164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:30:57.376775"], ["updated_at", "2016-12-10 07:30:57.376775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:30:57.378274"], ["updated_at", "2016-12-10 07:30:57.378274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:30:57.379749"], ["updated_at", "2016-12-10 07:30:57.379749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:30:57.381129"], ["updated_at", "2016-12-10 07:30:57.381129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:30:57.382600"], ["updated_at", "2016-12-10 07:30:57.382600"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:30:57.389418"], ["updated_at", "2016-12-10 07:30:57.389418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:36:19.224608"], ["updated_at", "2016-12-10 07:36:19.224608"]]  (30.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 261], ["created_at", "2016-12-10 07:36:19.283329"], ["updated_at", "2016-12-10 07:36:19.283329"]]  (24.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 261], ["created_at", "2016-12-10 07:36:19.322929"], ["updated_at", "2016-12-10 07:36:19.322929"]]  (20.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 261], ["created_at", "2016-12-10 07:36:19.358948"], ["updated_at", "2016-12-10 07:36:19.358948"]]  (21.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 261], ["updated_at", "2016-12-10 07:36:19.383611"], ["id", 261]]  (26.0ms) commit transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd5840125139a623ed1ea1c8d2640c50a', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5b28121e35e32d087de0829b1ce99b5a', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f8ef3c85cbd423b62585237ec4ceeae8', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'de4c21274d34f2be7e3962600e630c1a', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a102b5abbebd7a66a49499dcd1d5b57c', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3fefbd2cac743d0429e0dbc051fcf5c0', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'cc69c06440b3fd5c61a690027b01210d', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '51a8cba19914ef29920c7929628f0a0c', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'dcd2aaa4b7727c1bf8c56237e7259cbd', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ae82d2a0b7dbcbea4a6e1e2f04dcd5f9', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '16a76396b549b104c5376f067de995a0', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '06c16247cc070de46cbcfad9b08dd68d', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fa71299859331accc3ba2aac3b111f8b', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd77c6d1ced4479a4dac7efe56d800559', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '80f66c04fb04a385004d3592e759aea3', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:36:19', '2016-12-10 07:36:19', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:36:19', '2016-12-10 07:36:19', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:36:19', '2016-12-10 07:36:19', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4a33b8e56f4b739b45a1abb61650d9df', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'a53f7b2a1262542b5c26bb674ce9c7b4', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0c8b0e6f9a3f71ac12bbc19a40b23af1', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'e4f43baffd6ba3a1ad60b26e512bf4de', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:36:19', '2016-12-10 07:36:19', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:36:19', '2016-12-10 07:36:19', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:36:19', '2016-12-10 07:36:19', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3ea01c08153ecdfdd2e9f6cc973c452b', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ef375d696df3371701e66d7e813a8c95', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '23319d3fad954bbbef1cf6d10f4da3a0', '2016-12-10 07:36:19', '2016-12-10 07:36:19', 410780858)  (25.2ms) commit transaction  (0.2ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:36:19.637381"], ["updated_at", "2016-12-10 07:36:19.637381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 07:36:19.639895"], ["updated_at", "2016-12-10 07:36:19.639895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:36:19.643504"], ["updated_at", "2016-12-10 07:36:19.643504"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 07:36:19.645293"], ["updated_at", "2016-12-10 07:36:19.645293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 07:36:19.648018"], ["updated_at", "2016-12-10 07:36:19.648018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 261]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 261]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 261]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 261]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 261]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 261]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 261]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 261]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:36:19.744908"], ["updated_at", "2016-12-10 07:36:19.744908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 262], ["created_at", "2016-12-10 07:36:19.747020"], ["updated_at", "2016-12-10 07:36:19.747020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 262], ["created_at", "2016-12-10 07:36:19.749076"], ["updated_at", "2016-12-10 07:36:19.749076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 262], ["created_at", "2016-12-10 07:36:19.751111"], ["updated_at", "2016-12-10 07:36:19.751111"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 262], ["updated_at", "2016-12-10 07:36:19.752575"], ["id", 262]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 262]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 262]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 262]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 262]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 262]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 262]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 262]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 262]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:36:19.787059"], ["updated_at", "2016-12-10 07:36:19.787059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:36:19.788823"], ["updated_at", "2016-12-10 07:36:19.788823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:36:19.790332"], ["updated_at", "2016-12-10 07:36:19.790332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 07:36:19.800379"], ["updated_at", "2016-12-10 07:36:19.800379"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 07:36:19.801608"], ["updated_at", "2016-12-10 07:36:19.801608"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 07:36:19.802693"], ["updated_at", "2016-12-10 07:36:19.802693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:36:19.818191"], ["updated_at", "2016-12-10 07:36:19.818191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 07:36:19.824507"], ["updated_at", "2016-12-10 07:36:19.824507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 07:36:19.826189"], ["updated_at", "2016-12-10 07:36:19.826189"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 07:36:19.827735"], ["updated_at", "2016-12-10 07:36:19.827735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:36:19.831338"], ["updated_at", "2016-12-10 07:36:19.831338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:36:19.833755"], ["updated_at", "2016-12-10 07:36:19.833755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:36:19.836026"], ["updated_at", "2016-12-10 07:36:19.836026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:36:19.842794"], ["updated_at", "2016-12-10 07:36:19.842794"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 07:36:19.843969"], ["updated_at", "2016-12-10 07:36:19.843969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:36:19.847443"], ["updated_at", "2016-12-10 07:36:19.847443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 07:36:19.855367"], ["updated_at", "2016-12-10 07:36:19.855367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:36:19.860489"], ["updated_at", "2016-12-10 07:36:19.860489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:36:19.864199"], ["updated_at", "2016-12-10 07:36:19.864199"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 07:36:19.867147"], ["updated_at", "2016-12-10 07:36:19.867147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:36:19.871390"], ["updated_at", "2016-12-10 07:36:19.871390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 262], ["created_at", "2016-12-10 07:36:19.873437"], ["updated_at", "2016-12-10 07:36:19.873437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 262], ["created_at", "2016-12-10 07:36:19.875542"], ["updated_at", "2016-12-10 07:36:19.875542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 262], ["created_at", "2016-12-10 07:36:19.877540"], ["updated_at", "2016-12-10 07:36:19.877540"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:36:19.890576"], ["updated_at", "2016-12-10 07:36:19.890576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:36:19.892169"], ["updated_at", "2016-12-10 07:36:19.892169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:36:19.893852"], ["updated_at", "2016-12-10 07:36:19.893852"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:36:19.896478"], ["updated_at", "2016-12-10 07:36:19.896478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:36:19.898016"], ["updated_at", "2016-12-10 07:36:19.898016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:36:19.899512"], ["updated_at", "2016-12-10 07:36:19.899512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 07:36:19.907342"], ["updated_at", "2016-12-10 07:36:19.907342"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 07:36:19.909042"], ["updated_at", "2016-12-10 07:36:19.909042"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 07:36:19.910663"], ["updated_at", "2016-12-10 07:36:19.910663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:36:19.920355"], ["updated_at", "2016-12-10 07:36:19.920355"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 07:36:19.921513"], ["updated_at", "2016-12-10 07:36:19.921513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:36:19.927487"], ["updated_at", "2016-12-10 07:36:19.927487"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:36:19.929054"], ["updated_at", "2016-12-10 07:36:19.929054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:36:19.930609"], ["updated_at", "2016-12-10 07:36:19.930609"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:36:19.932063"], ["updated_at", "2016-12-10 07:36:19.932063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:36:19.933476"], ["updated_at", "2016-12-10 07:36:19.933476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:36:19.934907"], ["updated_at", "2016-12-10 07:36:19.934907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:36:19.938811"], ["updated_at", "2016-12-10 07:36:19.938811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:36:19.942295"], ["updated_at", "2016-12-10 07:36:19.942295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 262], ["created_at", "2016-12-10 07:36:19.944606"], ["updated_at", "2016-12-10 07:36:19.944606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:36:19.947443"], ["updated_at", "2016-12-10 07:36:19.947443"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:36:19.952907"], ["updated_at", "2016-12-10 07:36:19.952907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:36:19.954540"], ["updated_at", "2016-12-10 07:36:19.954540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:36:19.956083"], ["updated_at", "2016-12-10 07:36:19.956083"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:36:19.964552"], ["updated_at", "2016-12-10 07:36:19.964552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:36:19.966117"], ["updated_at", "2016-12-10 07:36:19.966117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:36:19.967616"], ["updated_at", "2016-12-10 07:36:19.967616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:36:19.969009"], ["updated_at", "2016-12-10 07:36:19.969009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:36:19.970444"], ["updated_at", "2016-12-10 07:36:19.970444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:36:19.971935"], ["updated_at", "2016-12-10 07:36:19.971935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:40:57.721653"], ["updated_at", "2016-12-10 07:40:57.721653"]]  (17.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 262], ["created_at", "2016-12-10 07:40:57.779091"], ["updated_at", "2016-12-10 07:40:57.779091"]]  (22.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 262], ["created_at", "2016-12-10 07:40:57.818010"], ["updated_at", "2016-12-10 07:40:57.818010"]]  (20.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 262], ["created_at", "2016-12-10 07:40:57.854379"], ["updated_at", "2016-12-10 07:40:57.854379"]]  (21.1ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 262], ["updated_at", "2016-12-10 07:40:57.878145"], ["id", 262]]  (20.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'e804d436ab7538d807aca33d27cf3378', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '54f72f838576b2cddf15a6449ee63867', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '12d2bdecf538aa4f5ccf1b23d4b1718c', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b08e30ec4313be22567767bf08f3869e', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'acbd07079e2f055a1353c03ac87f521a', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2c51bec17e88aa4e97bab3dd5436c5c5', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '6aa3a30f7b79ab7d34e4aa20bde8c511', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd58624cd0cedc23da303fc6da0c55756', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'b8900ef8d9ed5c79487d468ca7ba451d', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'ae9f72876ba8706bea770f28fed32eca', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '0dd44b23d3052bb23f9a99388df0fed2', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '753706ac584c3a095a1d5b6edfd7d878', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '363fe6e3d2bc891f367f8d1c6a650b46', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'b21f527a0e0e4b194e20c4755baef903', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7e9393367936349627fe831447ca650b', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:40:57', '2016-12-10 07:40:57', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:40:57', '2016-12-10 07:40:57', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:40:57', '2016-12-10 07:40:57', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4e44e50d4e2a1fd715a1619cf19d7bd6', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b62efe4ccbc764c4010a496df613a5d1', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e4d77f799bf5edbe2b8a6a11952013c5', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '2ad9ee45b4a544d748dcbd9e216495aa', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:40:57', '2016-12-10 07:40:57', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:40:57', '2016-12-10 07:40:57', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:40:57', '2016-12-10 07:40:57', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6aa557034b54423e0d200eddbc00e291', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '26cbb8760f742c410137bd67a054497f', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'f96859141e9b624c63be1ffd664b9056', '2016-12-10 07:40:57', '2016-12-10 07:40:57', 410780858)  (20.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:40:58.040806"], ["updated_at", "2016-12-10 07:40:58.040806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:40:58.047788"], ["updated_at", "2016-12-10 07:40:58.047788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:40:58.050426"], ["updated_at", "2016-12-10 07:40:58.050426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:40:58.052808"], ["updated_at", "2016-12-10 07:40:58.052808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:40:58.060868"], ["updated_at", "2016-12-10 07:40:58.060868"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 07:40:58.062057"], ["updated_at", "2016-12-10 07:40:58.062057"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:40:58.065830"], ["updated_at", "2016-12-10 07:40:58.065830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:40:58.077832"], ["updated_at", "2016-12-10 07:40:58.077832"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 07:40:58.079034"], ["updated_at", "2016-12-10 07:40:58.079034"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:40:58.082547"], ["updated_at", "2016-12-10 07:40:58.082547"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:40:58.090436"], ["updated_at", "2016-12-10 07:40:58.090436"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:40:58.091977"], ["updated_at", "2016-12-10 07:40:58.091977"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:40:58.093416"], ["updated_at", "2016-12-10 07:40:58.093416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:40:58.095203"], ["updated_at", "2016-12-10 07:40:58.095203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:40:58.097101"], ["updated_at", "2016-12-10 07:40:58.097101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:40:58.101641"], ["updated_at", "2016-12-10 07:40:58.101641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 263], ["created_at", "2016-12-10 07:40:58.103859"], ["updated_at", "2016-12-10 07:40:58.103859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:40:58.106964"], ["updated_at", "2016-12-10 07:40:58.106964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:40:58.115943"], ["updated_at", "2016-12-10 07:40:58.115943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:40:58.117508"], ["updated_at", "2016-12-10 07:40:58.117508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:40:58.118983"], ["updated_at", "2016-12-10 07:40:58.118983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:40:58.125117"], ["updated_at", "2016-12-10 07:40:58.125117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:40:58.133549"], ["updated_at", "2016-12-10 07:40:58.133549"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:40:58.135220"], ["updated_at", "2016-12-10 07:40:58.135220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:40:58.136744"], ["updated_at", "2016-12-10 07:40:58.136744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:40:58.142846"], ["updated_at", "2016-12-10 07:40:58.142846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:40:58.146608"], ["updated_at", "2016-12-10 07:40:58.146608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 07:40:58.149559"], ["updated_at", "2016-12-10 07:40:58.149559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 07:40:58.158492"], ["updated_at", "2016-12-10 07:40:58.158492"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 07:40:58.160288"], ["updated_at", "2016-12-10 07:40:58.160288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 07:40:58.161850"], ["updated_at", "2016-12-10 07:40:58.161850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.3ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 07:40:58.180713"], ["updated_at", "2016-12-10 07:40:58.180713"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 07:40:58.182323"], ["updated_at", "2016-12-10 07:40:58.182323"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 07:40:58.183546"], ["updated_at", "2016-12-10 07:40:58.183546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 07:40:58.199792"], ["updated_at", "2016-12-10 07:40:58.199792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 07:40:58.201457"], ["updated_at", "2016-12-10 07:40:58.201457"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 07:40:58.203009"], ["updated_at", "2016-12-10 07:40:58.203009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:40:58.208519"], ["updated_at", "2016-12-10 07:40:58.208519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 263], ["created_at", "2016-12-10 07:40:58.210694"], ["updated_at", "2016-12-10 07:40:58.210694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 263], ["created_at", "2016-12-10 07:40:58.212779"], ["updated_at", "2016-12-10 07:40:58.212779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 263], ["created_at", "2016-12-10 07:40:58.214944"], ["updated_at", "2016-12-10 07:40:58.214944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 263], ["updated_at", "2016-12-10 07:40:58.216415"], ["id", 263]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 263]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 263]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 263]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 263]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 263]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 263]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 263]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 263]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:40:58.248709"], ["updated_at", "2016-12-10 07:40:58.248709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 263], ["created_at", "2016-12-10 07:40:58.250912"], ["updated_at", "2016-12-10 07:40:58.250912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 263], ["created_at", "2016-12-10 07:40:58.252971"], ["updated_at", "2016-12-10 07:40:58.252971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 263], ["created_at", "2016-12-10 07:40:58.255048"], ["updated_at", "2016-12-10 07:40:58.255048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:40:58.263104"], ["updated_at", "2016-12-10 07:40:58.263104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:40:58.264687"], ["updated_at", "2016-12-10 07:40:58.264687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:40:58.266157"], ["updated_at", "2016-12-10 07:40:58.266157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 07:40:58.272379"], ["updated_at", "2016-12-10 07:40:58.272379"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:40:58.277765"], ["updated_at", "2016-12-10 07:40:58.277765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:40:58.279566"], ["updated_at", "2016-12-10 07:40:58.279566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:40:58.281214"], ["updated_at", "2016-12-10 07:40:58.281214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:40:58.290583"], ["updated_at", "2016-12-10 07:40:58.290583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:40:58.292155"], ["updated_at", "2016-12-10 07:40:58.292155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:40:58.293759"], ["updated_at", "2016-12-10 07:40:58.293759"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:40:58.295204"], ["updated_at", "2016-12-10 07:40:58.295204"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:40:58.296632"], ["updated_at", "2016-12-10 07:40:58.296632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:40:58.298029"], ["updated_at", "2016-12-10 07:40:58.298029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 262]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 262]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 262]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 262]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 262]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 262]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 262]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 262]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:40:58.512941"], ["updated_at", "2016-12-10 07:40:58.512941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 07:40:58.519283"], ["updated_at", "2016-12-10 07:40:58.519283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:40:58.522743"], ["updated_at", "2016-12-10 07:40:58.522743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 07:40:58.524326"], ["updated_at", "2016-12-10 07:40:58.524326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 07:40:58.527062"], ["updated_at", "2016-12-10 07:40:58.527062"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.0ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:41:13.819494"], ["updated_at", "2016-12-10 07:41:13.819494"]]  (13.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 263], ["created_at", "2016-12-10 07:41:13.872202"], ["updated_at", "2016-12-10 07:41:13.872202"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 263], ["created_at", "2016-12-10 07:41:13.898432"], ["updated_at", "2016-12-10 07:41:13.898432"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 263], ["created_at", "2016-12-10 07:41:13.922412"], ["updated_at", "2016-12-10 07:41:13.922412"]]  (27.5ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 263], ["updated_at", "2016-12-10 07:41:13.951778"], ["id", 263]]  (33.8ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'c362b794c39ce5db8324163f1b3bceb5', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a32a5ade4ca5a568ab9d795b294fa249', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '02e921b7db1100da2b2aad31d58f6a5c', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ea0c6f6fca7f19262a5dcb3219b9a484', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '595c393e8a960d4cbf6fb3db1a78f047', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '386d7dcb66733f729aa2acd715822546', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '9294d5dec1e312c76dd9376c3928bfdd', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 261299535) Fixture Insert (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '0bd7ee2dba72414784468e73a940e185', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'c91ade4640e19b2e1dcfcf5347acd30b', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'e2fd9f80a02bdfa8f4e877add69721c3', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6c8e9b05e96f09bb10d2165efd11721c', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '66fce1fd10ad5d2716151a5e1a3365fa', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'b60d16961e9376dbe71ee2c406bb17e2', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '772a2a75f8df22ffca45cbe5681a22d9', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0eee8062706175efd3e598f0aa233975', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:41:14', '2016-12-10 07:41:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:41:14', '2016-12-10 07:41:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:41:14', '2016-12-10 07:41:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6ccd90ad30c8bb09bee7ce18f9547cde', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '9271388169d1146eb2ad5072cd6637ec', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'fcf5b909257c5680d2165a2bd160be21', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '0e983b9dcc3411cbd6b156bad3e96969', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:41:14', '2016-12-10 07:41:14', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:41:14', '2016-12-10 07:41:14', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 07:41:14', '2016-12-10 07:41:14', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '6a55a70c028b737fdc6cbe8c14b8fb9d', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '11167fd561cc446a0a27662fbe2d1d7b', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'edfc37aed0aa391737ae763a9955b030', '2016-12-10 07:41:14', '2016-12-10 07:41:14', 410780858)  (25.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:41:14.125475"], ["updated_at", "2016-12-10 07:41:14.125475"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 264], ["created_at", "2016-12-10 07:41:14.127938"], ["updated_at", "2016-12-10 07:41:14.127938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:41:14.134739"], ["updated_at", "2016-12-10 07:41:14.134739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 07:41:14.148613"], ["updated_at", "2016-12-10 07:41:14.148613"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 07:41:14.150550"], ["updated_at", "2016-12-10 07:41:14.150550"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 07:41:14.152316"], ["updated_at", "2016-12-10 07:41:14.152316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:41:14.155821"], ["updated_at", "2016-12-10 07:41:14.155821"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:41:14.160063"], ["updated_at", "2016-12-10 07:41:14.160063"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 07:41:14.163263"], ["updated_at", "2016-12-10 07:41:14.163263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:41:14.171187"], ["updated_at", "2016-12-10 07:41:14.171187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 264], ["created_at", "2016-12-10 07:41:14.173377"], ["updated_at", "2016-12-10 07:41:14.173377"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 264], ["created_at", "2016-12-10 07:41:14.175569"], ["updated_at", "2016-12-10 07:41:14.175569"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 264], ["created_at", "2016-12-10 07:41:14.177689"], ["updated_at", "2016-12-10 07:41:14.177689"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 264], ["updated_at", "2016-12-10 07:41:14.179247"], ["id", 264]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 264]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 264]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 264]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 264]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 264]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 264]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 264]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 264]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:41:14.215330"], ["updated_at", "2016-12-10 07:41:14.215330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:41:14.216991"], ["updated_at", "2016-12-10 07:41:14.216991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:41:14.218565"], ["updated_at", "2016-12-10 07:41:14.218565"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:41:14.223467"], ["updated_at", "2016-12-10 07:41:14.223467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:41:14.225932"], ["updated_at", "2016-12-10 07:41:14.225932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:41:14.228155"], ["updated_at", "2016-12-10 07:41:14.228155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:41:14.236817"], ["updated_at", "2016-12-10 07:41:14.236817"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 07:41:14.238001"], ["updated_at", "2016-12-10 07:41:14.238001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:41:14.241821"], ["updated_at", "2016-12-10 07:41:14.241821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:41:14.245743"], ["updated_at", "2016-12-10 07:41:14.245743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:41:14.247343"], ["updated_at", "2016-12-10 07:41:14.247343"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:41:14.248805"], ["updated_at", "2016-12-10 07:41:14.248805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:41:14.252864"], ["updated_at", "2016-12-10 07:41:14.252864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:41:14.254410"], ["updated_at", "2016-12-10 07:41:14.254410"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:41:14.256177"], ["updated_at", "2016-12-10 07:41:14.256177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:41:14.257599"], ["updated_at", "2016-12-10 07:41:14.257599"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:41:14.259051"], ["updated_at", "2016-12-10 07:41:14.259051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:41:14.260532"], ["updated_at", "2016-12-10 07:41:14.260532"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:41:14.263387"], ["updated_at", "2016-12-10 07:41:14.263387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 264], ["created_at", "2016-12-10 07:41:14.265540"], ["updated_at", "2016-12-10 07:41:14.265540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 264], ["created_at", "2016-12-10 07:41:14.267698"], ["updated_at", "2016-12-10 07:41:14.267698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 264], ["created_at", "2016-12-10 07:41:14.269763"], ["updated_at", "2016-12-10 07:41:14.269763"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:41:14.282143"], ["updated_at", "2016-12-10 07:41:14.282143"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 07:41:14.283306"], ["updated_at", "2016-12-10 07:41:14.283306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:41:14.295586"], ["updated_at", "2016-12-10 07:41:14.295586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:41:14.297956"], ["updated_at", "2016-12-10 07:41:14.297956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:41:14.299548"], ["updated_at", "2016-12-10 07:41:14.299548"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:41:14.301112"], ["updated_at", "2016-12-10 07:41:14.301112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:41:14.302665"], ["updated_at", "2016-12-10 07:41:14.302665"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:41:14.304091"], ["updated_at", "2016-12-10 07:41:14.304091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:41:14.305518"], ["updated_at", "2016-12-10 07:41:14.305518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 07:41:14.318233"], ["updated_at", "2016-12-10 07:41:14.318233"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 07:41:14.319502"], ["updated_at", "2016-12-10 07:41:14.319502"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 07:41:14.320611"], ["updated_at", "2016-12-10 07:41:14.320611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 07:41:14.340002"], ["updated_at", "2016-12-10 07:41:14.340002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 07:41:14.341667"], ["updated_at", "2016-12-10 07:41:14.341667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 07:41:14.343297"], ["updated_at", "2016-12-10 07:41:14.343297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 07:41:14.348508"], ["updated_at", "2016-12-10 07:41:14.348508"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 07:41:14.350132"], ["updated_at", "2016-12-10 07:41:14.350132"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 07:41:14.351684"], ["updated_at", "2016-12-10 07:41:14.351684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 07:41:14.362670"], ["updated_at", "2016-12-10 07:41:14.362670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 07:41:14.365867"], ["updated_at", "2016-12-10 07:41:14.365867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 07:41:14.370756"], ["updated_at", "2016-12-10 07:41:14.370756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 07:41:14.372424"], ["updated_at", "2016-12-10 07:41:14.372424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 07:41:14.373967"], ["updated_at", "2016-12-10 07:41:14.373967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 07:41:14.393846"], ["updated_at", "2016-12-10 07:41:14.393846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.0ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:41:14.402174"], ["updated_at", "2016-12-10 07:41:14.402174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 07:41:14.404336"], ["updated_at", "2016-12-10 07:41:14.404336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 07:41:14.407451"], ["updated_at", "2016-12-10 07:41:14.407451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 07:41:14.408967"], ["updated_at", "2016-12-10 07:41:14.408967"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 263]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 263]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 263]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 263]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.3ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 263]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 263]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 263]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 263]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects retruns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateBigCompanies (20161210074545)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "big_companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161210074545"]]  (12.9ms) commit transaction Migrating to AddBigCompanyIdToWorkOrder (20161210074616)  (0.1ms) begin transaction  (0.7ms) ALTER TABLE "work_orders" ADD "big_company_id" integer  (0.1ms) select sqlite_version(*)  (0.6ms) CREATE INDEX "index_work_orders_on_big_company_id" ON "work_orders" ("big_company_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161210074616"]]  (13.2ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_alphas_on_delta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_alphas_on_delta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_beta_on_alpha_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_beta_on_alpha_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_capas_on_beta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_capas_on_beta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cars_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cars_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_contacts_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_delta_on_capa_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_delta_on_capa_id' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_events_on_work_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_events_on_work_order_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_geo_locations_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_geo_locations_on_address_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ssns_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ssns_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tags_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tags_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_tires_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tires_on_car_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_car_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_work_orders_on_big_company_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_work_orders_on_big_company_id' AND type='index' ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:22:49.517312"], ["updated_at", "2016-12-10 08:22:49.517312"]]  (12.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 264], ["created_at", "2016-12-10 08:22:49.570455"], ["updated_at", "2016-12-10 08:22:49.570455"]]  (17.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 264], ["created_at", "2016-12-10 08:22:49.600148"], ["updated_at", "2016-12-10 08:22:49.600148"]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 264], ["created_at", "2016-12-10 08:22:49.633042"], ["updated_at", "2016-12-10 08:22:49.633042"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 264], ["updated_at", "2016-12-10 08:22:49.647338"], ["id", 264]]  (17.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '008e52b6ea6d066490cd0e09181eae6a', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '47d752db0079e2d9b57000120a797224', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2b889bd85f8274538724420064593c4c', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '79f8a703f256eb928f5cd92a3c0fe81c', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '65db4720e6378dceb64a029dae6e8c52', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'fee8662be488ed96b0ce9ce9ab4e206c', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '4ac82a225b0150c8c24132abce08659e', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '44ec62bec146a79b5f1435aa02966f84', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '059daec4c52ba83d36a1243579dbe82d', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '1d0b0136324193a30334a14ced6a8cd3', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '6541456b2451242316be137e9416ab09', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e1a22d6a0ec5443b632dc613836b6af7', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '022410e6bc093fd715c8be4ae7fdba7d', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2611a2b9cfe5ffba13f228f6978675fd', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c07f436581205389317975c10e0d2983', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:22:49', '2016-12-10 08:22:49', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:22:49', '2016-12-10 08:22:49', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:22:49', '2016-12-10 08:22:49', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '4dfb6f0c42456de5e56ff2706c3dd85f', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'f055b8582672afb2107fe44a3e22ed50', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '5e8a0c1b8df417eebff1a4f3c9451283', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'f906469813674b0a7e6af34bbdd1c311', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:22:49', '2016-12-10 08:22:49', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:22:49', '2016-12-10 08:22:49', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:22:49', '2016-12-10 08:22:49', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cacd55e79fab100cfd6e9ee0ac761186', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b4bc18d1847b37aaf3dd39664597de49', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'cee964bc2f094689cc48cd9bcd386384', '2016-12-10 08:22:49', '2016-12-10 08:22:49', 410780858)  (29.9ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.4ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 264]] Alpha Load (0.3ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 264]] Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 264]] Capa Load (0.3ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 264]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 264]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 264]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 264]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 264]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:22:49.833462"], ["updated_at", "2016-12-10 08:22:49.833462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 08:22:49.840394"], ["updated_at", "2016-12-10 08:22:49.840394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 08:22:49.844044"], ["updated_at", "2016-12-10 08:22:49.844044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:22:49.853141"], ["updated_at", "2016-12-10 08:22:49.853141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 08:22:49.854885"], ["updated_at", "2016-12-10 08:22:49.854885"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:22:50.092751"], ["updated_at", "2016-12-10 08:22:50.092751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:22:50.095386"], ["updated_at", "2016-12-10 08:22:50.095386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:22:50.097691"], ["updated_at", "2016-12-10 08:22:50.097691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 08:22:50.101215"], ["updated_at", "2016-12-10 08:22:50.101215"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 08:22:50.102428"], ["updated_at", "2016-12-10 08:22:50.102428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:22:50.105846"], ["updated_at", "2016-12-10 08:22:50.105846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:22:50.119197"], ["updated_at", "2016-12-10 08:22:50.119197"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 265], ["created_at", "2016-12-10 08:22:50.121390"], ["updated_at", "2016-12-10 08:22:50.121390"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 265], ["created_at", "2016-12-10 08:22:50.123850"], ["updated_at", "2016-12-10 08:22:50.123850"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 265], ["created_at", "2016-12-10 08:22:50.125991"], ["updated_at", "2016-12-10 08:22:50.125991"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 265], ["updated_at", "2016-12-10 08:22:50.127641"], ["id", 265]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 265]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 265]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 265]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 265]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 265]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 265]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 265]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 265]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:22:50.159347"], ["updated_at", "2016-12-10 08:22:50.159347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:22:50.163534"], ["updated_at", "2016-12-10 08:22:50.163534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 08:22:50.166631"], ["updated_at", "2016-12-10 08:22:50.166631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 08:22:50.173255"], ["updated_at", "2016-12-10 08:22:50.173255"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.3ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 08:22:50.185288"], ["updated_at", "2016-12-10 08:22:50.185288"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 08:22:50.186495"], ["updated_at", "2016-12-10 08:22:50.186495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:22:50.189983"], ["updated_at", "2016-12-10 08:22:50.189983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 08:22:50.193985"], ["updated_at", "2016-12-10 08:22:50.193985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 08:22:50.195780"], ["updated_at", "2016-12-10 08:22:50.195780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 08:22:50.197328"], ["updated_at", "2016-12-10 08:22:50.197328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:22:50.205527"], ["updated_at", "2016-12-10 08:22:50.205527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:22:50.207097"], ["updated_at", "2016-12-10 08:22:50.207097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:22:50.208573"], ["updated_at", "2016-12-10 08:22:50.208573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:22:50.215274"], ["updated_at", "2016-12-10 08:22:50.215274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:22:50.216810"], ["updated_at", "2016-12-10 08:22:50.216810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 08:22:50.218299"], ["updated_at", "2016-12-10 08:22:50.218299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 08:22:50.223591"], ["updated_at", "2016-12-10 08:22:50.223591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:22:50.233224"], ["updated_at", "2016-12-10 08:22:50.233224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 265], ["created_at", "2016-12-10 08:22:50.235432"], ["updated_at", "2016-12-10 08:22:50.235432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:22:50.238300"], ["updated_at", "2016-12-10 08:22:50.238300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:22:50.241348"], ["updated_at", "2016-12-10 08:22:50.241348"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 265], ["created_at", "2016-12-10 08:22:50.243398"], ["updated_at", "2016-12-10 08:22:50.243398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 265], ["created_at", "2016-12-10 08:22:50.245489"], ["updated_at", "2016-12-10 08:22:50.245489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 265], ["created_at", "2016-12-10 08:22:50.247540"], ["updated_at", "2016-12-10 08:22:50.247540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:22:50.255835"], ["updated_at", "2016-12-10 08:22:50.255835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:22:50.257769"], ["updated_at", "2016-12-10 08:22:50.257769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:22:50.259608"], ["updated_at", "2016-12-10 08:22:50.259608"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 08:22:50.273807"], ["updated_at", "2016-12-10 08:22:50.273807"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 08:22:50.275216"], ["updated_at", "2016-12-10 08:22:50.275216"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 08:22:50.276409"], ["updated_at", "2016-12-10 08:22:50.276409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:22:50.291641"], ["updated_at", "2016-12-10 08:22:50.291641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:22:50.293295"], ["updated_at", "2016-12-10 08:22:50.293295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:22:50.294785"], ["updated_at", "2016-12-10 08:22:50.294785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:22:50.296207"], ["updated_at", "2016-12-10 08:22:50.296207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:22:50.297602"], ["updated_at", "2016-12-10 08:22:50.297602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 08:22:50.299010"], ["updated_at", "2016-12-10 08:22:50.299010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:22:50.303073"], ["updated_at", "2016-12-10 08:22:50.303073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:22:50.304600"], ["updated_at", "2016-12-10 08:22:50.304600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:22:50.306073"], ["updated_at", "2016-12-10 08:22:50.306073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:22:50.310217"], ["updated_at", "2016-12-10 08:22:50.310217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:22:50.311829"], ["updated_at", "2016-12-10 08:22:50.311829"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:22:50.313746"], ["updated_at", "2016-12-10 08:22:50.313746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:22:50.315615"], ["updated_at", "2016-12-10 08:22:50.315615"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:22:50.318049"], ["updated_at", "2016-12-10 08:22:50.318049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 08:22:50.320934"], ["updated_at", "2016-12-10 08:22:50.320934"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 08:22:50.329092"], ["updated_at", "2016-12-10 08:22:50.329092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 08:22:50.330844"], ["updated_at", "2016-12-10 08:22:50.330844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 08:22:50.332469"], ["updated_at", "2016-12-10 08:22:50.332469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:23:14.644802"], ["updated_at", "2016-12-10 08:23:14.644802"]]  (13.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 265], ["created_at", "2016-12-10 08:23:14.703383"], ["updated_at", "2016-12-10 08:23:14.703383"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 265], ["created_at", "2016-12-10 08:23:14.735250"], ["updated_at", "2016-12-10 08:23:14.735250"]]  (17.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 265], ["created_at", "2016-12-10 08:23:14.762402"], ["updated_at", "2016-12-10 08:23:14.762402"]]  (12.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 265], ["updated_at", "2016-12-10 08:23:14.777894"], ["id", 265]]  (12.6ms) commit transaction  (0.1ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 576421514, 'Address', 761411935) Fixture Insert (0.2ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f1b9831802f18128e68228deaada1b35', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'd0043e0b1d7567c6545ec75dc4fa0e70', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '7e24fb0c48ba87489ed03f84a9740cb6', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '601ebc1222243db545ad57cc5520ae2f', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ed6e967b54957a109edbe10a965d37ad', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0def4178b0dffdfa775c48ad4a617ece', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '0a0f17ee1b3af6a578b9eae3432001bf', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'c2cad71a3c451959c6bded949bf59f73', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '04dc89a7a656069935946a84be29e5ad', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '97192e3256be6cbf70fea5aba6317c8b', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4104672fe0aa4329089d29367c0c70c4', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '5361841f1f8e25c4b9a3f10b0733d7d3', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bd0a2ea172a7ad8aac3eb4bba9e1cbf8', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6154736b1a23230a487032dbf47b26d8', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '350c882b39a4e68723979641e24d07a8', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:23:14', '2016-12-10 08:23:14', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:23:14', '2016-12-10 08:23:14', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:23:14', '2016-12-10 08:23:14', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cc7127072ac714bf92b006ab6eaf0c3f', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'df65f0495d0c1a411cce6ddc634aaa02', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '0e57900b71cbe9fc35ed96196b67cd15', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'f5444dbb0b4a7de27db6929950cc8ce8', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:23:14', '2016-12-10 08:23:14', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:23:14', '2016-12-10 08:23:14', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:23:14', '2016-12-10 08:23:14', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd9640da24b8e4d4ed4f9703c346f63dc', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4038012a68292748e5fc14100aaa3903', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ab38ae6ddffa3bc3e697a47bd2e24555', '2016-12-10 08:23:14', '2016-12-10 08:23:14', 410780858)  (24.0ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 08:23:14.952324"], ["updated_at", "2016-12-10 08:23:14.952324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:23:14.960918"], ["updated_at", "2016-12-10 08:23:14.960918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 266], ["created_at", "2016-12-10 08:23:14.963673"], ["updated_at", "2016-12-10 08:23:14.963673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 266], ["created_at", "2016-12-10 08:23:14.965817"], ["updated_at", "2016-12-10 08:23:14.965817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 266], ["created_at", "2016-12-10 08:23:14.968102"], ["updated_at", "2016-12-10 08:23:14.968102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 266], ["updated_at", "2016-12-10 08:23:14.969649"], ["id", 266]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 266]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 266]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 266]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 266]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 266]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 266]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 266]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 266]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:23:15.003723"], ["updated_at", "2016-12-10 08:23:15.003723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 266], ["created_at", "2016-12-10 08:23:15.005866"], ["updated_at", "2016-12-10 08:23:15.005866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:23:15.012190"], ["updated_at", "2016-12-10 08:23:15.012190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:23:15.017116"], ["updated_at", "2016-12-10 08:23:15.017116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:23:15.018691"], ["updated_at", "2016-12-10 08:23:15.018691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 08:23:15.020228"], ["updated_at", "2016-12-10 08:23:15.020228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:23:15.024224"], ["updated_at", "2016-12-10 08:23:15.024224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:23:15.025747"], ["updated_at", "2016-12-10 08:23:15.025747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:23:15.027239"], ["updated_at", "2016-12-10 08:23:15.027239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:23:15.028641"], ["updated_at", "2016-12-10 08:23:15.028641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:23:15.030217"], ["updated_at", "2016-12-10 08:23:15.030217"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 08:23:15.031851"], ["updated_at", "2016-12-10 08:23:15.031851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:23:15.037057"], ["updated_at", "2016-12-10 08:23:15.037057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:23:15.038658"], ["updated_at", "2016-12-10 08:23:15.038658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:23:15.040168"], ["updated_at", "2016-12-10 08:23:15.040168"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:23:15.045091"], ["updated_at", "2016-12-10 08:23:15.045091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:23:15.046684"], ["updated_at", "2016-12-10 08:23:15.046684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:23:15.048153"], ["updated_at", "2016-12-10 08:23:15.048153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:23:15.050917"], ["updated_at", "2016-12-10 08:23:15.050917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:23:15.052500"], ["updated_at", "2016-12-10 08:23:15.052500"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:23:15.054009"], ["updated_at", "2016-12-10 08:23:15.054009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:23:15.059911"], ["updated_at", "2016-12-10 08:23:15.059911"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:23:15.062889"], ["updated_at", "2016-12-10 08:23:15.062889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 08:23:15.065847"], ["updated_at", "2016-12-10 08:23:15.065847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 08:23:15.075082"], ["updated_at", "2016-12-10 08:23:15.075082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 08:23:15.076946"], ["updated_at", "2016-12-10 08:23:15.076946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 08:23:15.078527"], ["updated_at", "2016-12-10 08:23:15.078527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 08:23:15.085509"], ["updated_at", "2016-12-10 08:23:15.085509"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 08:23:15.086752"], ["updated_at", "2016-12-10 08:23:15.086752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 08:23:15.105343"], ["updated_at", "2016-12-10 08:23:15.105343"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 08:23:15.106690"], ["updated_at", "2016-12-10 08:23:15.106690"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 08:23:15.107943"], ["updated_at", "2016-12-10 08:23:15.107943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:23:15.128142"], ["updated_at", "2016-12-10 08:23:15.128142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:23:15.131835"], ["updated_at", "2016-12-10 08:23:15.131835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 266], ["created_at", "2016-12-10 08:23:15.133890"], ["updated_at", "2016-12-10 08:23:15.133890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 266], ["created_at", "2016-12-10 08:23:15.136016"], ["updated_at", "2016-12-10 08:23:15.136016"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 266], ["created_at", "2016-12-10 08:23:15.138676"], ["updated_at", "2016-12-10 08:23:15.138676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 08:23:15.158582"], ["updated_at", "2016-12-10 08:23:15.158582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:23:15.161730"], ["updated_at", "2016-12-10 08:23:15.161730"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:23:15.164401"], ["updated_at", "2016-12-10 08:23:15.164401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:23:15.166546"], ["updated_at", "2016-12-10 08:23:15.166546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 08:23:15.170072"], ["updated_at", "2016-12-10 08:23:15.170072"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 08:23:15.171318"], ["updated_at", "2016-12-10 08:23:15.171318"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:23:15.174495"], ["updated_at", "2016-12-10 08:23:15.174495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:23:15.180769"], ["updated_at", "2016-12-10 08:23:15.180769"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:23:15.182399"], ["updated_at", "2016-12-10 08:23:15.182399"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:23:15.184078"], ["updated_at", "2016-12-10 08:23:15.184078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:23:15.185814"], ["updated_at", "2016-12-10 08:23:15.185814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:23:15.187314"], ["updated_at", "2016-12-10 08:23:15.187314"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 08:23:15.188769"], ["updated_at", "2016-12-10 08:23:15.188769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 08:23:15.193437"], ["updated_at", "2016-12-10 08:23:15.193437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 08:23:15.195078"], ["updated_at", "2016-12-10 08:23:15.195078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 08:23:15.196596"], ["updated_at", "2016-12-10 08:23:15.196596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:23:15.219389"], ["updated_at", "2016-12-10 08:23:15.219389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 08:23:15.222143"], ["updated_at", "2016-12-10 08:23:15.222143"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 08:23:15.225637"], ["updated_at", "2016-12-10 08:23:15.225637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:23:15.233583"], ["updated_at", "2016-12-10 08:23:15.233583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 08:23:15.235202"], ["updated_at", "2016-12-10 08:23:15.235202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 265]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 265]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 265]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 265]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 265]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 265]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 265]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 265]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:25:54.347974"], ["updated_at", "2016-12-10 08:25:54.347974"]]  (17.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 266], ["created_at", "2016-12-10 08:25:54.405780"], ["updated_at", "2016-12-10 08:25:54.405780"]]  (17.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 266], ["created_at", "2016-12-10 08:25:54.436459"], ["updated_at", "2016-12-10 08:25:54.436459"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 266], ["created_at", "2016-12-10 08:25:54.460454"], ["updated_at", "2016-12-10 08:25:54.460454"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 266], ["updated_at", "2016-12-10 08:25:54.474229"], ["id", 266]]  (17.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ee9287f034ad2f10f4877a830c0052f9', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4d24bfe5474f733c5f39fe2e5050a253', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '49b20b7cb6394f0a35bdfd7118054da3', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '15108dcfff807e26e8b39d7789a7f289', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6a94be07d6e1c2573f045cf6a7e38dda', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '098e169ec7828c87e6d7918f4ac15ade', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2f2e468f5b08d9496edccf2430e2fcfd', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'de1261ea6148b8b8590d6f607573376e', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9b02ceb115c04149a2c3ff13c998a613', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '367531948b8f404e4c246ab0af153111', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '7f4018f956ccc06bb0cf99423e59744b', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'efdca2266b4c5333a077355976e0a494', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f91835c35836db7348c1ac5d6b6d358e', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'c098da119a356613ea1818d0e81a99ab', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '8d0ba08c7d5d0c243f8ef5686ef446b0', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:25:54', '2016-12-10 08:25:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:25:54', '2016-12-10 08:25:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:25:54', '2016-12-10 08:25:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '720c0cf4caf9081db0371aae7084366d', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '19ba70fc26e433cdb88b1bc711ab494e', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '91f6100583ae60ed3b050515f469c437', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '838be2ffad2c8704c49fedd0eba422b5', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:25:54', '2016-12-10 08:25:54', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:25:54', '2016-12-10 08:25:54', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 08:25:54', '2016-12-10 08:25:54', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '2c0e06ac29a299c485e7a3585ab7ea79', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1f1e317732975dc58fed37d908acefed', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '2a3f7c9ce3af614eef577924095f0bf7', '2016-12-10 08:25:54', '2016-12-10 08:25:54', 410780858)  (14.7ms) commit transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:25:54.615002"], ["updated_at", "2016-12-10 08:25:54.615002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 08:25:54.622013"], ["updated_at", "2016-12-10 08:25:54.622013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.2ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:25:54.628827"], ["updated_at", "2016-12-10 08:25:54.628827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 08:25:54.631082"], ["updated_at", "2016-12-10 08:25:54.631082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 08:25:54.635079"], ["updated_at", "2016-12-10 08:25:54.635079"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.1ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:25:54.828300"], ["updated_at", "2016-12-10 08:25:54.828300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 267], ["created_at", "2016-12-10 08:25:54.830509"], ["updated_at", "2016-12-10 08:25:54.830509"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:25:54.834013"], ["updated_at", "2016-12-10 08:25:54.834013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0020_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 08:25:54.852423"], ["updated_at", "2016-12-10 08:25:54.852423"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 08:25:54.853817"], ["updated_at", "2016-12-10 08:25:54.853817"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 08:25:54.854915"], ["updated_at", "2016-12-10 08:25:54.854915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:25:54.869809"], ["updated_at", "2016-12-10 08:25:54.869809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:25:54.871447"], ["updated_at", "2016-12-10 08:25:54.871447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:25:54.873124"], ["updated_at", "2016-12-10 08:25:54.873124"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:25:54.875103"], ["updated_at", "2016-12-10 08:25:54.875103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:25:54.876627"], ["updated_at", "2016-12-10 08:25:54.876627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 08:25:54.878023"], ["updated_at", "2016-12-10 08:25:54.878023"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0031_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:25:54.880864"], ["updated_at", "2016-12-10 08:25:54.880864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 267], ["created_at", "2016-12-10 08:25:54.883038"], ["updated_at", "2016-12-10 08:25:54.883038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 267], ["created_at", "2016-12-10 08:25:54.885180"], ["updated_at", "2016-12-10 08:25:54.885180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 267], ["created_at", "2016-12-10 08:25:54.887775"], ["updated_at", "2016-12-10 08:25:54.887775"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 267], ["updated_at", "2016-12-10 08:25:54.889656"], ["id", 267]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 267]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 267]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 267]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 267]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 267]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 267]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 267]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 267]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0008_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:25:54.928921"], ["updated_at", "2016-12-10 08:25:54.928921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:25:54.930578"], ["updated_at", "2016-12-10 08:25:54.930578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:25:54.932031"], ["updated_at", "2016-12-10 08:25:54.932031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0028_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 08:25:54.941054"], ["updated_at", "2016-12-10 08:25:54.941054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0042_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 08:25:54.949590"], ["updated_at", "2016-12-10 08:25:54.949590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 08:25:54.951416"], ["updated_at", "2016-12-10 08:25:54.951416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 08:25:54.952970"], ["updated_at", "2016-12-10 08:25:54.952970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:25:54.960097"], ["updated_at", "2016-12-10 08:25:54.960097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 08:25:54.962966"], ["updated_at", "2016-12-10 08:25:54.962966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:25:54.967391"], ["updated_at", "2016-12-10 08:25:54.967391"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:25:54.969385"], ["updated_at", "2016-12-10 08:25:54.969385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:25:54.971339"], ["updated_at", "2016-12-10 08:25:54.971339"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:25:54.973113"], ["updated_at", "2016-12-10 08:25:54.973113"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:25:54.974747"], ["updated_at", "2016-12-10 08:25:54.974747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 08:25:54.976278"], ["updated_at", "2016-12-10 08:25:54.976278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0014_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 08:25:54.983417"], ["updated_at", "2016-12-10 08:25:54.983417"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 08:25:54.984612"], ["updated_at", "2016-12-10 08:25:54.984612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:25:54.988074"], ["updated_at", "2016-12-10 08:25:54.988074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:25:54.989625"], ["updated_at", "2016-12-10 08:25:54.989625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:25:54.991119"], ["updated_at", "2016-12-10 08:25:54.991119"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:25:54.994674"], ["updated_at", "2016-12-10 08:25:54.994674"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:25:54.996992"], ["updated_at", "2016-12-10 08:25:54.996992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:25:54.999155"], ["updated_at", "2016-12-10 08:25:54.999155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 08:25:55.002612"], ["updated_at", "2016-12-10 08:25:55.002612"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 08:25:55.003720"], ["updated_at", "2016-12-10 08:25:55.003720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:25:55.006977"], ["updated_at", "2016-12-10 08:25:55.006977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 08:25:55.011763"], ["updated_at", "2016-12-10 08:25:55.011763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 267], ["created_at", "2016-12-10 08:25:55.013922"], ["updated_at", "2016-12-10 08:25:55.013922"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 267], ["created_at", "2016-12-10 08:25:55.016472"], ["updated_at", "2016-12-10 08:25:55.016472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 267], ["created_at", "2016-12-10 08:25:55.018559"], ["updated_at", "2016-12-10 08:25:55.018559"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 08:25:55.026788"], ["updated_at", "2016-12-10 08:25:55.026788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 08:25:55.028327"], ["updated_at", "2016-12-10 08:25:55.028327"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 08:25:55.029871"], ["updated_at", "2016-12-10 08:25:55.029871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0045_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0034_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:25:55.036237"], ["updated_at", "2016-12-10 08:25:55.036237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:25:55.039179"], ["updated_at", "2016-12-10 08:25:55.039179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 08:25:55.042076"], ["updated_at", "2016-12-10 08:25:55.042076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0025_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 08:25:55.050041"], ["updated_at", "2016-12-10 08:25:55.050041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 08:25:55.051733"], ["updated_at", "2016-12-10 08:25:55.051733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 08:25:55.053382"], ["updated_at", "2016-12-10 08:25:55.053382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 08:25:55.057116"], ["updated_at", "2016-12-10 08:25:55.057116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 08:25:55.058718"], ["updated_at", "2016-12-10 08:25:55.058718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 08:25:55.060210"], ["updated_at", "2016-12-10 08:25:55.060210"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 266]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 266]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 266]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 266]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 266]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 266]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 266]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 266]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:42:03.547193"], ["updated_at", "2016-12-10 14:42:03.547193"]]  (28.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 267], ["created_at", "2016-12-10 14:42:03.617231"], ["updated_at", "2016-12-10 14:42:03.617231"]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 267], ["created_at", "2016-12-10 14:42:03.647170"], ["updated_at", "2016-12-10 14:42:03.647170"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 267], ["created_at", "2016-12-10 14:42:03.674843"], ["updated_at", "2016-12-10 14:42:03.674843"]]  (19.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 267], ["updated_at", "2016-12-10 14:42:03.696868"], ["id", 267]]  (27.6ms) commit transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '20dfc342b9f8fd520f08e7602081e82f', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '08ddfcb34641e970baff2493d99cfb1c', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'e6c24ead9656fb66e8c872df74c05bbe', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'bb8096bd61640267001e7f23e918462e', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'ad82655f9ff44733c782bd82a665f963', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '20df2100b3279f13fbe8e15875ea9b1e', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'ce63ebeebc7494070e3f6dca233b4d1e', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '2c723f21abb73dbf1cb1741263c036ad', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd210f85e4484cf53e2141e9cd4b44ee8', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '2315d6bced36523300398b68a78b2de2', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '412bd217f84c1030211cda1e2cc786e1', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '853787ce1d4abbf89a4896331180b2dd', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0edc0f61bb710eeb5ddde9a1e1976560', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'faef46409680e57f120a95df6aa2cc5b', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '159b61ae8a4214df95d8abf5a2192807', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:42:03', '2016-12-10 14:42:03', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:42:03', '2016-12-10 14:42:03', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:42:03', '2016-12-10 14:42:03', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '239f89be619b97420a82b9bdfd33f4b6', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '52abdc531290c05a8c67d09a0959c15e', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'eed35c34d9bb23f747c51f9385b4b82b', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '06281af4c4898a18f6fcf6916fd2af74', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:42:03', '2016-12-10 14:42:03', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:42:03', '2016-12-10 14:42:03', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:42:03', '2016-12-10 14:42:03', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '71beb50936576c5ae20ce2d2274c1676', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0ed80505679283fa9f65700541dfd034', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '7d48b791a798a11f7c548db09cc49ad1', '2016-12-10 14:42:03', '2016-12-10 14:42:03', 410780858)  (23.4ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:42:03.876454"], ["updated_at", "2016-12-10 14:42:03.876454"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 14:42:03.879602"], ["updated_at", "2016-12-10 14:42:03.879602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:42:03.884154"], ["updated_at", "2016-12-10 14:42:03.884154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 14:42:03.886483"], ["updated_at", "2016-12-10 14:42:03.886483"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 14:42:03.889709"], ["updated_at", "2016-12-10 14:42:03.889709"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.3ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 267]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 267]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 267]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 267]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 267]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 267]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 267]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 267]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0009_#has_one_of Phone belongs to table as :phoneable -------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0047_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:42:04.138907"], ["updated_at", "2016-12-10 14:42:04.138907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:42:04.141018"], ["updated_at", "2016-12-10 14:42:04.141018"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:42:04.142637"], ["updated_at", "2016-12-10 14:42:04.142637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:42:04.144016"], ["updated_at", "2016-12-10 14:42:04.144016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:42:04.145411"], ["updated_at", "2016-12-10 14:42:04.145411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 14:42:04.146876"], ["updated_at", "2016-12-10 14:42:04.146876"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 14:42:04.151692"], ["updated_at", "2016-12-10 14:42:04.151692"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0045_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 14:42:04.159371"], ["updated_at", "2016-12-10 14:42:04.159371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 14:42:04.161267"], ["updated_at", "2016-12-10 14:42:04.161267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 14:42:04.162834"], ["updated_at", "2016-12-10 14:42:04.162834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:42:04.167209"], ["updated_at", "2016-12-10 14:42:04.167209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:42:04.168794"], ["updated_at", "2016-12-10 14:42:04.168794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:42:04.170246"], ["updated_at", "2016-12-10 14:42:04.170246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0049_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:42:04.174176"], ["updated_at", "2016-12-10 14:42:04.174176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:42:04.176590"], ["updated_at", "2016-12-10 14:42:04.176590"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:42:04.178939"], ["updated_at", "2016-12-10 14:42:04.178939"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 14:42:04.182647"], ["updated_at", "2016-12-10 14:42:04.182647"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 14:42:04.183732"], ["updated_at", "2016-12-10 14:42:04.183732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:42:04.187147"], ["updated_at", "2016-12-10 14:42:04.187147"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 14:42:04.201102"], ["updated_at", "2016-12-10 14:42:04.201102"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 14:42:04.202423"], ["updated_at", "2016-12-10 14:42:04.202423"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 14:42:04.203546"], ["updated_at", "2016-12-10 14:42:04.203546"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:42:04.221682"], ["updated_at", "2016-12-10 14:42:04.221682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:42:04.223340"], ["updated_at", "2016-12-10 14:42:04.223340"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:42:04.224834"], ["updated_at", "2016-12-10 14:42:04.224834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:42:04.226206"], ["updated_at", "2016-12-10 14:42:04.226206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:42:04.227663"], ["updated_at", "2016-12-10 14:42:04.227663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 14:42:04.229224"], ["updated_at", "2016-12-10 14:42:04.229224"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:42:04.232122"], ["updated_at", "2016-12-10 14:42:04.232122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:42:04.235622"], ["updated_at", "2016-12-10 14:42:04.235622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:42:04.237628"], ["updated_at", "2016-12-10 14:42:04.237628"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:42:04.239192"], ["updated_at", "2016-12-10 14:42:04.239192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:42:04.244675"], ["updated_at", "2016-12-10 14:42:04.244675"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:42:04.246313"], ["updated_at", "2016-12-10 14:42:04.246313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 14:42:04.247854"], ["updated_at", "2016-12-10 14:42:04.247854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 14:42:04.252326"], ["updated_at", "2016-12-10 14:42:04.252326"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0008_#has_one_of Phone belongs to table as :phoneable -------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:42:04.259708"], ["updated_at", "2016-12-10 14:42:04.259708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:42:04.263429"], ["updated_at", "2016-12-10 14:42:04.263429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 14:42:04.266338"], ["updated_at", "2016-12-10 14:42:04.266338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.4ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:42:04.273217"], ["updated_at", "2016-12-10 14:42:04.273217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 268], ["created_at", "2016-12-10 14:42:04.275312"], ["updated_at", "2016-12-10 14:42:04.275312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:42:04.278386"], ["updated_at", "2016-12-10 14:42:04.278386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:42:04.288363"], ["updated_at", "2016-12-10 14:42:04.288363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:42:04.289972"], ["updated_at", "2016-12-10 14:42:04.289972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:42:04.291456"], ["updated_at", "2016-12-10 14:42:04.291456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0010_#has_one_of Phone belongs to table as :phoneable -------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 14:42:04.302643"], ["updated_at", "2016-12-10 14:42:04.302643"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 14:42:04.303823"], ["updated_at", "2016-12-10 14:42:04.303823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0048_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 14:42:04.316168"], ["updated_at", "2016-12-10 14:42:04.316168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 14:42:04.317918"], ["updated_at", "2016-12-10 14:42:04.317918"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 14:42:04.319545"], ["updated_at", "2016-12-10 14:42:04.319545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0034_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:42:04.324012"], ["updated_at", "2016-12-10 14:42:04.324012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 268], ["created_at", "2016-12-10 14:42:04.326180"], ["updated_at", "2016-12-10 14:42:04.326180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 268], ["created_at", "2016-12-10 14:42:04.328330"], ["updated_at", "2016-12-10 14:42:04.328330"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 268], ["created_at", "2016-12-10 14:42:04.330422"], ["updated_at", "2016-12-10 14:42:04.330422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 268], ["updated_at", "2016-12-10 14:42:04.332000"], ["id", 268]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 268]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 268]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 268]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 268]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 268]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 268]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 268]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 268]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]]  (0.3ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:42:04.360314"], ["updated_at", "2016-12-10 14:42:04.360314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 268], ["created_at", "2016-12-10 14:42:04.362435"], ["updated_at", "2016-12-10 14:42:04.362435"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 268], ["created_at", "2016-12-10 14:42:04.364621"], ["updated_at", "2016-12-10 14:42:04.364621"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 268], ["created_at", "2016-12-10 14:42:04.366715"], ["updated_at", "2016-12-10 14:42:04.366715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]]  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:43:54.429511"], ["updated_at", "2016-12-10 14:43:54.429511"]]  (18.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 268], ["created_at", "2016-12-10 14:43:54.477174"], ["updated_at", "2016-12-10 14:43:54.477174"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 268], ["created_at", "2016-12-10 14:43:54.498420"], ["updated_at", "2016-12-10 14:43:54.498420"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 268], ["created_at", "2016-12-10 14:43:54.519387"], ["updated_at", "2016-12-10 14:43:54.519387"]]  (27.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 268], ["updated_at", "2016-12-10 14:43:54.549438"], ["id", 268]]  (25.6ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '1bce620260864862aad2bf17b122b018', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '40c6f34dabeff41b1ab89513c8d25288', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd6c47f54ad708b029466d09c8300adfd', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cfaeb5786356ef4301314f6653a317fe', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '281564ec5ffc44a0e3be4e0d3d5d8dac', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a39fef3380539ff12a4bf48e3a35803c', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'f0152424e1b7b7bfb3a4d6fb865381c0', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b0c2e3a26f233d8a8274fb626ab834ee', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '6eb32c150c93770ef9d6c76121dbc2fa', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'c9d10e58981820ac481238900a68fd91', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'aea9cbcb11f3c06fc269edf95e4d1578', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ee9bc62d97cdd9e7313188b6f36576ea', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '54f1ac7a5906ebf1119935c77fc1102b', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5ae8b874a72805f790a20309008338ee', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'baa63bf3ee51ceea0d4cab32ed3a7391', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:43:54', '2016-12-10 14:43:54', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:43:54', '2016-12-10 14:43:54', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:43:54', '2016-12-10 14:43:54', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e22d4b8193e7118bd9574d8be9027c88', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '638fed600076fa078926674dfbb622e5', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd3ccf365c54c9e0ea879b67a879cb6b9', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'c0dc0bee5d479fa713ac7b93d5cc7cd3', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:43:54', '2016-12-10 14:43:54', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:43:54', '2016-12-10 14:43:54', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:43:54', '2016-12-10 14:43:54', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '5dcdfa764fa97c8a3989a346ff92f5f8', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3c71060ed1d3bb4ca6532ebcfda13b47', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6dd5d66a95f315c4fdc72ebb7a3d8d4c', '2016-12-10 14:43:54', '2016-12-10 14:43:54', 410780858)  (22.2ms) commit transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.4ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 268]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 268]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 268]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 268]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 268]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 268]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 268]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 268]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:43:54.923680"], ["updated_at", "2016-12-10 14:43:54.923680"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 269], ["created_at", "2016-12-10 14:43:54.926032"], ["updated_at", "2016-12-10 14:43:54.926032"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:43:54.929620"], ["updated_at", "2016-12-10 14:43:54.929620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 14:43:54.942130"], ["updated_at", "2016-12-10 14:43:54.942130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:43:54.945520"], ["updated_at", "2016-12-10 14:43:54.945520"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:43:54.947083"], ["updated_at", "2016-12-10 14:43:54.947083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:43:54.948510"], ["updated_at", "2016-12-10 14:43:54.948510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:43:54.949868"], ["updated_at", "2016-12-10 14:43:54.949868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:43:54.951253"], ["updated_at", "2016-12-10 14:43:54.951253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 14:43:54.952635"], ["updated_at", "2016-12-10 14:43:54.952635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0048_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- PolyBelongsTo::Core: test_0009_#has_many_of -------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:43:54.967567"], ["updated_at", "2016-12-10 14:43:54.967567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:43:54.969113"], ["updated_at", "2016-12-10 14:43:54.969113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:43:54.970578"], ["updated_at", "2016-12-10 14:43:54.970578"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0045_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 14:43:54.974089"], ["updated_at", "2016-12-10 14:43:54.974089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 14:43:54.975885"], ["updated_at", "2016-12-10 14:43:54.975885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 14:43:54.977373"], ["updated_at", "2016-12-10 14:43:54.977373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:43:54.980857"], ["updated_at", "2016-12-10 14:43:54.980857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:43:54.982529"], ["updated_at", "2016-12-10 14:43:54.982529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 14:43:54.984111"], ["updated_at", "2016-12-10 14:43:54.984111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsTo::Core: test_0010_#habtm_of ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 14:43:54.991001"], ["updated_at", "2016-12-10 14:43:54.991001"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 14:43:54.992121"], ["updated_at", "2016-12-10 14:43:54.992121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:43:54.996588"], ["updated_at", "2016-12-10 14:43:54.996588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 269], ["created_at", "2016-12-10 14:43:54.998741"], ["updated_at", "2016-12-10 14:43:54.998741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 269], ["created_at", "2016-12-10 14:43:55.000821"], ["updated_at", "2016-12-10 14:43:55.000821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 269], ["created_at", "2016-12-10 14:43:55.002873"], ["updated_at", "2016-12-10 14:43:55.002873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0034_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:43:55.010870"], ["updated_at", "2016-12-10 14:43:55.010870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 269], ["created_at", "2016-12-10 14:43:55.012832"], ["updated_at", "2016-12-10 14:43:55.012832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 269], ["created_at", "2016-12-10 14:43:55.014965"], ["updated_at", "2016-12-10 14:43:55.014965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 269], ["created_at", "2016-12-10 14:43:55.016974"], ["updated_at", "2016-12-10 14:43:55.016974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 269], ["updated_at", "2016-12-10 14:43:55.018422"], ["id", 269]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 269]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 269]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 269]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 269]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 269]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 269]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 269]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 269]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 14:43:55.050060"], ["updated_at", "2016-12-10 14:43:55.050060"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0049_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:43:55.055416"], ["updated_at", "2016-12-10 14:43:55.055416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:43:55.057809"], ["updated_at", "2016-12-10 14:43:55.057809"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:43:55.059972"], ["updated_at", "2016-12-10 14:43:55.059972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 14:43:55.063468"], ["updated_at", "2016-12-10 14:43:55.063468"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 14:43:55.064575"], ["updated_at", "2016-12-10 14:43:55.064575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:43:55.067826"], ["updated_at", "2016-12-10 14:43:55.067826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 14:43:55.084612"], ["updated_at", "2016-12-10 14:43:55.084612"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 14:43:55.086355"], ["updated_at", "2016-12-10 14:43:55.086355"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 14:43:55.087645"], ["updated_at", "2016-12-10 14:43:55.087645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:43:55.104560"], ["updated_at", "2016-12-10 14:43:55.104560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:43:55.108465"], ["updated_at", "2016-12-10 14:43:55.108465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 14:43:55.111464"], ["updated_at", "2016-12-10 14:43:55.111464"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0047_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:43:55.114592"], ["updated_at", "2016-12-10 14:43:55.114592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:43:55.116177"], ["updated_at", "2016-12-10 14:43:55.116177"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:43:55.117618"], ["updated_at", "2016-12-10 14:43:55.117618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:43:55.119165"], ["updated_at", "2016-12-10 14:43:55.119165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:43:55.120667"], ["updated_at", "2016-12-10 14:43:55.120667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 14:43:55.122117"], ["updated_at", "2016-12-10 14:43:55.122117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 14:43:55.126313"], ["updated_at", "2016-12-10 14:43:55.126313"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 14:43:55.129171"], ["updated_at", "2016-12-10 14:43:55.129171"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 14:43:55.131529"], ["updated_at", "2016-12-10 14:43:55.131529"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:43:55.136329"], ["updated_at", "2016-12-10 14:43:55.136329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:43:55.137903"], ["updated_at", "2016-12-10 14:43:55.137903"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:43:55.139390"], ["updated_at", "2016-12-10 14:43:55.139390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:43:55.147669"], ["updated_at", "2016-12-10 14:43:55.147669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:43:55.149167"], ["updated_at", "2016-12-10 14:43:55.149167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:43:55.150646"], ["updated_at", "2016-12-10 14:43:55.150646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:43:55.155386"], ["updated_at", "2016-12-10 14:43:55.155386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0008_#has_one_of ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 14:43:55.173549"], ["updated_at", "2016-12-10 14:43:55.173549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:43:55.181232"], ["updated_at", "2016-12-10 14:43:55.181232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 14:43:55.183682"], ["updated_at", "2016-12-10 14:43:55.183682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.2ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:43:55.186919"], ["updated_at", "2016-12-10 14:43:55.186919"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 14:43:55.188462"], ["updated_at", "2016-12-10 14:43:55.188462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:44:33.272738"], ["updated_at", "2016-12-10 14:44:33.272738"]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 269], ["created_at", "2016-12-10 14:44:33.324652"], ["updated_at", "2016-12-10 14:44:33.324652"]]  (17.5ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 269], ["created_at", "2016-12-10 14:44:33.358772"], ["updated_at", "2016-12-10 14:44:33.358772"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 269], ["created_at", "2016-12-10 14:44:33.385806"], ["updated_at", "2016-12-10 14:44:33.385806"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 269], ["updated_at", "2016-12-10 14:44:33.400232"], ["id", 269]]  (12.7ms) commit transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'cdaac5ecd84fc124e82ba3fb33bd99be', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4abe2c4fddfac1790effedb1bf0378e2', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c2a24ac03a18a905b36f8724f18fdc50', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '632afd2c906a3a18218b879244cf3887', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5186d01dea395b6832e02ba6ddfde895', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c9f1c6fd14cb7f10595e925795284e2d', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd4e9d9b87e8f9803b266d96cdea06ecf', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '4dd0d407391213dbefe7f4da4e46788a', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '041abee971f77cb75f10f4815322cf6f', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'f661775ab629f56538a32a7d22c1999a', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '4365e71d22e22e5467f3f4fa6d53e8e1', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '675ca958b66621d84806a2ed9a3fa15c', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'a02dec75891c9b7dbf42b490f4471603', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a7eb29d38c8a331fcf059aea1d39bdc1', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3d1e7589a40d635c9473e8b9db1a3a11', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:44:33', '2016-12-10 14:44:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:44:33', '2016-12-10 14:44:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:44:33', '2016-12-10 14:44:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '3b92d3fe3d251421998bd20c358656f9', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '2c09e7d4e08c722069527f8c7dfe5fef', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '4278640e9ce6601eb5bc3eecf5da0456', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'bac8b5f3b3334ebd8bcd98fb551dec65', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:44:33', '2016-12-10 14:44:33', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:44:33', '2016-12-10 14:44:33', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:44:33', '2016-12-10 14:44:33', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'd56749351da03465956d2ec0cc5f76e5', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4cc679a6a1e1dd5674d60c6b845424b8', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '3a1af5c365f1d87816e2c25e6545fdf5', '2016-12-10 14:44:33', '2016-12-10 14:44:33', 410780858)  (13.8ms) commit transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0008_#has_one_of ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 14:44:33.559365"], ["updated_at", "2016-12-10 14:44:33.559365"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 14:44:33.560747"], ["updated_at", "2016-12-10 14:44:33.560747"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 14:44:33.578965"], ["updated_at", "2016-12-10 14:44:33.578965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 14:44:33.580826"], ["updated_at", "2016-12-10 14:44:33.580826"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 14:44:33.582528"], ["updated_at", "2016-12-10 14:44:33.582528"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:44:33.603011"], ["updated_at", "2016-12-10 14:44:33.603011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:44:33.604894"], ["updated_at", "2016-12-10 14:44:33.604894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:44:33.606360"], ["updated_at", "2016-12-10 14:44:33.606360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0045_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 14:44:33.611743"], ["updated_at", "2016-12-10 14:44:33.611743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 14:44:33.613431"], ["updated_at", "2016-12-10 14:44:33.613431"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 14:44:33.615055"], ["updated_at", "2016-12-10 14:44:33.615055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:44:33.621039"], ["updated_at", "2016-12-10 14:44:33.621039"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 270], ["created_at", "2016-12-10 14:44:33.623285"], ["updated_at", "2016-12-10 14:44:33.623285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 270], ["created_at", "2016-12-10 14:44:33.625414"], ["updated_at", "2016-12-10 14:44:33.625414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 270], ["created_at", "2016-12-10 14:44:33.627496"], ["updated_at", "2016-12-10 14:44:33.627496"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0049_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:44:33.637660"], ["updated_at", "2016-12-10 14:44:33.637660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:44:33.640149"], ["updated_at", "2016-12-10 14:44:33.640149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:44:33.642542"], ["updated_at", "2016-12-10 14:44:33.642542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 14:44:33.646135"], ["updated_at", "2016-12-10 14:44:33.646135"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 14:44:33.647222"], ["updated_at", "2016-12-10 14:44:33.647222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:44:33.650369"], ["updated_at", "2016-12-10 14:44:33.650369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:44:33.661077"], ["updated_at", "2016-12-10 14:44:33.661077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 14:44:33.669117"], ["updated_at", "2016-12-10 14:44:33.669117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 14:44:33.679370"], ["updated_at", "2016-12-10 14:44:33.679370"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 14:44:33.680991"], ["updated_at", "2016-12-10 14:44:33.680991"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 14:44:33.682123"], ["updated_at", "2016-12-10 14:44:33.682123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:44:33.698675"], ["updated_at", "2016-12-10 14:44:33.698675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:44:33.700340"], ["updated_at", "2016-12-10 14:44:33.700340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:44:33.701842"], ["updated_at", "2016-12-10 14:44:33.701842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:44:33.707292"], ["updated_at", "2016-12-10 14:44:33.707292"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:44:33.708886"], ["updated_at", "2016-12-10 14:44:33.708886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:44:33.710437"], ["updated_at", "2016-12-10 14:44:33.710437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:44:33.711895"], ["updated_at", "2016-12-10 14:44:33.711895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:44:33.713335"], ["updated_at", "2016-12-10 14:44:33.713335"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 14:44:33.715036"], ["updated_at", "2016-12-10 14:44:33.715036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0034_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:44:33.720288"], ["updated_at", "2016-12-10 14:44:33.720288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 270], ["created_at", "2016-12-10 14:44:33.722534"], ["updated_at", "2016-12-10 14:44:33.722534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 270], ["created_at", "2016-12-10 14:44:33.724711"], ["updated_at", "2016-12-10 14:44:33.724711"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 270], ["created_at", "2016-12-10 14:44:33.726752"], ["updated_at", "2016-12-10 14:44:33.726752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 270], ["updated_at", "2016-12-10 14:44:33.728238"], ["id", 270]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 270]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 270]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 270]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 270]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 270]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 270]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 270]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 270]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:44:33.756072"], ["updated_at", "2016-12-10 14:44:33.756072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 270], ["created_at", "2016-12-10 14:44:33.758222"], ["updated_at", "2016-12-10 14:44:33.758222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:44:33.761112"], ["updated_at", "2016-12-10 14:44:33.761112"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:44:33.764429"], ["updated_at", "2016-12-10 14:44:33.764429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:44:33.767408"], ["updated_at", "2016-12-10 14:44:33.767408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 14:44:33.770327"], ["updated_at", "2016-12-10 14:44:33.770327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsTo::Core: test_0010_#habtm_of ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:44:33.778107"], ["updated_at", "2016-12-10 14:44:33.778107"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:44:33.779812"], ["updated_at", "2016-12-10 14:44:33.779812"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:44:33.781293"], ["updated_at", "2016-12-10 14:44:33.781293"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PolyBelongsTo::Core: test_0009_#has_many_of -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0047_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:44:33.785252"], ["updated_at", "2016-12-10 14:44:33.785252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:44:33.786850"], ["updated_at", "2016-12-10 14:44:33.786850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:44:33.788350"], ["updated_at", "2016-12-10 14:44:33.788350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:44:33.789818"], ["updated_at", "2016-12-10 14:44:33.789818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:44:33.791269"], ["updated_at", "2016-12-10 14:44:33.791269"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 14:44:33.792723"], ["updated_at", "2016-12-10 14:44:33.792723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 14:44:33.797737"], ["updated_at", "2016-12-10 14:44:33.797737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:44:33.800821"], ["updated_at", "2016-12-10 14:44:33.800821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:44:33.802376"], ["updated_at", "2016-12-10 14:44:33.802376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 14:44:33.803925"], ["updated_at", "2016-12-10 14:44:33.803925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0048_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:44:33.941806"], ["updated_at", "2016-12-10 14:44:33.941806"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 14:44:33.944831"], ["updated_at", "2016-12-10 14:44:33.944831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:44:33.948158"], ["updated_at", "2016-12-10 14:44:33.948158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 14:44:33.949841"], ["updated_at", "2016-12-10 14:44:33.949841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 14:44:33.952915"], ["updated_at", "2016-12-10 14:44:33.952915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.1ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 269]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 269]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 269]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 269]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 269]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 269]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 269]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 269]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:45:26.707763"], ["updated_at", "2016-12-10 14:45:26.707763"]]  (26.5ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 270], ["created_at", "2016-12-10 14:45:26.761182"], ["updated_at", "2016-12-10 14:45:26.761182"]]  (12.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 270], ["created_at", "2016-12-10 14:45:26.790281"], ["updated_at", "2016-12-10 14:45:26.790281"]]  (35.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 270], ["created_at", "2016-12-10 14:45:26.845006"], ["updated_at", "2016-12-10 14:45:26.845006"]]  (22.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 270], ["updated_at", "2016-12-10 14:45:26.869525"], ["id", 270]]  (35.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0925b607bf3e09c1739967f4997ed0db', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '6cd11d38d4e7c983f50a9932967c6912', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '5ff1e9cc5bfa661a9d4da8eb77ed32fb', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '27887259d0a79d2700e3fd5c0d604c50', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4b5a057ec90666c38f75c658b71f9ded', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c110dcb81a1abd95a029a6530cc3207d', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '90c929471ca55987c26d3ddd35aecc5e', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '253c9c809b11e545f72251aa1c707603', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'd5469ed5c94e59cf1bcfe47f2f6eb28e', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'd43791aec69970cee0bc17a29240cf06', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '3653665d513b9297b1f9f727b3bae07c', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '4eedc050ae141286cff4d61f27311812', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'd33b83804e65e7a9a6b284ea58fa13af', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '62e91af8251f40f3acbfa0d8558f9bd4', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '4c8a754ed3b6fd3a88b6be71e7fe72c5', '2016-12-10 14:45:26', '2016-12-10 14:45:26', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:45:26', '2016-12-10 14:45:26', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:45:26', '2016-12-10 14:45:26', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:45:26', '2016-12-10 14:45:26', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 14:45:27', '2016-12-10 14:45:27', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '49539c48e3898681f1f2ad60debcb059', '2016-12-10 14:45:27', '2016-12-10 14:45:27', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '421e5543f056650f3a367f685bec894a', '2016-12-10 14:45:27', '2016-12-10 14:45:27', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '34b43d5fb73ac0982da855b2bad4f36c', '2016-12-10 14:45:27', '2016-12-10 14:45:27', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '069f886e65027a03d3f682475da1697c', '2016-12-10 14:45:27', '2016-12-10 14:45:27', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:45:27', '2016-12-10 14:45:27', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:45:27', '2016-12-10 14:45:27', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 14:45:27', '2016-12-10 14:45:27', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cade775a8177ad38274cde1c7fca777d', '2016-12-10 14:45:27', '2016-12-10 14:45:27', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b02ecffc9ae3108dca0bed07de912664', '2016-12-10 14:45:27', '2016-12-10 14:45:27', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '032c262358c26e6cd6cc2b63cdab069b', '2016-12-10 14:45:27', '2016-12-10 14:45:27', 410780858)  (25.9ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:45:27.209759"], ["updated_at", "2016-12-10 14:45:27.209759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 14:45:27.217049"], ["updated_at", "2016-12-10 14:45:27.217049"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.2ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:45:27.223050"], ["updated_at", "2016-12-10 14:45:27.223050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 14:45:27.225035"], ["updated_at", "2016-12-10 14:45:27.225035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 14:45:27.228225"], ["updated_at", "2016-12-10 14:45:27.228225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.1ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 270]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 270]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 270]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 270]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 270]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 270]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 270]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 270]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:45:27.315926"], ["updated_at", "2016-12-10 14:45:27.315926"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:45:27.317708"], ["updated_at", "2016-12-10 14:45:27.317708"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:45:27.319243"], ["updated_at", "2016-12-10 14:45:27.319243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:45:27.322331"], ["updated_at", "2016-12-10 14:45:27.322331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:45:27.323861"], ["updated_at", "2016-12-10 14:45:27.323861"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:45:27.325297"], ["updated_at", "2016-12-10 14:45:27.325297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:45:27.326712"], ["updated_at", "2016-12-10 14:45:27.326712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:45:27.328077"], ["updated_at", "2016-12-10 14:45:27.328077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 14:45:27.329468"], ["updated_at", "2016-12-10 14:45:27.329468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:45:27.338415"], ["updated_at", "2016-12-10 14:45:27.338415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 271], ["created_at", "2016-12-10 14:45:27.340597"], ["updated_at", "2016-12-10 14:45:27.340597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:45:27.343452"], ["updated_at", "2016-12-10 14:45:27.343452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 14:45:27.349684"], ["updated_at", "2016-12-10 14:45:27.349684"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 14:45:27.351015"], ["updated_at", "2016-12-10 14:45:27.351015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:45:27.354708"], ["updated_at", "2016-12-10 14:45:27.354708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:45:27.358281"], ["updated_at", "2016-12-10 14:45:27.358281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 14:45:27.361450"], ["updated_at", "2016-12-10 14:45:27.361450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0008_#has_one_of ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 14:45:27.367619"], ["updated_at", "2016-12-10 14:45:27.367619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 14:45:27.378834"], ["updated_at", "2016-12-10 14:45:27.378834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 14:45:27.380704"], ["updated_at", "2016-12-10 14:45:27.380704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 14:45:27.382272"], ["updated_at", "2016-12-10 14:45:27.382272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0034_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:45:27.386819"], ["updated_at", "2016-12-10 14:45:27.386819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 271], ["created_at", "2016-12-10 14:45:27.388866"], ["updated_at", "2016-12-10 14:45:27.388866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 271], ["created_at", "2016-12-10 14:45:27.391536"], ["updated_at", "2016-12-10 14:45:27.391536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 271], ["created_at", "2016-12-10 14:45:27.393725"], ["updated_at", "2016-12-10 14:45:27.393725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 271], ["updated_at", "2016-12-10 14:45:27.395229"], ["id", 271]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 271]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 271]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 271]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 271]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 271]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 271]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 271]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 271]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:45:27.422419"], ["updated_at", "2016-12-10 14:45:27.422419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:45:27.424030"], ["updated_at", "2016-12-10 14:45:27.424030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:45:27.425542"], ["updated_at", "2016-12-10 14:45:27.425542"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0048_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:45:27.432728"], ["updated_at", "2016-12-10 14:45:27.432728"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:45:27.434413"], ["updated_at", "2016-12-10 14:45:27.434413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 14:45:27.435925"], ["updated_at", "2016-12-10 14:45:27.435925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0047_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:45:27.438410"], ["updated_at", "2016-12-10 14:45:27.438410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:45:27.439967"], ["updated_at", "2016-12-10 14:45:27.439967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:45:27.441471"], ["updated_at", "2016-12-10 14:45:27.441471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:45:27.442946"], ["updated_at", "2016-12-10 14:45:27.442946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:45:27.444343"], ["updated_at", "2016-12-10 14:45:27.444343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 14:45:27.445718"], ["updated_at", "2016-12-10 14:45:27.445718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0045_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 14:45:27.449668"], ["updated_at", "2016-12-10 14:45:27.449668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 14:45:27.451405"], ["updated_at", "2016-12-10 14:45:27.451405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 14:45:27.452996"], ["updated_at", "2016-12-10 14:45:27.452996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:45:27.462971"], ["updated_at", "2016-12-10 14:45:27.462971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 271], ["created_at", "2016-12-10 14:45:27.465093"], ["updated_at", "2016-12-10 14:45:27.465093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 271], ["created_at", "2016-12-10 14:45:27.467216"], ["updated_at", "2016-12-10 14:45:27.467216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 271], ["created_at", "2016-12-10 14:45:27.469220"], ["updated_at", "2016-12-10 14:45:27.469220"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:45:27.477518"], ["updated_at", "2016-12-10 14:45:27.477518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 14:45:27.484577"], ["updated_at", "2016-12-10 14:45:27.484577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 14:45:27.486251"], ["updated_at", "2016-12-10 14:45:27.486251"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 14:45:27.487758"], ["updated_at", "2016-12-10 14:45:27.487758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0049_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 14:45:27.493417"], ["updated_at", "2016-12-10 14:45:27.493417"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 14:45:27.495787"], ["updated_at", "2016-12-10 14:45:27.495787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:45:27.497872"], ["updated_at", "2016-12-10 14:45:27.497872"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 14:45:27.501386"], ["updated_at", "2016-12-10 14:45:27.501386"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 14:45:27.502556"], ["updated_at", "2016-12-10 14:45:27.502556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 14:45:27.505720"], ["updated_at", "2016-12-10 14:45:27.505720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsTo::Core: test_0010_#habtm_of ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 14:45:27.515786"], ["updated_at", "2016-12-10 14:45:27.515786"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 14:45:27.516986"], ["updated_at", "2016-12-10 14:45:27.516986"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 14:45:27.518046"], ["updated_at", "2016-12-10 14:45:27.518046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PolyBelongsTo::Core: test_0009_#has_many_of -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 14:45:27.534566"], ["updated_at", "2016-12-10 14:45:27.534566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateAssemblies (20161210145334)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "assemblies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161210145334"]]  (28.3ms) commit transaction Migrating to CreateParts (20161210145355)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "parts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161210145355"]]  (33.5ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_alphas_on_delta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_alphas_on_delta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_beta_on_alpha_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_beta_on_alpha_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_capas_on_beta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_capas_on_beta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cars_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cars_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_contacts_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_delta_on_capa_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_delta_on_capa_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_events_on_work_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_events_on_work_order_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_geo_locations_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_geo_locations_on_address_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ssns_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ssns_on_user_id' AND type='index'  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_tags_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tags_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_tires_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tires_on_car_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_car_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_work_orders_on_big_company_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_work_orders_on_big_company_id' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateAssemblyPartJoinTable (20161210145757)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "assemblies_parts" ("assembly_id" integer NOT NULL, "part_id" integer NOT NULL)   (0.1ms) select sqlite_version(*)  (0.2ms) CREATE INDEX "index_assemblies_parts_on_assembly_id_and_part_id" ON "assemblies_parts" ("assembly_id", "part_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_assemblies_parts_on_assembly_id_and_part_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assemblies_parts_on_assembly_id_and_part_id' AND type='index'  (0.2ms) CREATE INDEX "index_assemblies_parts_on_part_id_and_assembly_id" ON "assemblies_parts" ("part_id", "assembly_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161210145757"]]  (16.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_alphas_on_delta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_alphas_on_delta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_assemblies_parts_on_part_id_and_assembly_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assemblies_parts_on_part_id_and_assembly_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_assemblies_parts_on_assembly_id_and_part_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assemblies_parts_on_assembly_id_and_part_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_beta_on_alpha_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_beta_on_alpha_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_capas_on_beta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_capas_on_beta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cars_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cars_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_contacts_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_delta_on_capa_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_delta_on_capa_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_events_on_work_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_events_on_work_order_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_geo_locations_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_geo_locations_on_address_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ssns_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ssns_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tags_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tags_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_tires_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tires_on_car_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_car_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_work_orders_on_big_company_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_work_orders_on_big_company_id' AND type='index' ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:02:14.898728"], ["updated_at", "2016-12-10 15:02:14.898728"]]  (16.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 271], ["created_at", "2016-12-10 15:02:14.952633"], ["updated_at", "2016-12-10 15:02:14.952633"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 271], ["created_at", "2016-12-10 15:02:14.978059"], ["updated_at", "2016-12-10 15:02:14.978059"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 271], ["created_at", "2016-12-10 15:02:15.005726"], ["updated_at", "2016-12-10 15:02:15.005726"]]  (31.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 271], ["updated_at", "2016-12-10 15:02:15.040247"], ["id", 271]]  (27.7ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '27c48ed938ca3071357c9a2ed9ccf788', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '198707a8fe9d6ba71fcc3ca2534ab32c', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '6e32a5a2e850658d967a7eaa7ba1c134', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '4d970696ae9fade4db08c39359e08bc0', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '049e0cd906385d6544bbc9323e72b618', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ce0c50d85f48a7661d7f37671eae97a9', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '04b5d1f20a5ac055c5a04aca607f2719', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '35c0f0ea503d0329e3ab2116d7feabc5', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '7acc5f4ec3af032accfe71f340062de5', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '889913a28ed606aa00c239e32af1006a', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'c412415e4d0222e238e129997fac355c', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'ce98b44e1091c6acfe08bc096ba496ca', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'ee036670d5d15efeb337123d77154c28', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '4ab9775074e9612c5b978d9eb4efb309', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '0a0e2f82756ef14aceb62b4761d2ee5f', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:02:15', '2016-12-10 15:02:15', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:02:15', '2016-12-10 15:02:15', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:02:15', '2016-12-10 15:02:15', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '90f3090aa8781b4938b671890118dfa2', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '67e416e5bfd6d42d995af9e466b7d004', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c2b8ba0ae398eafac8c8c32f5f74e6c2', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '3ce580e7c7eeef75e7fc49ebcf2afa15', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:02:15', '2016-12-10 15:02:15', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:02:15', '2016-12-10 15:02:15', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:02:15', '2016-12-10 15:02:15', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '109509869a525c61fd97f74560411a5b', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'da3b63b85517122b9bb9da0a409e9db5', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e277e3953c2cc8e9859dca4ae57a625a', '2016-12-10 15:02:15', '2016-12-10 15:02:15', 410780858)  (34.9ms) commit transaction  (0.2ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.4ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0034_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:02:15.218405"], ["updated_at", "2016-12-10 15:02:15.218405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 272], ["created_at", "2016-12-10 15:02:15.220716"], ["updated_at", "2016-12-10 15:02:15.220716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 272], ["created_at", "2016-12-10 15:02:15.222851"], ["updated_at", "2016-12-10 15:02:15.222851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 272], ["created_at", "2016-12-10 15:02:15.225030"], ["updated_at", "2016-12-10 15:02:15.225030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 272], ["updated_at", "2016-12-10 15:02:15.226531"], ["id", 272]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 272]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 272]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 272]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 272]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 272]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 272]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 272]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 272]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:02:15.278017"], ["updated_at", "2016-12-10 15:02:15.278017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:02:15.279842"], ["updated_at", "2016-12-10 15:02:15.279842"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:02:15.281362"], ["updated_at", "2016-12-10 15:02:15.281362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0008_#has_one_of ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:02:15.287176"], ["updated_at", "2016-12-10 15:02:15.287176"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:02:15.290637"], ["updated_at", "2016-12-10 15:02:15.290637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 15:02:15.293655"], ["updated_at", "2016-12-10 15:02:15.293655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:02:15.298102"], ["updated_at", "2016-12-10 15:02:15.298102"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:02:15.299706"], ["updated_at", "2016-12-10 15:02:15.299706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:02:15.301202"], ["updated_at", "2016-12-10 15:02:15.301202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:02:15.311349"], ["updated_at", "2016-12-10 15:02:15.311349"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:02:15.312727"], ["updated_at", "2016-12-10 15:02:15.312727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:02:15.316152"], ["updated_at", "2016-12-10 15:02:15.316152"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 272], ["created_at", "2016-12-10 15:02:15.318290"], ["updated_at", "2016-12-10 15:02:15.318290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 272], ["created_at", "2016-12-10 15:02:15.320416"], ["updated_at", "2016-12-10 15:02:15.320416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 272], ["created_at", "2016-12-10 15:02:15.322420"], ["updated_at", "2016-12-10 15:02:15.322420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0049_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:02:15.331379"], ["updated_at", "2016-12-10 15:02:15.331379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:02:15.333811"], ["updated_at", "2016-12-10 15:02:15.333811"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:02:15.336252"], ["updated_at", "2016-12-10 15:02:15.336252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:02:15.339743"], ["updated_at", "2016-12-10 15:02:15.339743"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:02:15.340826"], ["updated_at", "2016-12-10 15:02:15.340826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:02:15.344121"], ["updated_at", "2016-12-10 15:02:15.344121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:02:15.347130"], ["updated_at", "2016-12-10 15:02:15.347130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:02:15.348790"], ["updated_at", "2016-12-10 15:02:15.348790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:02:15.350260"], ["updated_at", "2016-12-10 15:02:15.350260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:02:15.356148"], ["updated_at", "2016-12-10 15:02:15.356148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PolyBelongsTo::Core: test_0009_#has_many_of -------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsTo::Core: test_0010_#habtm_of ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 15:02:15.384909"], ["updated_at", "2016-12-10 15:02:15.384909"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0045_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 15:02:15.397450"], ["updated_at", "2016-12-10 15:02:15.397450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 15:02:15.399203"], ["updated_at", "2016-12-10 15:02:15.399203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 15:02:15.400800"], ["updated_at", "2016-12-10 15:02:15.400800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:02:15.413374"], ["updated_at", "2016-12-10 15:02:15.413374"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 15:02:15.423602"], ["updated_at", "2016-12-10 15:02:15.423602"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 15:02:15.424858"], ["updated_at", "2016-12-10 15:02:15.424858"]] SQL (0.2ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 15:02:15.425979"], ["updated_at", "2016-12-10 15:02:15.425979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:02:15.443873"], ["updated_at", "2016-12-10 15:02:15.443873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:02:15.445575"], ["updated_at", "2016-12-10 15:02:15.445575"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:02:15.447237"], ["updated_at", "2016-12-10 15:02:15.447237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0048_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:02:15.452228"], ["updated_at", "2016-12-10 15:02:15.452228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 272], ["created_at", "2016-12-10 15:02:15.454553"], ["updated_at", "2016-12-10 15:02:15.454553"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:02:15.457906"], ["updated_at", "2016-12-10 15:02:15.457906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 15:02:15.461424"], ["updated_at", "2016-12-10 15:02:15.461424"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 15:02:15.463234"], ["updated_at", "2016-12-10 15:02:15.463234"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 15:02:15.465102"], ["updated_at", "2016-12-10 15:02:15.465102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:02:15.468443"], ["updated_at", "2016-12-10 15:02:15.468443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:02:15.470012"], ["updated_at", "2016-12-10 15:02:15.470012"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:02:15.471515"], ["updated_at", "2016-12-10 15:02:15.471515"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:02:15.472993"], ["updated_at", "2016-12-10 15:02:15.472993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:02:15.474471"], ["updated_at", "2016-12-10 15:02:15.474471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:02:15.475913"], ["updated_at", "2016-12-10 15:02:15.475913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0047_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:02:15.482015"], ["updated_at", "2016-12-10 15:02:15.482015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:02:15.483582"], ["updated_at", "2016-12-10 15:02:15.483582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:02:15.485133"], ["updated_at", "2016-12-10 15:02:15.485133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:02:15.486630"], ["updated_at", "2016-12-10 15:02:15.486630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:02:15.488060"], ["updated_at", "2016-12-10 15:02:15.488060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:02:15.489450"], ["updated_at", "2016-12-10 15:02:15.489450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------- PartTest: test_valid --------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 271]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 271]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 271]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 271]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 271]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 271]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 271]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 271]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 15:02:15.696988"], ["updated_at", "2016-12-10 15:02:15.696988"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.0ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:02:15.704633"], ["updated_at", "2016-12-10 15:02:15.704633"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:02:15.707400"], ["updated_at", "2016-12-10 15:02:15.707400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:02:15.710440"], ["updated_at", "2016-12-10 15:02:15.710440"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:02:15.712451"], ["updated_at", "2016-12-10 15:02:15.712451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ AssemblyTest: test_valid ------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateHmtAssemblies (20161210150330)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "hmt_assemblies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161210150330"]]  (18.9ms) commit transaction Migrating to CreateHmtParts (20161210150343)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "hmt_parts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20161210150343"]]  (12.5ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_addresses_on_addressable_id_and_addressable_type' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_alphas_on_delta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_alphas_on_delta_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_assemblies_parts_on_part_id_and_assembly_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assemblies_parts_on_part_id_and_assembly_id' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_assemblies_parts_on_assembly_id_and_part_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_assemblies_parts_on_assembly_id_and_part_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_beta_on_alpha_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_beta_on_alpha_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_capas_on_beta_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_capas_on_beta_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_cars_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_cars_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_coffees_on_coffeeable_type_and_coffeeable_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_contactable_type_and_contactable_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_contacts_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_contacts_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_delta_on_capa_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_delta_on_capa_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_events_on_work_order_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_events_on_work_order_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_geo_locations_on_address_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_geo_locations_on_address_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_phones_on_phoneable_id_and_phoneable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_photos_on_photoable_id_and_photoable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_profiles_on_profileable_id_and_profileable_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_squishies_on_squishable_id_and_squishable_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_ssns_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_ssns_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tags_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tags_on_user_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_tires_on_user_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_user_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_tires_on_car_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_tires_on_car_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_work_orders_on_big_company_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_work_orders_on_big_company_id' AND type='index' ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:08:08.271243"], ["updated_at", "2016-12-10 15:08:08.271243"]]  (18.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 272], ["created_at", "2016-12-10 15:08:08.317071"], ["updated_at", "2016-12-10 15:08:08.317071"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 272], ["created_at", "2016-12-10 15:08:08.346189"], ["updated_at", "2016-12-10 15:08:08.346189"]]  (12.4ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 272], ["created_at", "2016-12-10 15:08:08.374965"], ["updated_at", "2016-12-10 15:08:08.374965"]]  (26.3ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 272], ["updated_at", "2016-12-10 15:08:08.404337"], ["id", 272]]  (29.5ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '632cfc4678eb07d49eeedd1718ba4607', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '5071f2a1ab8677951d7172ee9c2228fb', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '41686cae8aa2db82bd8d9bda6be8b3ee', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5e5f8ce026a1f543c2879c65edb6225f', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e09ee5e14f526e2e98d7a7d3d862ba82', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '842ba178d04f46120c913fa1ff8a5133', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'bf980794300d070ae3ae270cfdd5adce', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '10a086dee563258f9781d5e6b20560ce', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '98d894024b8b10ecf6cbb5dec8650f25', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '77a13e8cb28a3d1730151cad90def95c', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'fca32cd2889485abd4b15d7c07941627', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '8283a6ef2b984f228a8ccae8c7a7adb0', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '815194afd46097ebefceb80d8590dd47', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e3d393663b8ad8ed5e5508246e0ca0f1', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '994e56cf73f9b251777cc34724f54673', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:08:08', '2016-12-10 15:08:08', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:08:08', '2016-12-10 15:08:08', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:08:08', '2016-12-10 15:08:08', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c86d1d921aa6a673fd214e1b093a503a', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '0b6b1b883a411d0097544a4a59a9871a', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b00c7b2f22c883ce52ccb8a0d57f62a4', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'ad52f2a0ff8bb1a8265ad606a125bbd3', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:08:08', '2016-12-10 15:08:08', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:08:08', '2016-12-10 15:08:08', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:08:08', '2016-12-10 15:08:08', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'cced4868e7e49d184547a99f37d3d939', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '77c36472253365bc9626873f251fc17e', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '230ebab15fad7233a49f98dd0943d110', '2016-12-10 15:08:08', '2016-12-10 15:08:08', 410780858)  (29.8ms) commit transaction  (0.2ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 272]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 272]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 272]] Beta Load (0.2ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 272]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 272]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 272]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 272]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 272]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:08:08.714230"], ["updated_at", "2016-12-10 15:08:08.714230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:08:08.720782"], ["updated_at", "2016-12-10 15:08:08.720782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:08:08.724292"], ["updated_at", "2016-12-10 15:08:08.724292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:08:08.725892"], ["updated_at", "2016-12-10 15:08:08.725892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 15:08:08.728688"], ["updated_at", "2016-12-10 15:08:08.728688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------- HmtPartTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- HmtAssemblyTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:08:08.847116"], ["updated_at", "2016-12-10 15:08:08.847116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:08:08.848912"], ["updated_at", "2016-12-10 15:08:08.848912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:08:08.850406"], ["updated_at", "2016-12-10 15:08:08.850406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:08:08.854944"], ["updated_at", "2016-12-10 15:08:08.854944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:08:08.856472"], ["updated_at", "2016-12-10 15:08:08.856472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:08:08.857951"], ["updated_at", "2016-12-10 15:08:08.857951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0008_#has_one_of ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:08:08.861254"], ["updated_at", "2016-12-10 15:08:08.861254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:08:08.862800"], ["updated_at", "2016-12-10 15:08:08.862800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:08:08.864525"], ["updated_at", "2016-12-10 15:08:08.864525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0049_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:08:08.870615"], ["updated_at", "2016-12-10 15:08:08.870615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:08:08.873077"], ["updated_at", "2016-12-10 15:08:08.873077"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:08:08.875594"], ["updated_at", "2016-12-10 15:08:08.875594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:08:08.879141"], ["updated_at", "2016-12-10 15:08:08.879141"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:08:08.880471"], ["updated_at", "2016-12-10 15:08:08.880471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:08:08.884554"], ["updated_at", "2016-12-10 15:08:08.884554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:08:08.895805"], ["updated_at", "2016-12-10 15:08:08.895805"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:08:08.900241"], ["updated_at", "2016-12-10 15:08:08.900241"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:08:08.901736"], ["updated_at", "2016-12-10 15:08:08.901736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:08:08.903291"], ["updated_at", "2016-12-10 15:08:08.903291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:08:08.908322"], ["updated_at", "2016-12-10 15:08:08.908322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 15:08:08.916851"], ["updated_at", "2016-12-10 15:08:08.916851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:08:08.920901"], ["updated_at", "2016-12-10 15:08:08.920901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 273], ["created_at", "2016-12-10 15:08:08.923191"], ["updated_at", "2016-12-10 15:08:08.923191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 273], ["created_at", "2016-12-10 15:08:08.925321"], ["updated_at", "2016-12-10 15:08:08.925321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 273], ["created_at", "2016-12-10 15:08:08.927370"], ["updated_at", "2016-12-10 15:08:08.927370"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:08:08.942514"], ["updated_at", "2016-12-10 15:08:08.942514"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 273], ["created_at", "2016-12-10 15:08:08.944798"], ["updated_at", "2016-12-10 15:08:08.944798"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:08:08.947740"], ["updated_at", "2016-12-10 15:08:08.947740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 15:08:08.950873"], ["updated_at", "2016-12-10 15:08:08.950873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 15:08:08.952584"], ["updated_at", "2016-12-10 15:08:08.952584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 15:08:08.954204"], ["updated_at", "2016-12-10 15:08:08.954204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0045_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 15:08:08.957490"], ["updated_at", "2016-12-10 15:08:08.957490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 15:08:08.959082"], ["updated_at", "2016-12-10 15:08:08.959082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 15:08:08.960979"], ["updated_at", "2016-12-10 15:08:08.960979"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:08:08.966937"], ["updated_at", "2016-12-10 15:08:08.966937"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:08:08.968158"], ["updated_at", "2016-12-10 15:08:08.968158"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsTo::Core: test_0010_#habtm_of ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:08:08.989409"], ["updated_at", "2016-12-10 15:08:08.989409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:08:08.991157"], ["updated_at", "2016-12-10 15:08:08.991157"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:08:08.993122"], ["updated_at", "2016-12-10 15:08:08.993122"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:08:08.994856"], ["updated_at", "2016-12-10 15:08:08.994856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:08:08.996534"], ["updated_at", "2016-12-10 15:08:08.996534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:08:08.998416"], ["updated_at", "2016-12-10 15:08:08.998416"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0034_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:08:09.003285"], ["updated_at", "2016-12-10 15:08:09.003285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 273], ["created_at", "2016-12-10 15:08:09.005460"], ["updated_at", "2016-12-10 15:08:09.005460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 273], ["created_at", "2016-12-10 15:08:09.007542"], ["updated_at", "2016-12-10 15:08:09.007542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 273], ["created_at", "2016-12-10 15:08:09.009715"], ["updated_at", "2016-12-10 15:08:09.009715"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 273], ["updated_at", "2016-12-10 15:08:09.011457"], ["id", 273]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 273]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 273]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 273]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 273]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 273]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 273]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 273]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 273]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]]  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:08:09.039222"], ["updated_at", "2016-12-10 15:08:09.039222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:08:09.042414"], ["updated_at", "2016-12-10 15:08:09.042414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 15:08:09.045353"], ["updated_at", "2016-12-10 15:08:09.045353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PolyBelongsTo::Core: test_0009_#has_many_of -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0047_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:08:09.052079"], ["updated_at", "2016-12-10 15:08:09.052079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:08:09.053575"], ["updated_at", "2016-12-10 15:08:09.053575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:08:09.055089"], ["updated_at", "2016-12-10 15:08:09.055089"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:08:09.056631"], ["updated_at", "2016-12-10 15:08:09.056631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:08:09.058254"], ["updated_at", "2016-12-10 15:08:09.058254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:08:09.059888"], ["updated_at", "2016-12-10 15:08:09.059888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0048_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 15:08:09.082382"], ["updated_at", "2016-12-10 15:08:09.082382"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 15:08:09.083660"], ["updated_at", "2016-12-10 15:08:09.083660"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 15:08:09.084733"], ["updated_at", "2016-12-10 15:08:09.084733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------- PartTest: test_valid --------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ AssemblyTest: test_valid ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:09:00.388360"], ["updated_at", "2016-12-10 15:09:00.388360"]]  (13.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 273], ["created_at", "2016-12-10 15:09:00.430710"], ["updated_at", "2016-12-10 15:09:00.430710"]]  (19.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 273], ["created_at", "2016-12-10 15:09:00.467422"], ["updated_at", "2016-12-10 15:09:00.467422"]]  (28.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 273], ["created_at", "2016-12-10 15:09:00.508124"], ["updated_at", "2016-12-10 15:09:00.508124"]]  (34.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 273], ["updated_at", "2016-12-10 15:09:00.544942"], ["id", 273]]  (32.0ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '83144c42783683f352fa8921b2d53a78', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'e0ccaf2a25a55cb5d283954d01c24e24', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '778cecb028ab3ea3bf35f0b836dc0671', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2ce8645b372c27a17cfded001ddadf82', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'af171b98454fdcf62aa901d06d8a28f7', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '02914c34a5d2ad447262dd6a0ae3dd7a', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'd550bdc88e892eb7e92fac5b815b5bb2', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'd4401034f410e0f00a234f6e42a40487', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '1afb6daf83d7cb282a36ca1bc1e0e386', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '080c071f6a0c407cbaaa4bc4a1ea8f22', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '09fd5a59e1d51d735f4ef84f9e7d436b', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'c8dcdc6988b3db9bc29babc3ef691080', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '411c010ecef73b79f0f7a6872b445876', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '948bab506e01780871091d8e4cf7df1f', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a424b58b2bda73074245147b00e48ce2', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:09:00', '2016-12-10 15:09:00', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:09:00', '2016-12-10 15:09:00', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:09:00', '2016-12-10 15:09:00', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '7ee04760d4751ddf50653a31ebc38743', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '09815a688ac64bf5690612e3ee996f07', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '032f39083e2fc89e3e2f8c8b4e3bafca', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '4efdaaf93cc15cb13cd42775dc75ec9c', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:09:00', '2016-12-10 15:09:00', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:09:00', '2016-12-10 15:09:00', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:09:00', '2016-12-10 15:09:00', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'c762a67c86cce54a648c3370e18bee4f', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8a0522d745c1b24ce1da3689f2edbbf2', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '6c00faf69256c563403981b15f937879', '2016-12-10 15:09:00', '2016-12-10 15:09:00', 410780858)  (32.6ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.4ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 273]] Alpha Load (0.3ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 273]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 273]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 273]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 273]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 273]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 273]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 273]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.2ms) begin transaction ----------------------- HmtPartTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AssemblyTest: test_valid ------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:09:00.930285"], ["updated_at", "2016-12-10 15:09:00.930285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:09:00.933400"], ["updated_at", "2016-12-10 15:09:00.933400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:09:00.937643"], ["updated_at", "2016-12-10 15:09:00.937643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:09:00.939374"], ["updated_at", "2016-12-10 15:09:00.939374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 15:09:00.942484"], ["updated_at", "2016-12-10 15:09:00.942484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------- PartTest: test_valid --------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- HmtAssemblyTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:09:00.971479"], ["updated_at", "2016-12-10 15:09:00.971479"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 274], ["created_at", "2016-12-10 15:09:00.974232"], ["updated_at", "2016-12-10 15:09:00.974232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 274], ["created_at", "2016-12-10 15:09:00.976605"], ["updated_at", "2016-12-10 15:09:00.976605"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 274], ["created_at", "2016-12-10 15:09:00.979455"], ["updated_at", "2016-12-10 15:09:00.979455"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]]  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:09:00.996866"], ["updated_at", "2016-12-10 15:09:00.996866"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:09:00.999270"], ["updated_at", "2016-12-10 15:09:00.999270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:09:01.001471"], ["updated_at", "2016-12-10 15:09:01.001471"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:09:01.014425"], ["updated_at", "2016-12-10 15:09:01.014425"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:09:01.015780"], ["updated_at", "2016-12-10 15:09:01.015780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 15:09:01.019564"], ["updated_at", "2016-12-10 15:09:01.019564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 15:09:01.030955"], ["updated_at", "2016-12-10 15:09:01.030955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 15:09:01.032798"], ["updated_at", "2016-12-10 15:09:01.032798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 15:09:01.034472"], ["updated_at", "2016-12-10 15:09:01.034472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0048_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0008_#has_one_of ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0034_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:09:01.039469"], ["updated_at", "2016-12-10 15:09:01.039469"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 274], ["created_at", "2016-12-10 15:09:01.042160"], ["updated_at", "2016-12-10 15:09:01.042160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 274], ["created_at", "2016-12-10 15:09:01.044295"], ["updated_at", "2016-12-10 15:09:01.044295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 274], ["created_at", "2016-12-10 15:09:01.046297"], ["updated_at", "2016-12-10 15:09:01.046297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 274], ["updated_at", "2016-12-10 15:09:01.047826"], ["id", 274]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 274]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 274]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 274]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 274]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 274]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 274]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 274]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 274]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:09:01.077483"], ["updated_at", "2016-12-10 15:09:01.077483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:09:01.079158"], ["updated_at", "2016-12-10 15:09:01.079158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:09:01.080710"], ["updated_at", "2016-12-10 15:09:01.080710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:09:01.085873"], ["updated_at", "2016-12-10 15:09:01.085873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:09:01.087507"], ["updated_at", "2016-12-10 15:09:01.087507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:09:01.088985"], ["updated_at", "2016-12-10 15:09:01.088985"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:09:01.092839"], ["updated_at", "2016-12-10 15:09:01.092839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 15:09:01.108060"], ["updated_at", "2016-12-10 15:09:01.108060"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 15:09:01.109358"], ["updated_at", "2016-12-10 15:09:01.109358"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 15:09:01.110490"], ["updated_at", "2016-12-10 15:09:01.110490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.3ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.2ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0047_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:09:01.131469"], ["updated_at", "2016-12-10 15:09:01.131469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:09:01.133222"], ["updated_at", "2016-12-10 15:09:01.133222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:09:01.134784"], ["updated_at", "2016-12-10 15:09:01.134784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:09:01.136378"], ["updated_at", "2016-12-10 15:09:01.136378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:09:01.137942"], ["updated_at", "2016-12-10 15:09:01.137942"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:09:01.139544"], ["updated_at", "2016-12-10 15:09:01.139544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- PolyBelongsTo::Core: test_0009_#has_many_of -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0049_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:09:01.144493"], ["updated_at", "2016-12-10 15:09:01.144493"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:09:01.146896"], ["updated_at", "2016-12-10 15:09:01.146896"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:09:01.149187"], ["updated_at", "2016-12-10 15:09:01.149187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:09:01.152637"], ["updated_at", "2016-12-10 15:09:01.152637"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:09:01.153758"], ["updated_at", "2016-12-10 15:09:01.153758"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:09:01.156965"], ["updated_at", "2016-12-10 15:09:01.156965"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:09:01.168825"], ["updated_at", "2016-12-10 15:09:01.168825"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 274], ["created_at", "2016-12-10 15:09:01.171352"], ["updated_at", "2016-12-10 15:09:01.171352"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:09:01.174434"], ["updated_at", "2016-12-10 15:09:01.174434"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsTo::Core: test_0010_#habtm_of ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:09:01.186668"], ["updated_at", "2016-12-10 15:09:01.186668"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:09:01.190165"], ["updated_at", "2016-12-10 15:09:01.190165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:09:01.192001"], ["updated_at", "2016-12-10 15:09:01.192001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:09:01.193622"], ["updated_at", "2016-12-10 15:09:01.193622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:09:01.201718"], ["updated_at", "2016-12-10 15:09:01.201718"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:09:01.203396"], ["updated_at", "2016-12-10 15:09:01.203396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:09:01.204873"], ["updated_at", "2016-12-10 15:09:01.204873"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:09:01.206273"], ["updated_at", "2016-12-10 15:09:01.206273"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:09:01.207990"], ["updated_at", "2016-12-10 15:09:01.207990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:09:01.209433"], ["updated_at", "2016-12-10 15:09:01.209433"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0045_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 15:09:01.213000"], ["updated_at", "2016-12-10 15:09:01.213000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 15:09:01.214847"], ["updated_at", "2016-12-10 15:09:01.214847"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 15:09:01.216458"], ["updated_at", "2016-12-10 15:09:01.216458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:09:01.223423"], ["updated_at", "2016-12-10 15:09:01.223423"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:09:01.227109"], ["updated_at", "2016-12-10 15:09:01.227109"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 15:09:01.232015"], ["updated_at", "2016-12-10 15:09:01.232015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:18:31.657173"], ["updated_at", "2016-12-10 15:18:31.657173"]]  (23.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 274], ["created_at", "2016-12-10 15:18:31.710834"], ["updated_at", "2016-12-10 15:18:31.710834"]]  (27.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 274], ["created_at", "2016-12-10 15:18:31.754541"], ["updated_at", "2016-12-10 15:18:31.754541"]]  (16.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 274], ["created_at", "2016-12-10 15:18:31.788629"], ["updated_at", "2016-12-10 15:18:31.788629"]]  (23.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 274], ["updated_at", "2016-12-10 15:18:31.815438"], ["id", 274]]  (31.0ms) commit transaction  (0.1ms) begin transaction -------------------- PartTest: test_valid --------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.2ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '2804dad51064eba7c807187c24b0d7ce', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '8a901f3aa932ef92ff22e8314467200d', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'c0d772fe567a846b108ad902a7239440', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '23c025ca05913a18e0fdd4f01d5870a0', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'a2fce32a497eec08af69381611351b05', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '2aa0495ba8b282f63ef68c64fc35fab8', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'a4ba8962f8b0640896bf65b4c4ef7d92', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'b229b23b90ddff3480e016f96e08759c', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', 'a5452c9ec0fceca36f872b1fb52ebacc', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'abe6a8a9946891044f09861aa490f30a', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'f9c4db58429a819f8d418f804698bb8f', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '6f94d21aae9c4f5113bb587b54c0c60f', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '76425156b12e9fccdff0e35742b10e42', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '554d939e8abb0ab4d002a75fb57efac5', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '3fea271d704b5e13def3b633003af645', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:18:31', '2016-12-10 15:18:31', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:18:31', '2016-12-10 15:18:31', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:18:31', '2016-12-10 15:18:31', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '018eef4bead044c20e6283638830d35e', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'ea6da13366fb1e0ab23dbb69bee9545d', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'e2984d7b52dbc3a222ebe6750d06a20b', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '1542ecbc573a0a49d873773d1575e225', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:18:31', '2016-12-10 15:18:31', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:18:31', '2016-12-10 15:18:31', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:18:31', '2016-12-10 15:18:31', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ee174afc85efa84a5290dd6a6df91105', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '1f8e39f4e53c23691124b12e0113ec36', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '020c0096b65c79d3acefa805248b8c2c', '2016-12-10 15:18:31', '2016-12-10 15:18:31', 410780858)  (27.3ms) commit transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.3ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- HmtPartTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- HmtAssemblyTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 274]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 274]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 274]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 274]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 274]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 274]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 274]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 274]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:18:32.154330"], ["updated_at", "2016-12-10 15:18:32.154330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:18:32.160933"], ["updated_at", "2016-12-10 15:18:32.160933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:18:32.164762"], ["updated_at", "2016-12-10 15:18:32.164762"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:18:32.166564"], ["updated_at", "2016-12-10 15:18:32.166564"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 15:18:32.169430"], ["updated_at", "2016-12-10 15:18:32.169430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.1ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.2ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0015_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_Reflects & ReflectsAsClasses accept boolean for HABTM -----------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AssemblyTest: test_valid ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:18:32.239256"], ["updated_at", "2016-12-10 15:18:32.239256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:18:32.241139"], ["updated_at", "2016-12-10 15:18:32.241139"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:18:32.242752"], ["updated_at", "2016-12-10 15:18:32.242752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:18:32.245923"], ["updated_at", "2016-12-10 15:18:32.245923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:18:32.247503"], ["updated_at", "2016-12-10 15:18:32.247503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:18:32.248998"], ["updated_at", "2016-12-10 15:18:32.248998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 15:18:32.264005"], ["updated_at", "2016-12-10 15:18:32.264005"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.2ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:18:32.272747"], ["updated_at", "2016-12-10 15:18:32.272747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 275], ["created_at", "2016-12-10 15:18:32.275096"], ["updated_at", "2016-12-10 15:18:32.275096"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:18:32.278260"], ["updated_at", "2016-12-10 15:18:32.278260"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 15:18:32.292328"], ["updated_at", "2016-12-10 15:18:32.292328"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 15:18:32.293656"], ["updated_at", "2016-12-10 15:18:32.293656"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 15:18:32.294751"], ["updated_at", "2016-12-10 15:18:32.294751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:18:32.311505"], ["updated_at", "2016-12-10 15:18:32.311505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:18:32.313386"], ["updated_at", "2016-12-10 15:18:32.313386"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:18:32.314996"], ["updated_at", "2016-12-10 15:18:32.314996"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0045_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 15:18:32.321561"], ["updated_at", "2016-12-10 15:18:32.321561"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 15:18:32.323360"], ["updated_at", "2016-12-10 15:18:32.323360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 15:18:32.324919"], ["updated_at", "2016-12-10 15:18:32.324919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:18:32.336888"], ["updated_at", "2016-12-10 15:18:32.336888"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:18:32.338588"], ["updated_at", "2016-12-10 15:18:32.338588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:18:32.340155"], ["updated_at", "2016-12-10 15:18:32.340155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:18:32.341616"], ["updated_at", "2016-12-10 15:18:32.341616"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:18:32.343183"], ["updated_at", "2016-12-10 15:18:32.343183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:18:32.344643"], ["updated_at", "2016-12-10 15:18:32.344643"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:18:32.349970"], ["updated_at", "2016-12-10 15:18:32.349970"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 275], ["created_at", "2016-12-10 15:18:32.352550"], ["updated_at", "2016-12-10 15:18:32.352550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 275], ["created_at", "2016-12-10 15:18:32.354735"], ["updated_at", "2016-12-10 15:18:32.354735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 275], ["created_at", "2016-12-10 15:18:32.356845"], ["updated_at", "2016-12-10 15:18:32.356845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:18:32.369002"], ["updated_at", "2016-12-10 15:18:32.369002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:18:32.370721"], ["updated_at", "2016-12-10 15:18:32.370721"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:18:32.372305"], ["updated_at", "2016-12-10 15:18:32.372305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 15:18:32.375250"], ["updated_at", "2016-12-10 15:18:32.375250"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 15:18:32.376932"], ["updated_at", "2016-12-10 15:18:32.376932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 15:18:32.378548"], ["updated_at", "2016-12-10 15:18:32.378548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsTo::Core: test_0010_#habtm_of ----------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:18:32.384462"], ["updated_at", "2016-12-10 15:18:32.384462"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:18:32.385785"], ["updated_at", "2016-12-10 15:18:32.385785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- PolyBelongsTo::Core: test_0009_#has_many_of -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:18:32.393106"], ["updated_at", "2016-12-10 15:18:32.393106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:18:32.398051"], ["updated_at", "2016-12-10 15:18:32.398051"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 15:18:32.402938"], ["updated_at", "2016-12-10 15:18:32.402938"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:18:32.407884"], ["updated_at", "2016-12-10 15:18:32.407884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0047_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:18:32.413186"], ["updated_at", "2016-12-10 15:18:32.413186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:18:32.414979"], ["updated_at", "2016-12-10 15:18:32.414979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:18:32.416582"], ["updated_at", "2016-12-10 15:18:32.416582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:18:32.418031"], ["updated_at", "2016-12-10 15:18:32.418031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:18:32.419538"], ["updated_at", "2016-12-10 15:18:32.419538"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:18:32.421029"], ["updated_at", "2016-12-10 15:18:32.421029"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0034_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:18:32.423691"], ["updated_at", "2016-12-10 15:18:32.423691"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 275], ["created_at", "2016-12-10 15:18:32.425817"], ["updated_at", "2016-12-10 15:18:32.425817"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 275], ["created_at", "2016-12-10 15:18:32.427990"], ["updated_at", "2016-12-10 15:18:32.427990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 275], ["created_at", "2016-12-10 15:18:32.430235"], ["updated_at", "2016-12-10 15:18:32.430235"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 275], ["updated_at", "2016-12-10 15:18:32.431852"], ["id", 275]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 275]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 275]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 275]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 275]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 275]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 275]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 275]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 275]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0048_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0049_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:18:32.468150"], ["updated_at", "2016-12-10 15:18:32.468150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:18:32.470784"], ["updated_at", "2016-12-10 15:18:32.470784"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:18:32.473049"], ["updated_at", "2016-12-10 15:18:32.473049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:18:32.476610"], ["updated_at", "2016-12-10 15:18:32.476610"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:18:32.477783"], ["updated_at", "2016-12-10 15:18:32.477783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:18:32.481117"], ["updated_at", "2016-12-10 15:18:32.481117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0008_#has_one_of ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:18:32.492344"], ["updated_at", "2016-12-10 15:18:32.492344"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:12.979830"], ["updated_at", "2016-12-10 15:19:12.979830"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 275], ["created_at", "2016-12-10 15:19:13.020048"], ["updated_at", "2016-12-10 15:19:13.020048"]]  (17.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 275], ["created_at", "2016-12-10 15:19:13.050103"], ["updated_at", "2016-12-10 15:19:13.050103"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 275], ["created_at", "2016-12-10 15:19:13.079009"], ["updated_at", "2016-12-10 15:19:13.079009"]]  (12.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 275], ["updated_at", "2016-12-10 15:19:13.093838"], ["id", 275]]  (12.4ms) commit transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- HmtPartTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '19ca1a4656be1d3375e9ce878287c20e', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'aed9529ba6ca810b2745933379bcd7f5', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'd8445d0840cef7ea389b1c2d0bbcd4ea', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '0f68468e79877ec10aea632047e5270e', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '60f5956cd1f7d98a709652dd44843af6', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '9a6891b2554c21b4f1e45551328d2463', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '2a4cff8a9a1f2e4283b59e1d9dbde5f8', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f1b37d0dd08c084c0e5890793ff2ffb4', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '20c8c246fa659e3ac87be6279509703a', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '65c1b7891e091790b03c03a2c249a407', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'd8189677c88b4a720b4d7cc86178d7de', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'e17203d8295b732bfd321552763b8c2d', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '605be7a4246a2fe1543e73497905ee8a', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '01ea5d46cc39985d1f394739a77ba165', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'a45458fe68a8ad9e8850c7faa9db1e7c', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:19:13', '2016-12-10 15:19:13', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:19:13', '2016-12-10 15:19:13', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:19:13', '2016-12-10 15:19:13', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (6.5ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '57d7a8db73f91d98822f80534ee19cec', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, 'b193538361c0ba33446c2bddc11eca36', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '73e66c87261fc0627006ee919b5da336', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '24abfce2757ab9bf21df6001fde38f7a', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:19:13', '2016-12-10 15:19:13', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:19:13', '2016-12-10 15:19:13', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:19:13', '2016-12-10 15:19:13', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'e625f7eb07998fdfeb99be6261b3252a', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '950ff7b48fa7df98f68b137c208e6009', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'd6253d1ec45616da75a133fa82851c8b', '2016-12-10 15:19:13', '2016-12-10 15:19:13', 410780858)  (13.4ms) commit transaction  (0.2ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 275]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 275]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 275]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 275]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 275]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 275]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 275]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 275]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------ AssemblyTest: test_valid ------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_Reflects & ReflectsAsClasses accept boolean for HABTM -----------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0015_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------- HmtAssemblyTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:13.468347"], ["updated_at", "2016-12-10 15:19:13.468347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:19:13.471132"], ["updated_at", "2016-12-10 15:19:13.471132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 15:19:13.474705"], ["updated_at", "2016-12-10 15:19:13.474705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:13.483266"], ["updated_at", "2016-12-10 15:19:13.483266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:19:13.485400"], ["updated_at", "2016-12-10 15:19:13.485400"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------- PartTest: test_valid --------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:13.551315"], ["updated_at", "2016-12-10 15:19:13.551315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:19:13.553961"], ["updated_at", "2016-12-10 15:19:13.553961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:19:13.558071"], ["updated_at", "2016-12-10 15:19:13.558071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 15:19:13.561360"], ["updated_at", "2016-12-10 15:19:13.561360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:13.569583"], ["updated_at", "2016-12-10 15:19:13.569583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 276], ["created_at", "2016-12-10 15:19:13.571923"], ["updated_at", "2016-12-10 15:19:13.571923"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:19:13.575681"], ["updated_at", "2016-12-10 15:19:13.575681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:19:13.579154"], ["updated_at", "2016-12-10 15:19:13.579154"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:19:13.580796"], ["updated_at", "2016-12-10 15:19:13.580796"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:19:13.582743"], ["updated_at", "2016-12-10 15:19:13.582743"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 15:19:13.587053"], ["updated_at", "2016-12-10 15:19:13.587053"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 15:19:13.589210"], ["updated_at", "2016-12-10 15:19:13.589210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 15:19:13.590857"], ["updated_at", "2016-12-10 15:19:13.590857"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.2ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:19:13.598742"], ["updated_at", "2016-12-10 15:19:13.598742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:19:13.600357"], ["updated_at", "2016-12-10 15:19:13.600357"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:19:13.601962"], ["updated_at", "2016-12-10 15:19:13.601962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0049_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:19:13.607733"], ["updated_at", "2016-12-10 15:19:13.607733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:19:13.610316"], ["updated_at", "2016-12-10 15:19:13.610316"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:13.612806"], ["updated_at", "2016-12-10 15:19:13.612806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:19:13.616490"], ["updated_at", "2016-12-10 15:19:13.616490"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:19:13.617673"], ["updated_at", "2016-12-10 15:19:13.617673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:13.622066"], ["updated_at", "2016-12-10 15:19:13.622066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:19:13.627272"], ["updated_at", "2016-12-10 15:19:13.627272"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:19:13.628552"], ["updated_at", "2016-12-10 15:19:13.628552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 15:19:13.636182"], ["updated_at", "2016-12-10 15:19:13.636182"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 15:19:13.646682"], ["updated_at", "2016-12-10 15:19:13.646682"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 15:19:13.647932"], ["updated_at", "2016-12-10 15:19:13.647932"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 15:19:13.649117"], ["updated_at", "2016-12-10 15:19:13.649117"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsTo::Core: test_0010_#habtm_of ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:19:13.672488"], ["updated_at", "2016-12-10 15:19:13.672488"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:19:13.674302"], ["updated_at", "2016-12-10 15:19:13.674302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:19:13.676174"], ["updated_at", "2016-12-10 15:19:13.676174"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:19:13.677758"], ["updated_at", "2016-12-10 15:19:13.677758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:19:13.679358"], ["updated_at", "2016-12-10 15:19:13.679358"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:19:13.680961"], ["updated_at", "2016-12-10 15:19:13.680961"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0045_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 15:19:13.691557"], ["updated_at", "2016-12-10 15:19:13.691557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 15:19:13.693285"], ["updated_at", "2016-12-10 15:19:13.693285"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 15:19:13.694923"], ["updated_at", "2016-12-10 15:19:13.694923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0048_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:19:13.700804"], ["updated_at", "2016-12-10 15:19:13.700804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:19:13.702513"], ["updated_at", "2016-12-10 15:19:13.702513"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:19:13.704076"], ["updated_at", "2016-12-10 15:19:13.704076"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:19:13.707017"], ["updated_at", "2016-12-10 15:19:13.707017"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:19:13.708766"], ["updated_at", "2016-12-10 15:19:13.708766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:19:13.710360"], ["updated_at", "2016-12-10 15:19:13.710360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:13.713019"], ["updated_at", "2016-12-10 15:19:13.713019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 276], ["created_at", "2016-12-10 15:19:13.715580"], ["updated_at", "2016-12-10 15:19:13.715580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 276], ["created_at", "2016-12-10 15:19:13.718050"], ["updated_at", "2016-12-10 15:19:13.718050"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 276], ["created_at", "2016-12-10 15:19:13.721268"], ["updated_at", "2016-12-10 15:19:13.721268"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------- PolyBelongsTo::Core: test_0009_#has_many_of -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0047_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:19:13.736232"], ["updated_at", "2016-12-10 15:19:13.736232"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:19:13.737902"], ["updated_at", "2016-12-10 15:19:13.737902"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:19:13.739549"], ["updated_at", "2016-12-10 15:19:13.739549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:19:13.741028"], ["updated_at", "2016-12-10 15:19:13.741028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:19:13.742576"], ["updated_at", "2016-12-10 15:19:13.742576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:19:13.744112"], ["updated_at", "2016-12-10 15:19:13.744112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0034_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:13.752422"], ["updated_at", "2016-12-10 15:19:13.752422"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 276], ["created_at", "2016-12-10 15:19:13.754626"], ["updated_at", "2016-12-10 15:19:13.754626"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 276], ["created_at", "2016-12-10 15:19:13.756800"], ["updated_at", "2016-12-10 15:19:13.756800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 276], ["created_at", "2016-12-10 15:19:13.758959"], ["updated_at", "2016-12-10 15:19:13.758959"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 276], ["updated_at", "2016-12-10 15:19:13.760638"], ["id", 276]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 276]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 276]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 276]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 276]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 276]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 276]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 276]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 276]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]]  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:19:13.797666"], ["updated_at", "2016-12-10 15:19:13.797666"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0008_#has_one_of ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:33.402895"], ["updated_at", "2016-12-10 15:19:33.402895"]]  (23.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 276], ["created_at", "2016-12-10 15:19:33.455131"], ["updated_at", "2016-12-10 15:19:33.455131"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 276], ["created_at", "2016-12-10 15:19:33.482725"], ["updated_at", "2016-12-10 15:19:33.482725"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 276], ["created_at", "2016-12-10 15:19:33.506094"], ["updated_at", "2016-12-10 15:19:33.506094"]]  (38.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 276], ["updated_at", "2016-12-10 15:19:33.546884"], ["id", 276]]  (31.1ms) commit transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f4c80ccf40254adc05565498cc77ca87', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f8ba914e6e203871ccf42d163ab621e3', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'ccfee32644c2561cbc1aac1424854675', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '740cf332f47f8c8155e256e74dd2d507', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'daf5c948d6acf7bdab9028bdd277d98c', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f8780173dd737dd68311b8d35eb0598f', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '16e072a27c975ba3a87e3af6c2988efb', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', '242fcc58b57f37fdab0fbc2383bb81df', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '402f4a61084c2ffc8bd77a2dddcac3ab', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'b2a14e5ed347b4190451dd3b37be6f9a', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, '5db642cfa81a9fea6bdc7405aa543bf4', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '7bb1e275686856f2e09d903a3594d445', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '9245dda5209faa94a90e1d163cbe0194', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '33a36c374328d786bcb700e598b98cfc', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '834c91ad8df2143e8b94a60946cebafb', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:19:33', '2016-12-10 15:19:33', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:19:33', '2016-12-10 15:19:33', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:19:33', '2016-12-10 15:19:33', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'a88b1bd0e2df58cf169c906925998c20', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '8f4a2f11899e004f2a2c37a1e39a7268', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'a3ecd95a3c9d02ded035deb6af447209', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '9915f808fa2c7594832352863db5c85a', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:19:33', '2016-12-10 15:19:33', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:19:33', '2016-12-10 15:19:33', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:19:33', '2016-12-10 15:19:33', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '228289ad92512615fa6f9b13f59fa1e0', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '860330b950e79aa7876f9209ef018138', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '8eaf2eb68bdd69c9132b6013e1e1209b', '2016-12-10 15:19:33', '2016-12-10 15:19:33', 410780858)  (26.6ms) commit transaction  (0.2ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 276]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 276]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 276]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 276]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 276]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 276]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 276]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 276]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- HmtAssemblyTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.0ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0015_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_Reflects & ReflectsAsClasses accept boolean for HABTM -----------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:19:33.910041"], ["updated_at", "2016-12-10 15:19:33.910041"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:19:33.916802"], ["updated_at", "2016-12-10 15:19:33.916802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:19:33.918580"], ["updated_at", "2016-12-10 15:19:33.918580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:19:33.920096"], ["updated_at", "2016-12-10 15:19:33.920096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0034_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:33.924470"], ["updated_at", "2016-12-10 15:19:33.924470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 277], ["created_at", "2016-12-10 15:19:33.926576"], ["updated_at", "2016-12-10 15:19:33.926576"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 277], ["created_at", "2016-12-10 15:19:33.928738"], ["updated_at", "2016-12-10 15:19:33.928738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 277], ["created_at", "2016-12-10 15:19:33.930743"], ["updated_at", "2016-12-10 15:19:33.930743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 277], ["updated_at", "2016-12-10 15:19:33.932171"], ["id", 277]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 277]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 277]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 277]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 277]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 277]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 277]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 277]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 277]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 15:19:33.975172"], ["updated_at", "2016-12-10 15:19:33.975172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PolyBelongsTo::Core: test_0009_#has_many_of -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:19:33.983032"], ["updated_at", "2016-12-10 15:19:33.983032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:19:33.984679"], ["updated_at", "2016-12-10 15:19:33.984679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:19:33.986135"], ["updated_at", "2016-12-10 15:19:33.986135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0045_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 15:19:33.996876"], ["updated_at", "2016-12-10 15:19:33.996876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 15:19:33.998642"], ["updated_at", "2016-12-10 15:19:33.998642"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 15:19:34.000206"], ["updated_at", "2016-12-10 15:19:34.000206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------- PolyBelongsTo::Core: test_0010_#habtm_of ----------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0047_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:19:34.009308"], ["updated_at", "2016-12-10 15:19:34.009308"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:19:34.010909"], ["updated_at", "2016-12-10 15:19:34.010909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:19:34.012378"], ["updated_at", "2016-12-10 15:19:34.012378"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:19:34.013781"], ["updated_at", "2016-12-10 15:19:34.013781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:19:34.015217"], ["updated_at", "2016-12-10 15:19:34.015217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:19:34.016589"], ["updated_at", "2016-12-10 15:19:34.016589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:19:34.023641"], ["updated_at", "2016-12-10 15:19:34.023641"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:19:34.024955"], ["updated_at", "2016-12-10 15:19:34.024955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0048_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:19:34.030890"], ["updated_at", "2016-12-10 15:19:34.030890"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:19:34.036779"], ["updated_at", "2016-12-10 15:19:34.036779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 15:19:34.040164"], ["updated_at", "2016-12-10 15:19:34.040164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0049_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:19:34.043598"], ["updated_at", "2016-12-10 15:19:34.043598"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:19:34.046214"], ["updated_at", "2016-12-10 15:19:34.046214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:34.048930"], ["updated_at", "2016-12-10 15:19:34.048930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:19:34.052328"], ["updated_at", "2016-12-10 15:19:34.052328"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:19:34.053420"], ["updated_at", "2016-12-10 15:19:34.053420"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:34.056536"], ["updated_at", "2016-12-10 15:19:34.056536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:19:34.059193"], ["updated_at", "2016-12-10 15:19:34.059193"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:19:34.060709"], ["updated_at", "2016-12-10 15:19:34.060709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:19:34.062224"], ["updated_at", "2016-12-10 15:19:34.062224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:19:34.063765"], ["updated_at", "2016-12-10 15:19:34.063765"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:19:34.065170"], ["updated_at", "2016-12-10 15:19:34.065170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:19:34.066614"], ["updated_at", "2016-12-10 15:19:34.066614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.2ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 15:19:34.084485"], ["updated_at", "2016-12-10 15:19:34.084485"]] SQL (0.2ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 15:19:34.085870"], ["updated_at", "2016-12-10 15:19:34.085870"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 15:19:34.086950"], ["updated_at", "2016-12-10 15:19:34.086950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0008_#has_one_of ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:19:34.103508"], ["updated_at", "2016-12-10 15:19:34.103508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:19:34.105103"], ["updated_at", "2016-12-10 15:19:34.105103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:19:34.106623"], ["updated_at", "2016-12-10 15:19:34.106623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:34.109302"], ["updated_at", "2016-12-10 15:19:34.109302"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 277], ["created_at", "2016-12-10 15:19:34.111438"], ["updated_at", "2016-12-10 15:19:34.111438"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 277], ["created_at", "2016-12-10 15:19:34.113512"], ["updated_at", "2016-12-10 15:19:34.113512"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 277], ["created_at", "2016-12-10 15:19:34.115623"], ["updated_at", "2016-12-10 15:19:34.115623"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]]  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:19:34.127827"], ["updated_at", "2016-12-10 15:19:34.127827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:19:34.129935"], ["updated_at", "2016-12-10 15:19:34.129935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:19:34.131630"], ["updated_at", "2016-12-10 15:19:34.131630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 15:19:34.138349"], ["updated_at", "2016-12-10 15:19:34.138349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 15:19:34.140072"], ["updated_at", "2016-12-10 15:19:34.140072"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 15:19:34.141607"], ["updated_at", "2016-12-10 15:19:34.141607"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:34.150599"], ["updated_at", "2016-12-10 15:19:34.150599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 277], ["created_at", "2016-12-10 15:19:34.152735"], ["updated_at", "2016-12-10 15:19:34.152735"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:19:34.155622"], ["updated_at", "2016-12-10 15:19:34.155622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:34.159889"], ["updated_at", "2016-12-10 15:19:34.159889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:34.171624"], ["updated_at", "2016-12-10 15:19:34.171624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:19:34.175462"], ["updated_at", "2016-12-10 15:19:34.175462"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:19:34.179229"], ["updated_at", "2016-12-10 15:19:34.179229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:19:34.180898"], ["updated_at", "2016-12-10 15:19:34.180898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 15:19:34.183804"], ["updated_at", "2016-12-10 15:19:34.183804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.2ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.3ms) rollback transaction  (0.1ms) begin transaction -------------------- PartTest: test_valid --------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------- HmtPartTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.2ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------ AssemblyTest: test_valid ------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:23:44.537516"], ["updated_at", "2016-12-10 15:23:44.537516"]]  (12.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 277], ["created_at", "2016-12-10 15:23:44.579163"], ["updated_at", "2016-12-10 15:23:44.579163"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 277], ["created_at", "2016-12-10 15:23:44.609056"], ["updated_at", "2016-12-10 15:23:44.609056"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 277], ["created_at", "2016-12-10 15:23:44.633226"], ["updated_at", "2016-12-10 15:23:44.633226"]]  (12.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 277], ["updated_at", "2016-12-10 15:23:44.647316"], ["id", 277]]  (17.0ms) commit transaction  (0.1ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------- PartTest: test_valid --------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '6d0c8d846ee2d8eacc696ff598d3d56e', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '499ff8dc58daa6c25018c06e6138d43d', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '68762e30f753ed108a908ff129778490', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'fb6b744441967c6dd9b7e5452c699714', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'cbf401679ccd80e341aacd0ba052ec99', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'f923a37a4894fab4778fcf1941c79c99', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', 'c38160059e15297fe3b8d734fd2cf344', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f5dba5fae2d9321452d7bf132911c4b3', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '9e06e43106457d9bc3549dcbe4fa936f', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 966629572) Fixture Delete (0.1ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, '133266faf70a3706e08434f9e42a778a', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'caa39f40e8ba7bfe6e5af73ac8cda663', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, '64934ca9fbe11eff3b6a4f49088ad792', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '22b3dd298669d2cb095a1bb8e40f3c89', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '7f3bd317af0f29fd9c65acdb0e8fdba6', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '733abd6d3530baf6f8e2da2937897f2e', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:23:44', '2016-12-10 15:23:44', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:23:44', '2016-12-10 15:23:44', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:23:44', '2016-12-10 15:23:44', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '21195d43ba1dd6c89d4a1be9cf5dbf36', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '3dc0642edfed72e271b74905abd75b14', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'c407ba4e68ba93ce203df19db9b6e33c', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', '6e015e603cb3a33ec0f3c336b64ffe92', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:23:44', '2016-12-10 15:23:44', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:23:44', '2016-12-10 15:23:44', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:23:44', '2016-12-10 15:23:44', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'de1b9eec55c688de5de0b8806624198d', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '55ec62589b7bbe5ad849b977ed58ea61', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, '883baf8aa1df0e0fc77c4f3833e5fddf', '2016-12-10 15:23:44', '2016-12-10 15:23:44', 410780858)  (13.2ms) commit transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 277]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 277]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 277]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 277]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 277]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 277]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 277]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 277]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0015_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.2ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_Reflects & ReflectsAsClasses accept boolean for HABTM -----------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:23:44.909132"], ["updated_at", "2016-12-10 15:23:44.909132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:23:44.911682"], ["updated_at", "2016-12-10 15:23:44.911682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 15:23:44.915000"], ["updated_at", "2016-12-10 15:23:44.915000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:23:44.922990"], ["updated_at", "2016-12-10 15:23:44.922990"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:23:44.924624"], ["updated_at", "2016-12-10 15:23:44.924624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ AssemblyTest: test_valid ------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------- HmtPartTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------- HmtAssemblyTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.2ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:23:45.090809"], ["updated_at", "2016-12-10 15:23:45.090809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:23:45.094858"], ["updated_at", "2016-12-10 15:23:45.094858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 15:23:45.098203"], ["updated_at", "2016-12-10 15:23:45.098203"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 15:23:45.106234"], ["updated_at", "2016-12-10 15:23:45.106234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 15:23:45.108086"], ["updated_at", "2016-12-10 15:23:45.108086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 15:23:45.109662"], ["updated_at", "2016-12-10 15:23:45.109662"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 15:23:45.128966"], ["updated_at", "2016-12-10 15:23:45.128966"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 15:23:45.130363"], ["updated_at", "2016-12-10 15:23:45.130363"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 15:23:45.131468"], ["updated_at", "2016-12-10 15:23:45.131468"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.2ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.1ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:23:45.155270"], ["updated_at", "2016-12-10 15:23:45.155270"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:23:45.156964"], ["updated_at", "2016-12-10 15:23:45.156964"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:23:45.158522"], ["updated_at", "2016-12-10 15:23:45.158522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:23:45.162657"], ["updated_at", "2016-12-10 15:23:45.162657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:23:45.164177"], ["updated_at", "2016-12-10 15:23:45.164177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:23:45.165646"], ["updated_at", "2016-12-10 15:23:45.165646"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:23:45.167135"], ["updated_at", "2016-12-10 15:23:45.167135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:23:45.168548"], ["updated_at", "2016-12-10 15:23:45.168548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:23:45.170029"], ["updated_at", "2016-12-10 15:23:45.170029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0049_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:23:45.179480"], ["updated_at", "2016-12-10 15:23:45.179480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:23:45.181813"], ["updated_at", "2016-12-10 15:23:45.181813"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:23:45.184169"], ["updated_at", "2016-12-10 15:23:45.184169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:23:45.187777"], ["updated_at", "2016-12-10 15:23:45.187777"]] SQL (0.2ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:23:45.189179"], ["updated_at", "2016-12-10 15:23:45.189179"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:23:45.193012"], ["updated_at", "2016-12-10 15:23:45.193012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:23:45.195751"], ["updated_at", "2016-12-10 15:23:45.195751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:23:45.197323"], ["updated_at", "2016-12-10 15:23:45.197323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:23:45.198893"], ["updated_at", "2016-12-10 15:23:45.198893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:23:45.205519"], ["updated_at", "2016-12-10 15:23:45.205519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 278], ["created_at", "2016-12-10 15:23:45.207853"], ["updated_at", "2016-12-10 15:23:45.207853"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:23:45.210899"], ["updated_at", "2016-12-10 15:23:45.210899"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0034_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:23:45.213839"], ["updated_at", "2016-12-10 15:23:45.213839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 278], ["created_at", "2016-12-10 15:23:45.215955"], ["updated_at", "2016-12-10 15:23:45.215955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 278], ["created_at", "2016-12-10 15:23:45.218116"], ["updated_at", "2016-12-10 15:23:45.218116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 278], ["created_at", "2016-12-10 15:23:45.220254"], ["updated_at", "2016-12-10 15:23:45.220254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 278], ["updated_at", "2016-12-10 15:23:45.221740"], ["id", 278]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 278]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 278]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 278]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 278]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 278]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 278]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 278]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 278]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:23:45.251322"], ["updated_at", "2016-12-10 15:23:45.251322"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:23:45.252992"], ["updated_at", "2016-12-10 15:23:45.252992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:23:45.254518"], ["updated_at", "2016-12-10 15:23:45.254518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:23:45.262261"], ["updated_at", "2016-12-10 15:23:45.262261"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:23:45.265532"], ["updated_at", "2016-12-10 15:23:45.265532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:23:45.267099"], ["updated_at", "2016-12-10 15:23:45.267099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:23:45.268589"], ["updated_at", "2016-12-10 15:23:45.268589"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 15:23:45.273113"], ["updated_at", "2016-12-10 15:23:45.273113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0045_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 15:23:45.275752"], ["updated_at", "2016-12-10 15:23:45.275752"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 15:23:45.277738"], ["updated_at", "2016-12-10 15:23:45.277738"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 15:23:45.279388"], ["updated_at", "2016-12-10 15:23:45.279388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0047_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:23:45.282831"], ["updated_at", "2016-12-10 15:23:45.282831"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:23:45.284402"], ["updated_at", "2016-12-10 15:23:45.284402"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:23:45.285930"], ["updated_at", "2016-12-10 15:23:45.285930"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:23:45.287522"], ["updated_at", "2016-12-10 15:23:45.287522"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:23:45.288975"], ["updated_at", "2016-12-10 15:23:45.288975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:23:45.290385"], ["updated_at", "2016-12-10 15:23:45.290385"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0008_#has_one_of ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0048_keeps helper methods private -----------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsTo::Core: test_0010_#habtm_of ----------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:23:45.299161"], ["updated_at", "2016-12-10 15:23:45.299161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 278], ["created_at", "2016-12-10 15:23:45.301324"], ["updated_at", "2016-12-10 15:23:45.301324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 278], ["created_at", "2016-12-10 15:23:45.303645"], ["updated_at", "2016-12-10 15:23:45.303645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 278], ["created_at", "2016-12-10 15:23:45.305725"], ["updated_at", "2016-12-10 15:23:45.305725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:23:45.314085"], ["updated_at", "2016-12-10 15:23:45.314085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PolyBelongsTo::Core: test_0009_#has_many_of -------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:23:45.322037"], ["updated_at", "2016-12-10 15:23:45.322037"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:23:45.323216"], ["updated_at", "2016-12-10 15:23:45.323216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:28:17.713359"], ["updated_at", "2016-12-10 15:28:17.713359"]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 278], ["created_at", "2016-12-10 15:28:17.752146"], ["updated_at", "2016-12-10 15:28:17.752146"]]  (12.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 278], ["created_at", "2016-12-10 15:28:17.776265"], ["updated_at", "2016-12-10 15:28:17.776265"]]  (11.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 278], ["created_at", "2016-12-10 15:28:17.803372"], ["updated_at", "2016-12-10 15:28:17.803372"]]  (12.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 278], ["updated_at", "2016-12-10 15:28:17.817425"], ["id", 278]]  (12.5ms) commit transaction  (0.1ms) begin transaction -------------------------- BigCompanyTest: test_valid --------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction Fixture Delete (0.1ms) DELETE FROM "squishies" Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 576421514, 'Address', 761411935) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 458139734, 'GeoLocation', 343404421) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 396855775, 'Address', 1057142427) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 783441669, 'GeoLocation', 102195269) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 106545386, 'Address', 633598004) Fixture Insert (0.1ms) INSERT INTO "squishies" ("content", "created_at", "updated_at", "id", "squishable_type", "squishable_id") VALUES ('Squishy', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 1061951038, 'GeoLocation', 483796712) Fixture Delete (0.1ms) DELETE FROM "addresses" Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', '5d14943ace12e4bbf9d16452e58fb978', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 761411935) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', 'f4ad4d93e840e26a24ada8a83730ea4a', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 1057142427) Fixture Insert (0.1ms) INSERT INTO "addresses" ("addressable_id", "addressable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'dadb8a2d33880f1edd60bf268ef477c2', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 633598004) Fixture Delete (0.1ms) DELETE FROM "photos" Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'f62de1e2d39145774ec3bfb8ddab34d4', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 775134066) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '2737d5fea4bf17b028521c2ccd8a13ab', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 971855462) Fixture Insert (0.1ms) INSERT INTO "photos" ("photoable_id", "photoable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', 'accb0b6a0da7b7d6e0c5492ac77bb3ce', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 1032612456) Fixture Delete (0.1ms) DELETE FROM "profiles" Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 'User', '33cc0bfd5aef691c3f863821c878c10c', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 261299535) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (380377255, 'User', 'f378084fa1e1cc27b06d86f247ae35f0', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 478996145) Fixture Insert (0.1ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "content", "created_at", "updated_at", "id") VALUES (619379998, 'User', '2a1b0f0260ff75fdcd428908457c4a91', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 966629572) Fixture Delete (0.2ms) DELETE FROM "tires" Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 438300604, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 51822084, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 873565849, 336964236, 849808553) Fixture Insert (0.1ms) INSERT INTO "tires" ("content", "created_at", "updated_at", "id", "user_id", "car_id") VALUES ('MyString', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 712317748, 336964236, 849808553) Fixture Delete (0.1ms) DELETE FROM "geo_locations" Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (761411935, 'bffde0b4d23a64d2044a2cd81e3bd3ae', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 343404421) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (1057142427, 'bfe72212cd778d7b345484abd0e02501', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 102195269) Fixture Insert (0.1ms) INSERT INTO "geo_locations" ("address_id", "content", "created_at", "updated_at", "id") VALUES (633598004, 'f17fc3c01f5eb5a607f4fec03eb06632', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 483796712) Fixture Delete (0.1ms) DELETE FROM "phones" Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (261299535, 'Profile', 'dadd4b7c430c0f99542c14d89a4597f1', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 1053526200) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (478996145, 'Profile', '93b76875ccb368e8e2890e452b5406df', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 689259936) Fixture Insert (0.1ms) INSERT INTO "phones" ("phoneable_id", "phoneable_type", "content", "created_at", "updated_at", "id") VALUES (966629572, 'Profile', '504dfacb6f5ed1bbd7a428652bc34cd7', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 762608046) Fixture Delete (0.1ms) DELETE FROM "users" Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:28:17', '2016-12-10 15:28:17', 902541635) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:28:17', '2016-12-10 15:28:17', 380377255) Fixture Insert (0.1ms) INSERT INTO "users" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:28:17', '2016-12-10 15:28:17', 619379998) Fixture Delete (0.1ms) DELETE FROM "cars" Fixture Insert (0.1ms) INSERT INTO "cars" ("content", "created_at", "updated_at", "id", "user_id") VALUES ('MyString', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 421646738, 336964236) Fixture Delete (0.1ms) DELETE FROM "tags" Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, 'ad13ed52dc16a5390c099e2822c8dddd', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 884173432) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '4f94d88502d691b667c094d2b60863f2', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 1035759634) Fixture Insert (0.1ms) INSERT INTO "tags" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'b72ea610114c537e71d2e2a0ed29db9e', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 471587404) Fixture Delete (0.1ms) DELETE FROM "contacts" Fixture Insert (0.1ms) INSERT INTO "contacts" ("user_id", "contactable_id", "contactable_type", "content", "created_at", "updated_at", "id") VALUES (902541635, 182024637, 'AddressBook', 'bc42550baadf9d7b443292c8d80a0e1c', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 743354599) Fixture Delete (0.1ms) DELETE FROM "address_books" Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:28:17', '2016-12-10 15:28:17', 182024637) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:28:17', '2016-12-10 15:28:17', 521111460) Fixture Insert (0.1ms) INSERT INTO "address_books" ("created_at", "updated_at", "id") VALUES ('2016-12-10 15:28:17', '2016-12-10 15:28:17', 1027911713) Fixture Delete (0.1ms) DELETE FROM "ssns" Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (902541635, '672254ae9ba925b7765ee57ebc54e47c', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 819246218) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (380377255, '337d3f7bcc4cc3628c64816cce6adeef', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 970698464) Fixture Insert (0.1ms) INSERT INTO "ssns" ("user_id", "content", "created_at", "updated_at", "id") VALUES (619379998, 'ccb3c9d7335e89242ddce7daad8123f3', '2016-12-10 15:28:17', '2016-12-10 15:28:17', 410780858)  (36.2ms) commit transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0024_#pbt_id Phone belongs to id as user's profile id ------------------------------------------------------------------------------- Phone Load (0.4ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Core: test_0039_#pbt_orphans ignores mislabled record types --------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:28:17.982980"], ["updated_at", "2016-12-10 15:28:17.982980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:28:17.984835"], ["updated_at", "2016-12-10 15:28:17.984835"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:28:17.986451"], ["updated_at", "2016-12-10 15:28:17.986451"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) SELECT COUNT(*) FROM "squishies" WHERE ("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation')  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0017_#pbt_id_sym Tag belongs to field id symbol as :tag_id ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0030_#pbt_parent Phone parent returns profile ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:28:18.015748"], ["updated_at", "2016-12-10 15:28:18.015748"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:28:18.017419"], ["updated_at", "2016-12-10 15:28:18.017419"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0047_#pbt_poly_types returns strings of all polymorphic record types ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:28:18.021551"], ["updated_at", "2016-12-10 15:28:18.021551"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:28:18.023266"], ["updated_at", "2016-12-10 15:28:18.023266"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:28:18.024866"], ["updated_at", "2016-12-10 15:28:18.024866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:28:18.026397"], ["updated_at", "2016-12-10 15:28:18.026397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:28:18.027963"], ["updated_at", "2016-12-10 15:28:18.027963"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:28:18.029520"], ["updated_at", "2016-12-10 15:28:18.029520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0036_#pbt_parents one parent for polymorphic ---------------------------------------------------------------------- Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? LIMIT 1 [["id", 761411935]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 261299535]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0029_#pbt_parent Tag parent returns user instance --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0008_#has_one_of ------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0042_#pbt_valid_types returns strings of valid polymorphic record types -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:28:18.042881"], ["updated_at", "2016-12-10 15:28:18.042881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:28:18.044490"], ["updated_at", "2016-12-10 15:28:18.044490"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:28:18.046062"], ["updated_at", "2016-12-10 15:28:18.046062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:28:18.047501"], ["updated_at", "2016-12-10 15:28:18.047501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:28:18.048970"], ["updated_at", "2016-12-10 15:28:18.048970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:28:18.050409"], ["updated_at", "2016-12-10 15:28:18.050409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::Core: test_0048_keeps helper methods private -----------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0023_#pbt_id Tag belongs to id as user's id --------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::Core: test_0031_#pbt_parent Profile parent returns user ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:28:18.059366"], ["updated_at", "2016-12-10 15:28:18.059366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Core: test_0003_#poly? Tag as not polymorphic ------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0045_#pbt_mistyped returns empty Array for no valid record types ------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Phone"], ["created_at", "2016-12-10 15:28:18.070324"], ["updated_at", "2016-12-10 15:28:18.070324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Address"], ["created_at", "2016-12-10 15:28:18.072260"], ["updated_at", "2016-12-10 15:28:18.072260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "User"], ["created_at", "2016-12-10 15:28:18.073767"], ["updated_at", "2016-12-10 15:28:18.073767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees" Coffee Load (0.1ms) SELECT "coffees".* FROM "coffees" WHERE 1=0  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0021_#pbt_type_sym Phone belongs to field type symbol as :phoneable_type -------------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------ PolyBelongsTo::Core: test_0028_#pbt_parent User parent returns nil ------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::Core: test_0013_#pbt_params_name Tag params name as :tag ----------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0044_I'm just curious if polymorphic can belong to itself -----------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Coffee"], ["created_at", "2016-12-10 15:28:18.081864"], ["updated_at", "2016-12-10 15:28:18.081864"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.1ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0015_#pbt_params_name Phone params name with false as :phone -------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0032_#pbt_parent returns nil if no ID is set for parent relationship ----------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:28:18.085846"], ["updated_at", "2016-12-10 15:28:18.085846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 279], ["created_at", "2016-12-10 15:28:18.088007"], ["updated_at", "2016-12-10 15:28:18.088007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:28:18.091329"], ["updated_at", "2016-12-10 15:28:18.091329"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0040_#pbt_mistypes returns strings of mislabled polymorphic record types --------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:28:18.094488"], ["updated_at", "2016-12-10 15:28:18.094488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:28:18.095997"], ["updated_at", "2016-12-10 15:28:18.095997"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:28:18.097583"], ["updated_at", "2016-12-10 15:28:18.097583"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------ PolyBelongsTo::Core: test_0001_is a module ------------------------------------------  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0005_#pbt User belongs to table as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------- PolyBelongsTo::Core: test_0025_#pbt_type User belongs to type as nil -------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0034_#pbt_top_parent with circular relation goes till the repeat ------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:28:18.103644"], ["updated_at", "2016-12-10 15:28:18.103644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 279], ["created_at", "2016-12-10 15:28:18.105734"], ["updated_at", "2016-12-10 15:28:18.105734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 279], ["created_at", "2016-12-10 15:28:18.107804"], ["updated_at", "2016-12-10 15:28:18.107804"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 279], ["created_at", "2016-12-10 15:28:18.109936"], ["updated_at", "2016-12-10 15:28:18.109936"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "alphas" SET "delta_id" = ?, "updated_at" = ? WHERE "alphas"."id" = ? [["delta_id", 279], ["updated_at", "2016-12-10 15:28:18.111505"], ["id", 279]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.2ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 279]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 279]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 279]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 279]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 279]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 279]] Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 279]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 279]] Delta Load (0.0ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------- PolyBelongsTo::Core: test_0010_#habtm_of ----------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------- PolyBelongsTo::Core: test_0006_#pbt Tag belongs to table as :user ----------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Core: test_0002_#poly? User as not polymorphic ------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Core: test_0022_#pbt_id User belongs to id as nil ---------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0049_#orphan? gives boolean if record is orphaned ---------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:28:18.152546"], ["updated_at", "2016-12-10 15:28:18.152546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? ORDER BY "phones"."id" ASC LIMIT 1 [["id", 12345]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:28:18.155108"], ["updated_at", "2016-12-10 15:28:18.155108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Address Load (0.0ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."id" = ? ORDER BY "addresses"."id" ASC LIMIT 1 [["id", 12345]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:28:18.157470"], ["updated_at", "2016-12-10 15:28:18.157470"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "profiles" ("profileable_id", "profileable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["profileable_id", 902541635], ["profileable_type", "User"], ["created_at", "2016-12-10 15:28:18.161286"], ["updated_at", "2016-12-10 15:28:18.161286"]] SQL (0.1ms) INSERT INTO "phones" ("phoneable_type", "phoneable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["phoneable_type", "Profile"], ["phoneable_id", 966629573], ["created_at", "2016-12-10 15:28:18.162733"], ["updated_at", "2016-12-10 15:28:18.162733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? ORDER BY "profiles"."id" ASC LIMIT 1 [["id", 966629573]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:28:18.165949"], ["updated_at", "2016-12-10 15:28:18.165949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Core: test_0035_#pbt_parents can show multiple parents --------------------------------------------------------------------- Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."user_id" = ? [["user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("id", "created_at", "updated_at") VALUES (?, ?, ?) [["id", 1], ["created_at", "2016-12-10 15:28:18.179133"], ["updated_at", "2016-12-10 15:28:18.179133"]] SQL (0.1ms) INSERT INTO "cars" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", 1], ["created_at", "2016-12-10 15:28:18.180505"], ["updated_at", "2016-12-10 15:28:18.180505"]] SQL (0.1ms) INSERT INTO "tires" ("user_id", "car_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["user_id", 1], ["car_id", 421646739], ["created_at", "2016-12-10 15:28:18.181685"], ["updated_at", "2016-12-10 15:28:18.181685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? ORDER BY "tires"."id" ASC LIMIT 1 [["car_id", 421646739]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]] Car Load (0.1ms) SELECT "cars".* FROM "cars" WHERE "cars"."id" = ? ORDER BY "cars"."id" ASC LIMIT 1 [["id", 421646739]]  (0.0ms) SAVEPOINT active_record_1 Ssn Load (0.1ms) SELECT "ssns".* FROM "ssns" WHERE "ssns"."user_id" = ? LIMIT 1 [["user_id", 1]] Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."user_id" = ? [["user_id", 1]] Contact Load (0.2ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."user_id" = ? [["user_id", 1]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."profileable_id" = ? AND "profiles"."profileable_type" = ? [["profileable_id", 1], ["profileable_type", "User"]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."car_id" = ? [["car_id", 421646739]] SQL (0.2ms) DELETE FROM "tires" WHERE "tires"."id" = ? [["id", 873565850]] SQL (0.1ms) DELETE FROM "cars" WHERE "cars"."id" = ? [["id", 421646739]] Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."user_id" = ? [["user_id", 1]] SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0037_#pbt_orphans returns all parentless records for current Object ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:28:18.197779"], ["updated_at", "2016-12-10 15:28:18.197779"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:28:18.201011"], ["updated_at", "2016-12-10 15:28:18.201011"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE (("squishies"."squishable_id" NOT IN (SELECT id FROM "addresses") AND "squishies"."squishable_type" = 'Address' OR "squishies"."squishable_id" NOT IN (SELECT id FROM "geo_locations") AND "squishies"."squishable_type" = 'GeoLocation') OR "squishies"."squishable_id" NOT IN (SELECT id FROM "phones") AND "squishies"."squishable_type" = 'Phone')  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 12345], ["created_at", "2016-12-10 15:28:18.204406"], ["updated_at", "2016-12-10 15:28:18.204406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Beta Load (0.3ms) SELECT "beta".* FROM "beta" WHERE ("beta"."alpha_id" NOT IN (SELECT id FROM "alphas"))  (0.2ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0018_#pbt_id_sym Phone belongs to field id symbol as :phoneable_id -------------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::Core: test_0004_#poly? Phone as polymorphic ---------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::Core: test_0012_#pbt_params_name User params name as :user ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0033_#pbt_top_parent climbs up belongs_to hierarchy to the top; polymorphic relationships first -------------------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "alphas" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:28:18.211133"], ["updated_at", "2016-12-10 15:28:18.211133"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "beta" ("alpha_id", "created_at", "updated_at") VALUES (?, ?, ?) [["alpha_id", 279], ["created_at", "2016-12-10 15:28:18.213179"], ["updated_at", "2016-12-10 15:28:18.213179"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "capas" ("beta_id", "created_at", "updated_at") VALUES (?, ?, ?) [["beta_id", 279], ["created_at", "2016-12-10 15:28:18.215306"], ["updated_at", "2016-12-10 15:28:18.215306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "delta" ("capa_id", "created_at", "updated_at") VALUES (?, ?, ?) [["capa_id", 279], ["created_at", "2016-12-10 15:28:18.217439"], ["updated_at", "2016-12-10 15:28:18.217439"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Capa Load (0.0ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 279]]  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::Core: test_0026_#pbt_type Tag belongs to type as nil ------------------------------------------------------------------- Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0041_#pbt_mistyped returns mislabled polymorphic record types ---------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Object"], ["created_at", "2016-12-10 15:28:18.227548"], ["updated_at", "2016-12-10 15:28:18.227548"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Class"], ["created_at", "2016-12-10 15:28:18.229185"], ["updated_at", "2016-12-10 15:28:18.229185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Squishable"], ["created_at", "2016-12-10 15:28:18.230733"], ["updated_at", "2016-12-10 15:28:18.230733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies" Squishy Load (0.2ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_type" IN ('Object', 'Class', 'Squishable')  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::Core: test_0007_#pbt Phone belongs to table as :phoneable ------------------------------------------------------------------------ Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Core: test_0027_#pbt_type Phone belongs to type as 'Profile' --------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0038_#pbt_orphans returns nil for non parent type records -----------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:28:18.236972"], ["updated_at", "2016-12-10 15:28:18.236972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0043_#pbt_valid_types returns empty Array for no valid record types ---------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Object"], ["created_at", "2016-12-10 15:28:18.239400"], ["updated_at", "2016-12-10 15:28:18.239400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Class"], ["created_at", "2016-12-10 15:28:18.241146"], ["updated_at", "2016-12-10 15:28:18.241146"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coffees" ("coffeeable_id", "coffeeable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coffeeable_id", 12345], ["coffeeable_type", "Squishable"], ["created_at", "2016-12-10 15:28:18.243161"], ["updated_at", "2016-12-10 15:28:18.243161"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "coffees"."coffeeable_type" FROM "coffees"  (0.2ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0019_#pbt_type_sym User belongs to field type symbol as nil ------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------- PolyBelongsTo::Core: test_0011_#pbts multiple parents ----------------------------------------------------- Tire Load (0.1ms) SELECT "tires".* FROM "tires" WHERE "tires"."id" = ? LIMIT 1 [["id", 438300604]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0014_#pbt_params_name Phone params name as :phones_attributes --------------------------------------------------------------------------------------- Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."id" = ? LIMIT 1 [["id", 1053526200]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0046_#pbt_mistypes returns empty Array if only valid polymorphic record types exist -------------------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Phone"], ["created_at", "2016-12-10 15:28:18.250649"], ["updated_at", "2016-12-10 15:28:18.250649"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "Address"], ["created_at", "2016-12-10 15:28:18.252412"], ["updated_at", "2016-12-10 15:28:18.252412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "squishies" ("squishable_id", "squishable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["squishable_id", 12345], ["squishable_type", "GeoLocation"], ["created_at", "2016-12-10 15:28:18.253958"], ["updated_at", "2016-12-10 15:28:18.253958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT DISTINCT "squishies"."squishable_type" FROM "squishies"  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Core: test_0016_#pbt_id_sym User belongs to field id symbol as nil --------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------- PolyBelongsTo::Core: test_0009_#has_many_of -------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::Core: test_0020_#pbt_type_sym Tag belongs to field type symbol as nil ------------------------------------------------------------------------------------ Tag Load (0.1ms) SELECT "tags".* FROM "tags" WHERE "tags"."id" = ? LIMIT 1 [["id", 884173432]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0004_#all is an Array ---------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.2ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0006_checks validity with #valid? ---------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0005_checks if #empty? ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0008_works with #presence -------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0010_#last is the item ----------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0002_#superclass knows its superclass --------------------------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0024_will not initialize on has_many ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0011_#count and #size counts as 1 or 0 --------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0018_#build returns self and not nil ------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0023_has method_missing forward appropriate calls -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0019_#each loops appropriately ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0001_#class.name is named correctly ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0014_build #kind_of? FakedCollection object -------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0012_#ancestors has ActiveRecord::Base ancestor ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0003_IDs the inner ited on :id ------------------------------------------------------------------- Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."id" = ? LIMIT 1 [["id", 971855462]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0016_build #instance_of? FakedCollection object ------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0025_takes nil Objects and returns an empty FakedCollection ------------------------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0013_#ancestors has NilClass if empty -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0021_#respond_to? :first and :last ----------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0015_build #is_a? FakedCollection object ----------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0020_defines #klass to point to inner items class -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::FakedCollection: test_0009_#first is the item ------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0007_gives true or false on #present? -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0022_knows sneeze is a missing method -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) 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"]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::FakedCollection: test_0017_#build builds appropriately --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.0ms) 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"]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 478996145], ["photoable_type", "Profile"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "photos" WHERE "photos"."id" = ? [["id", 971855462]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------- EventTest: test_valid ---------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0003_pre 1.0.0 :pbt_type_sym on dual ownership with non-polymorphic first ---------------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0002_pre 1.0.0 :poly? on dual ownership with non-polymorphic first --------------------------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0001_pre 1.0.0 first parent relation --------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------------------- Test breaking changes between major versions: test_0004_pre 1.0.0 :pbt_parent returns first parent -------------------------------------------------------------------------------------------------- Contact Load (0.1ms) SELECT "contacts".* FROM "contacts" WHERE "contacts"."id" = ? LIMIT 1 [["id", 743354599]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1 [["id", 902541635]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0002_clones without duplicating cirular reference ---------------------------------------------------------------------------------------------------------------------------------------- Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."beta_id" = ? [["beta_id", 278]] Delta Load (0.2ms) SELECT "delta".* FROM "delta" WHERE "delta"."capa_id" = ? [["capa_id", 278]] Alpha Load (0.1ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."delta_id" = ? [["delta_id", 278]] Beta Load (0.1ms) SELECT "beta".* FROM "beta" WHERE "beta"."alpha_id" = ? [["alpha_id", 278]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------------- PolyBelongsTo::Dup #pbt_deep_dup_build handles circular references like a champ!: test_0001_is a circle ------------------------------------------------------------------------------------------------------- Delta Load (0.1ms) SELECT "delta".* FROM "delta" WHERE "delta"."id" = ? ORDER BY "delta"."id" ASC LIMIT 1 [["id", 278]] Alpha Load (0.0ms) SELECT "alphas".* FROM "alphas" WHERE "alphas"."id" = ? ORDER BY "alphas"."id" ASC LIMIT 1 [["id", 278]] Beta Load (0.0ms) SELECT "beta".* FROM "beta" WHERE "beta"."id" = ? ORDER BY "beta"."id" ASC LIMIT 1 [["id", 278]] Capa Load (0.1ms) SELECT "capas".* FROM "capas" WHERE "capas"."id" = ? ORDER BY "capas"."id" ASC LIMIT 1 [["id", 278]]  (0.0ms) rollback transaction  (0.1ms) begin transaction -------------------- PartTest: test_valid --------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------- CoffeeTest: test_valid ----------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------- HmtPartTest: test_valid -----------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------ AssemblyTest: test_valid ------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------ PolyBelongsTo::Core::works with camelcase realtions: test_0001_pbt_parent snakecase to camelcase ------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:28:18.395121"], ["updated_at", "2016-12-10 15:28:18.395121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:28:18.397682"], ["updated_at", "2016-12-10 15:28:18.397682"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.2ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0002_pbt_parents snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "work_orders" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-12-10 15:28:18.401492"], ["updated_at", "2016-12-10 15:28:18.401492"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 325582484], ["created_at", "2016-12-10 15:28:18.403406"], ["updated_at", "2016-12-10 15:28:18.403406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.0ms) SELECT "work_orders".* FROM "work_orders" WHERE "work_orders"."id" = ? ORDER BY "work_orders"."id" ASC LIMIT 1 [["id", 325582484]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------------------------- PolyBelongsTo::Core::works with camelcase realtions: test_0003_pbt_orphans snakecase to camelcase -------------------------------------------------------------------------------------------------  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "events" ("work_order_id", "created_at", "updated_at") VALUES (?, ?, ?) [["work_order_id", 15], ["created_at", "2016-12-10 15:28:18.406182"], ["updated_at", "2016-12-10 15:28:18.406182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 WorkOrder Load (0.1ms) SELECT "work_orders".* FROM "work_orders"  (0.0ms) SAVEPOINT active_record_1 Event Load (0.1ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582481]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582481]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582482]] SQL (0.1ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582482]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Event Load (0.0ms) SELECT "events".* FROM "events" WHERE "events"."work_order_id" = ? [["work_order_id", 325582483]] SQL (0.0ms) DELETE FROM "work_orders" WHERE "work_orders"."id" = ? [["id", 325582483]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT "events"."work_order_id" FROM "events" WHERE ("events"."work_order_id" NOT IN (SELECT id FROM "work_orders"))  (0.2ms) rollback transaction  (0.0ms) begin transaction --------------------------- HmtAssemblyTest: test_valid ---------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Dup: test_0002_has method :pbt_deep_dup_build ------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------------ PolyBelongsTo::Dup: test_0003_#pbt_dup_build builds copy from dup'd attributes ------------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]] Profile Load (0.0ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------------- PolyBelongsTo::Dup: test_0004_#pbt_deep_dup_build builds deep copy of dup'd attributes -------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 380377255]] Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.1ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]] Phone Load (0.1ms) SELECT "phones".* FROM "phones" WHERE "phones"."phoneable_id" = ? AND "phones"."phoneable_type" = ? [["phoneable_id", 261299535], ["phoneable_type", "Profile"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? LIMIT 1 [["squishable_id", 1053526200], ["squishable_type", "Phone"]] Address Load (0.1ms) SELECT "addresses".* FROM "addresses" WHERE "addresses"."addressable_id" = ? AND "addresses"."addressable_type" = ? [["addressable_id", 261299535], ["addressable_type", "Profile"]] GeoLocation Load (0.2ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]] Squishy Load (0.3ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 343404421], ["squishable_type", "GeoLocation"]] Squishy Load (0.1ms) SELECT "squishies".* FROM "squishies" WHERE "squishies"."squishable_id" = ? AND "squishies"."squishable_type" = ? [["squishable_id", 761411935], ["squishable_type", "Address"]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------- PolyBelongsTo::Dup: test_0001_has method :pbt_dup_build -------------------------------------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0002_adds with :add? ------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0004_can tell you what's included ------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------------------ PolyBelongsTo::SingletonSet: test_0001_formats name with #formatted_name ------------------------------------------------------------------------ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0006_says false for unflagged items --------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0003_changes ActiveRecord Objects for method_missing with #formatted_name ----------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------- PolyBelongsTo::SingletonSet: test_0005_flags a duplicate -------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------- AddressBookTest: test_valid ---------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction ------------------------- WorkOrderTest: test_valid -------------------------  (0.0ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0012_AsCollectionProxy has one or zero items --------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.1ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.0ms) begin transaction ---------------------------------------------------------------- PolyBelongsTo::Pbt: test_0006_IsReflected gives boolean of child ---------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0014_AsCollectionProxy returns empty FakedCollection when handed unrelated instances -------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0013_AsCollectionProxy has_many uses ActiveRecord::Associations::CollectionProxy --------------------------------------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0001_AttrSanitizer removes conflicting attributes -------------------------------------------------------------------------- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 902541635]]  (0.1ms) rollback transaction  (0.0ms) begin transaction -------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0011_AsCollectionProxy has_one emulated collectionproxy -------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Address Load (0.1ms) 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"]] GeoLocation Load (0.0ms) SELECT "geo_locations".* FROM "geo_locations" WHERE "geo_locations"."address_id" = ? LIMIT 1 [["address_id", 761411935]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0015_sanity checks Reflects & ReflectsAsClasses possible snake_case CamelCase future changes ---------------------------------------------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0007_SingularOrPlural responds for child relations --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 966629572]]  (0.1ms) rollback transaction  (0.1ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0003_Reflects returns has_one and has_many relationships --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.0ms) rollback transaction  (0.0ms) begin transaction ----------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0005_Reflects & ReflectsAsClasses accept boolean for HABTM -----------------------------------------------------------------------------------  (0.1ms) rollback transaction  (0.0ms) begin transaction ------------------------------------------------------------ PolyBelongsTo::Pbt: test_0002_BuildCmd returns build command ------------------------------------------------------------ Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------- PolyBelongsTo::Pbt: test_0008_IsSingular tells child singleness --------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0010_CollectionProxy singular or plural proxy name --------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 478996145]]  (0.0ms) rollback transaction  (0.1ms) begin transaction ------------------------------------------------------------- PolyBelongsTo::Pbt: test_0009_IsPlural tells child pluralness ------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]]  (0.1ms) rollback transaction  (0.0ms) begin transaction --------------------------------------------------------------------------------- PolyBelongsTo::Pbt: test_0004_ReflectsAsClasses one and many relations as classes --------------------------------------------------------------------------------- Profile Load (0.1ms) SELECT "profiles".* FROM "profiles" WHERE "profiles"."id" = ? LIMIT 1 [["id", 261299535]] Photo Load (0.0ms) SELECT "photos".* FROM "photos" WHERE "photos"."photoable_id" = ? AND "photos"."photoable_type" = ? LIMIT 1 [["photoable_id", 261299535], ["photoable_type", "Profile"]]  (0.1ms) rollback transaction